wstkeys/docker-compose.yml

28 lines
903 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.

services:
nginx:
image: nginx:latest
container_name: nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/certbot/www:/var/www/certbot
- ./nginx/certbot/conf:/etc/letsencrypt
extra_hosts:
- "host.docker.internal:host-gateway"
restart: always
web:
build: .
container_name: flask-dev
ports:
- "5205:5205" # Пробрасываем порт наружу
volumes:
# Главная строка: монтируем текущую папку с кодом (.)
# в папку /app внутри контейнера
- .:/app
environment:
- FLASK_DEBUG=1 # Дополнительная страховка для включения дебага
- PYTHONUNBUFFERED=1 # Чтобы логи выводились сразу, а не кэшировались