fix: django starting b4 db was ready
This commit is contained in:
parent
f29003c66a
commit
51ab9b65a6
@ -12,7 +12,9 @@ services:
|
||||
restart: always
|
||||
env_file: .env
|
||||
depends_on:
|
||||
- db
|
||||
db:
|
||||
condition: service_healthy
|
||||
restart: true
|
||||
|
||||
db:
|
||||
image: postgres
|
||||
@ -23,6 +25,11 @@ services:
|
||||
container_name: db
|
||||
restart: always
|
||||
env_file: .env
|
||||
healthcheck:
|
||||
test: "pg_isready -U $POSTGRES_USER"
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
volumes:
|
||||
db:
|
||||
|
Loading…
Reference in New Issue
Block a user