aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2021-10-06 23:20:56 +0200
committerGravatar Johannes Christ <[email protected]>2021-10-06 23:22:45 +0200
commitce75197fc1d0b2086631277d29f9396908bdc86c (patch)
tree2eab9855ab1a83352a5d83050d8a1fc0524f3285 /docker-compose.yml
parentMerge branch 'main' into subdomains-to-query-paths (diff)
parentMerge pull request #599 from python-discord/fix-http-links (diff)
Merge branch 'master' into subdomains-to-query-paths
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml8
1 files changed, 7 insertions, 1 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index 05867a46..eb987624 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -18,6 +18,11 @@ services:
POSTGRES_DB: pysite
POSTGRES_PASSWORD: pysite
POSTGRES_USER: pysite
+ healthcheck:
+ test: ["CMD-SHELL", "pg_isready -U pysite"]
+ interval: 2s
+ timeout: 1s
+ retries: 5
volumes:
- ./postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
@@ -35,7 +40,8 @@ services:
ports:
- "127.0.0.1:8000:8000"
depends_on:
- - postgres
+ postgres:
+ condition: service_healthy
tty: true
volumes:
- .:/app:ro