Skip to content

Commit

Permalink
compose
Browse files Browse the repository at this point in the history
  • Loading branch information
potts99 committed Nov 26, 2023
1 parent 59f55d8 commit 1551db6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ version: "3.1"
services:
peppermint_postgres:
container_name: peppermint_postgres
profiles:
- prod
- dev
- test
image: postgres:latest
restart: always
ports:
Expand All @@ -70,10 +66,6 @@ services:
restart: always
depends_on:
- peppermint_postgres
profiles:
- prod
depends_on:
- postgres
healthcheck:
test: ["CMD", "sh", "-c", "wget --spider $$BASE_URL"]
interval: 30s
Expand All @@ -84,9 +76,11 @@ services:
DB_PASSWORD: "1234"
DB_HOST: "peppermint_postgres"
SECRET: 'peppermint4life'
API_URL: "http://localhost:5003"
volumes:
pgdata:
```

Once this is completed then you can go to your base_url which was added to the compose file and login.
Expand Down
1 change: 1 addition & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ services:
DB_USERNAME: "peppermint"
DB_PASSWORD: "1234"
DB_HOST: "peppermint_postgres"
SECRET: 'peppermint4life'
API_URL: "http://localhost:5003"

volumes:
Expand Down
1 change: 1 addition & 0 deletions docker-compose.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ services:
DB_USERNAME: "peppermint"
DB_PASSWORD: "1234"
DB_HOST: "peppermint_postgres"
SECRET: 'peppermint4life'
API_URL: "http://localhost:5001"

volumes:
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ services:
DB_USERNAME: "peppermint"
DB_PASSWORD: "1234"
DB_HOST: "peppermint_postgres"
SECRET: 'peppermint4life'
API_URL: "http://localhost:5003"

volumes:
Expand Down

0 comments on commit 1551db6

Please sign in to comment.