Files
2026-etpgrf-site/docker-compose.yml

29 lines
766 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
version: '3.8'
services:
web:
build: .
# Команда запуска (Gunicorn) уже в Dockerfile
volumes:
# Монтируем папку с базой данных
- ./data:/app/data
# Монтируем статику в именованный том, чтобы Nginx мог её читать
- static_volume:/app/public/static_collected
env_file:
- .env
nginx:
image: nginx:1.25-alpine
volumes:
- ./config/nginx/etpgrf--internal-nginx.conf:/etc/nginx/nginx.conf:ro
- static_volume:/app/public/static_collected
ports:
- "8000:80" # Слушаем 8000 снаружи, проксируем на 80 внутри
depends_on:
- web
volumes:
static_volume: