Skip to content

Commit

Permalink
update compose
Browse files Browse the repository at this point in the history
  • Loading branch information
potts99 committed Nov 24, 2023
1 parent e28ed6e commit bc3d9ba
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
version: "3.1"

services:
postgres:
profiles:
- prod
- dev
- test
container_name: postgres
peppermint_postgres:
container_name: peppermint_postgres
image: postgres:latest
restart: always
ports:
- 5432:5432
volumes:
- pgdata:/var/lib/postgresql/data
environment:
Expand All @@ -17,27 +15,24 @@ services:
POSTGRES_DB: peppermint

peppermint:
profiles:
- prod
container_name: peppermint
image: pepperlabs/peppermint:latest
ports:
- 5001:5001
- 3000:3000
- 5003:5003
restart: always
depends_on:
- postgres
- peppermint_postgres
healthcheck:
test: ["CMD", "sh", "-c", "wget --spider $$BASE_URL"]
interval: 30s
timeout: 10s
retries: 3
environment:
PORT: 5001
DB_USERNAME: peppermint
DB_PASSWORD: 1234
DB_HOST: postgres
SECRET: 'peppermint4life'

DB_USERNAME: "peppermint"
DB_PASSWORD: "1234"
DB_HOST: "peppermint_postgres"
API_PORT: 5003

volumes:
pgdata:

0 comments on commit bc3d9ba

Please sign in to comment.