aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yaml
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-09-12 19:51:06 +0100
committerMatthew Lemon <y@yulqen.org>2024-09-12 19:51:06 +0100
commitfc8383c528c47e6914557767be5723670c74008f (patch)
treeb6bc60348f58ad5b35657f1ecf50fe0826c24796 /docker-compose.yaml
parentae414c59441bc985e3f8801f03e810443bc36253 (diff)
Fixes Docker files
Diffstat (limited to 'docker-compose.yaml')
-rw-r--r--docker-compose.yaml29
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: