diff --git a/.dockerignore b/.dockerignore index b85f2b7..e2795ae 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,5 @@ +certs + # Byte-compiled / optimized / DLL files __pycache__/ *.py[codz] diff --git a/.gitignore b/.gitignore index b85f2b7..e2795ae 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +certs + # Byte-compiled / optimized / DLL files __pycache__/ *.py[codz] diff --git a/docker-compose.yml b/docker-compose.yml index 27a5449..e94d147 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,6 +7,19 @@ services: restart: unless-stopped ports: - "2096:2096" + volumes: + # Монтируем папку с сертификатами + # Измените на свои. например, + # - /etc/letsencrypt/live/example.com:/certs:ro + - ./certs:/certs:ro + # Запуск через gunicorn с SSL + command: > + gunicorn + --workers=4 + --bind=0.0.0.0:2096 + --keyfile=/certs/privkey.pem + --certfile=/certs/fullchain.pem + wsgi:app env_file: - .env # Пример с явным указанием переменных (альтернатива env_file):