diff options
author | Matthew Lemon <y@yulqen.org> | 2024-09-12 19:51:06 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-09-12 19:51:06 +0100 |
commit | fc8383c528c47e6914557767be5723670c74008f (patch) | |
tree | b6bc60348f58ad5b35657f1ecf50fe0826c24796 /docker-compose.yaml | |
parent | ae414c59441bc985e3f8801f03e810443bc36253 (diff) |
Fixes Docker files
Diffstat (limited to 'docker-compose.yaml')
-rw-r--r-- | docker-compose.yaml | 29 |
1 files changed, 19 insertions, 10 deletions
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: |