Skip to content

Commit

Permalink
chore: update docker
Browse files Browse the repository at this point in the history
  • Loading branch information
potts99 committed May 30, 2024
1 parent f13c0a2 commit 41e2fda
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
11 changes: 5 additions & 6 deletions apps/api/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
version: "3.3"
services:
pg:
postgres:
image: "postgres:11"
restart: unless-stopped
environment:
- POSTGRES_USER=pepppermint
- POSTGRES_PASSWORD=1234
- POSTGRES_USER=pepppermint-dev
- POSTGRES_PASSWORD=12345
- POSTGRES_DB=peppermint
container_name: "pg"
ports:
- '5432:5432'
volumes:
- postgres_data:/var/lib/postgresql/data
- postgres_data_local_dev:/var/lib/postgresql/data

mailhog:
image: jcalonso/mailhog
Expand All @@ -20,4 +19,4 @@ services:
- 8025:8025 # web ui

volumes:
postgres_data:
postgres_data_local_dev:
2 changes: 0 additions & 2 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ services:
container_name: peppermint_postgres
image: postgres:latest
restart: always
ports:
- 5432:5432
volumes:
- pgdata:/var/lib/postgresql/data
environment:
Expand Down
8 changes: 1 addition & 7 deletions docker-compose.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ services:
container_name: peppermint_postgres
image: postgres:latest
restart: always
ports:
- 5432:5432
volumes:
- pgdata:/var/lib/postgresql/data
environment:
Expand All @@ -23,15 +21,11 @@ services:
restart: always
depends_on:
- peppermint_postgres
healthcheck:
test: ["CMD", "sh", "-c", "wget --spider $$API_URL"]
interval: 30s
timeout: 10s
retries: 3
environment:
DB_USERNAME: "peppermint"
DB_PASSWORD: "1234"
DB_HOST: "peppermint_postgres"
SECRET: 'peppermint4life'

volumes:
pgdata:

0 comments on commit 41e2fda

Please sign in to comment.