31 lines
512 B
YAML
31 lines
512 B
YAML
services:
|
|
app:
|
|
build: .
|
|
restart: unless-stopped
|
|
volumes:
|
|
- db_data:/app/data
|
|
environment:
|
|
- DJANGO_SECRET_KEY=change-me-in-production-use-a-real-secret
|
|
- DJANGO_DEBUG=0
|
|
- DJANGO_ALLOWED_HOSTS=*
|
|
networks:
|
|
- web
|
|
|
|
nginx:
|
|
image: nginx:alpine
|
|
restart: unless-stopped
|
|
ports:
|
|
- "80:80"
|
|
volumes:
|
|
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
|
depends_on:
|
|
- app
|
|
networks:
|
|
- web
|
|
|
|
volumes:
|
|
db_data:
|
|
|
|
networks:
|
|
web:
|