diff options
Diffstat (limited to 'compose.yaml')
-rw-r--r-- | compose.yaml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..7bcb207 --- /dev/null +++ b/compose.yaml @@ -0,0 +1,22 @@ +services: + web: + build: . + command: gunicorn config.wsgi:application --bind 0.0.0.0:8000 + volumes: + - .:/app + ports: + - "3000:3000" + env_file: + - .env + depends_on: + - db + + db: + image: postgres:14 + volumes: + - postgres_data:/var/lib/postgresql/data/ + environment: + - POSTGRES_PASSWORD=postgres + +volumes: + postgres_data: |