From 454308b0fe26767092b7b030b3746735633f5ba1 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 12 Sep 2024 20:55:40 +0100 Subject: More changes for Docker deployment --- docker-compose.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'docker-compose.yaml') 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: -- cgit v1.2.3