Files
product-slip/docker-compose.yml
diaco 298a4f9643 Add optional apt/PyPI mirrors and HTTP_PORT (#14)
Co-authored-by: Cursor <cursoragent@cursor.com>
Reviewed-on: #14
Co-authored-by: diaco <dyaco8464@yahoo.com>
Co-committed-by: diaco <dyaco8464@yahoo.com>
2026-10-05 05:55:51 +00:00

36 lines
679 B
YAML

services:
app:
build:
context: .
args:
APT_MIRROR: ${APT_MIRROR:-}
PIP_INDEX_URL: ${PIP_INDEX_URL:-}
PIP_TRUSTED_HOST: ${PIP_TRUSTED_HOST:-}
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:
- "${HTTP_PORT:-80}:80"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- app
networks:
- web
volumes:
db_data:
networks:
web: