Skip to content

Commit

Permalink
Deploy dev & prod instances
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBoatyMcBoatFace committed Sep 7, 2023
1 parent 3898bc6 commit 6bf6774
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ version: '3.8'

services:
postgres:
container_name: postgres_dev
hostname: postgres_dev
build:
context: .
dockerfile: Dockerfile
Expand All @@ -20,20 +22,20 @@ services:
timeout: 2s
retries: 10
postgres1:
build:
context: .
dockerfile: Dockerfile
environment:
POSTGRES_USER:
POSTGRES_PASSWORD:
ports:
- "5433:5432"
volumes:
- /var/lib/postgresql/data
- /etc/postgresql
healthcheck:
test: ["CMD", "pg_isready", "-U", "healthchecker", "-d", "gova11y", "-h", "localhost"]
interval: 2s
timeout: 2s
retries: 10
image: gova11y/postgres:latest
container_name: postgres_prod
hostname: postgres_prod
environment:
POSTGRES_USER:
POSTGRES_PASSWORD:
ports:
- "5433:5432"
volumes:
- /var/lib/postgresql/data
- /etc/postgresql
healthcheck:
test: ["CMD", "pg_isready", "-U", "healthchecker", "-d", "gova11y", "-h", "localhost"]
interval: 2s
timeout: 2s
retries: 10

0 comments on commit 6bf6774

Please sign in to comment.