mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
Подключение ssl сертификата к домену
This commit is contained in:
@@ -23,7 +23,7 @@ services:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- ./backend:/app
|
||||
- ./sql_app.db:/app/sql_app.db:rw # Изменяем путь к базе данных
|
||||
- ./sql_app.db:/app/sql_app.db:rw
|
||||
networks:
|
||||
- app-network
|
||||
restart: unless-stopped
|
||||
@@ -36,13 +36,26 @@ services:
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443" # Добавляем порт для HTTPS
|
||||
volumes:
|
||||
- frontend_build:/usr/share/nginx/html
|
||||
- ./docker/nginx/conf.d:/etc/nginx/conf.d
|
||||
- ./certbot/conf:/etc/letsencrypt
|
||||
- ./certbot/www:/var/www/certbot
|
||||
networks:
|
||||
- app-network
|
||||
depends_on:
|
||||
- frontend
|
||||
- backend
|
||||
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
|
||||
|
||||
certbot:
|
||||
image: certbot/certbot
|
||||
container_name: support-certbot
|
||||
volumes:
|
||||
- ./certbot/conf:/etc/letsencrypt
|
||||
- ./certbot/www:/var/www/certbot
|
||||
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
|
||||
|
||||
networks:
|
||||
app-network:
|
||||
|
Reference in New Issue
Block a user