mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
Merge remote changes and resolve conflicts
This commit is contained in:
21
ssl-init.sh
Normal file
21
ssl-init.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Остановить все контейнеры
|
||||
docker compose down -v
|
||||
|
||||
# Создать необходимые директории
|
||||
mkdir -p ./certbot/www
|
||||
mkdir -p ./certbot/conf
|
||||
|
||||
# Запустить только nginx для первичной проверки
|
||||
docker compose up -d frontend
|
||||
|
||||
# Подождать, пока nginx запустится
|
||||
sleep 5
|
||||
|
||||
# Запустить certbot для получения сертификата
|
||||
docker compose run --rm certbot
|
||||
|
||||
# Перезапустить все сервисы
|
||||
docker compose down
|
||||
docker compose up -d
|
Reference in New Issue
Block a user