uncomment and replace mail name and delete hiphen on init scripts

This commit is contained in:
valitovgaziz
2025-05-07 16:38:35 +05:00
parent 8a8ee12779
commit c5d10d3b5d
2 changed files with 16 additions and 16 deletions
+12 -12
View File
@@ -27,18 +27,18 @@ services:
- db
command: ./bin/api
# migrator:
# build:
# context: ./migrator
# dockerfile: Dockerfile
# env_file:
# - .env
# depends_on:
# - api
# - db
# volumes:
# - goose:/migrations
# command: goose up
migrator:
build:
context: ./migrator
dockerfile: Dockerfile
env_file:
- .env
depends_on:
- api
- db
volumes:
- goose:/migrations
command: goose up
spa:
build: .
+4 -4
View File
@@ -2,13 +2,13 @@
# Убедитесь, что домены указаны правильно
domains="yalarba.ru www.yalarba.ru"
email="your-email@example.com" # Замените на реальный email
email="valitovgaziz@yandex.ru" # Замените на реальный email
# Создаём временный контейнер Nginx для верификации
docker-compose up -d nginx
docker compose up -d nginx
# Запускаем Certbot для получения сертификатов
docker-compose run --rm certbot certonly --webroot --webroot-path /var/www/certbot --email $email --agree-tos --no-eff-email -d $domains --force-renewal
docker compose run --rm certbot certonly --webroot --webroot-path /var/www/certbot --email $email --agree-tos --no-eff-email -d $domains --force-renewal
# Перезапускаем Nginx с новыми сертификатами
docker-compose restart nginx
docker compose restart nginx