Sebastián Ramírez
11 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
9 additions and
1 deletions
-
docker-compose.yml
|
|
@ -2,6 +2,12 @@ services: |
|
|
|
db: |
|
|
|
image: postgres:12 |
|
|
|
restart: always |
|
|
|
healthcheck: |
|
|
|
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"] |
|
|
|
interval: 10s |
|
|
|
retries: 5 |
|
|
|
start_period: 30s |
|
|
|
timeout: 10s |
|
|
|
volumes: |
|
|
|
- app-db-data:/var/lib/postgresql/data/pgdata |
|
|
|
env_file: |
|
|
@ -42,7 +48,9 @@ services: |
|
|
|
- traefik-public |
|
|
|
- default |
|
|
|
depends_on: |
|
|
|
- db |
|
|
|
db: |
|
|
|
condition: service_healthy |
|
|
|
restart: true |
|
|
|
env_file: |
|
|
|
- .env |
|
|
|
environment: |
|
|
|