Files
product-slip/docker-compose.yml
2026-11-11 14:53:44 +03:30

45 lines
1.0 KiB
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=*
- REPORT_BASE_URL=${REPORT_BASE_URL:-}
- REPORT_ORDERS_PATH=${REPORT_ORDERS_PATH:-}
- REPORT_ORDERS_SINCE=${REPORT_ORDERS_SINCE:-}
- REPORT_ORDERS_PREFIXES=${REPORT_ORDERS_PREFIXES:-}
- CRM_BASE_URL=${CRM_BASE_URL:-}
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:
# Happ/xray claims 172.19.0.0/30, which overlaps Docker's default pool on this host.
ipam:
config:
- subnet: 172.28.10.0/24