diff options
author | Matthew Lemon <y@yulqen.org> | 2024-09-12 20:55:40 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-09-12 20:55:40 +0100 |
commit | 454308b0fe26767092b7b030b3746735633f5ba1 (patch) | |
tree | cab681790cc8b8cc9565357cec3f83369e914c89 /docker-compose.yaml | |
parent | fc8383c528c47e6914557767be5723670c74008f (diff) |
More changes for Docker deployment
Diffstat (limited to 'docker-compose.yaml')
-rw-r--r-- | docker-compose.yaml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/docker-compose.yaml b/docker-compose.yaml index ea05037..6266d70 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -3,6 +3,11 @@ services: image: postgres:14 volumes: - postgres_data:/var/lib/postgresql/data/ + healthcheck: + test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"] + interval: 10s + timeout: 5s + retries: 5 environment: POSTGRES_DB: ${POSTGRES_DB} POSTGRES_USER: ${POSTGRES_USER} @@ -12,7 +17,9 @@ services: web: build: . - command: gunicorn config.wsgi:application --bind 0.0.0.0:8000 + command: gunicorn config.wsgi:application --bind 0.0.0.0:3000 + environment: + DJANGO_READ_DOT_ENV_FILE: True volumes: - .:/code ports: |