mirror of
https://github.com/kjanat/livegraphs-django.git
synced 2026-01-16 06:22:09 +01:00
46 lines
898 B
YAML
46 lines
898 B
YAML
# docker-compose.yml
|
|
|
|
version: '3.8'
|
|
|
|
services:
|
|
web:
|
|
build: .
|
|
command: gunicorn dashboard_project.wsgi:application --bind 0.0.0.0:8000
|
|
volumes:
|
|
- .:/app
|
|
- static_volume:/app/staticfiles
|
|
- media_volume:/app/media
|
|
ports:
|
|
- '8000:8000'
|
|
environment:
|
|
- DEBUG=0
|
|
- SECRET_KEY=your_secret_key_here
|
|
- ALLOWED_HOSTS=localhost,127.0.0.1
|
|
depends_on:
|
|
- db
|
|
|
|
db:
|
|
image: postgres:13
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data/
|
|
environment:
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_PASSWORD=postgres
|
|
- POSTGRES_DB=dashboard_db
|
|
|
|
nginx:
|
|
image: nginx:latest
|
|
ports:
|
|
- '80:80'
|
|
volumes:
|
|
- ./nginx/conf.d:/etc/nginx/conf.d
|
|
- static_volume:/app/staticfiles
|
|
- media_volume:/app/media
|
|
depends_on:
|
|
- web
|
|
|
|
volumes:
|
|
postgres_data:
|
|
static_volume:
|
|
media_volume:
|