Skip to content

Commit

Permalink
fix(docker): wait for postgres to be ready
Browse files Browse the repository at this point in the history
  • Loading branch information
Pipazoul committed Nov 27, 2023
1 parent a2e6015 commit adb2e3b
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,20 @@ services:
image: erasme/maquette_augmentee_backend:latest
container_name: maquette_augmentee_backend
depends_on:
- postgres
postgres:
condition: service_healthy
ports:
- "5000:5000"
env_file:
- .env
#volumes:
postgres:
image: postgres:13.3
container_name: maquette_augmentee_postgres
ports:
- "5432:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
- POSTGRES_USER=${BDD_CONFIG_USER}
- POSTGRES_PASSWORD=${BDD_CONFIG_PASSWD}
- POSTGRES_DB=${BDD_CONFIG_DB}
- POSTGRES_SCHEMA=${BDD_CONFIG_SCHEMA}
volumes:
- ./sql:/sql
- ./postgres-data:/var/lib/postgresql/data
Expand All @@ -28,6 +27,16 @@ services:
interval: 5s
timeout: 5s
retries: 5
pgadmin:
image: dpage/pgadmin4:5.7
container_name: maquette_augmentee_pgadmin
environment:
- [email protected]
- PGADMIN_DEFAULT_PASSWORD=admin
ports:
- "5050:80"
depends_on:
- postgres



Expand Down

0 comments on commit adb2e3b

Please sign in to comment.