From fc8383c528c47e6914557767be5723670c74008f Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 12 Sep 2024 19:51:06 +0100 Subject: Fixes Docker files --- docker-compose.yaml | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) (limited to 'docker-compose.yaml') diff --git a/docker-compose.yaml b/docker-compose.yaml index 7bcb207..ea05037 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,22 +1,31 @@ services: + db: + image: postgres:14 + volumes: + - postgres_data:/var/lib/postgresql/data/ + environment: + POSTGRES_DB: ${POSTGRES_DB} + POSTGRES_USER: ${POSTGRES_USER} + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} + networks: + - app-network + web: build: . command: gunicorn config.wsgi:application --bind 0.0.0.0:8000 volumes: - - .:/app + - .:/code ports: - "3000:3000" - env_file: - - .env depends_on: - db - - db: - image: postgres:14 - volumes: - - postgres_data:/var/lib/postgresql/data/ - environment: - - POSTGRES_PASSWORD=postgres + # env_file: + # - .env + networks: + - app-network volumes: postgres_data: + +networks: + app-network: -- cgit v1.2.3