diff options
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: |