uncomment and replace mail name and delete hiphen on init scripts
This commit is contained in:
+12
-12
@@ -27,18 +27,18 @@ services:
|
|||||||
- db
|
- db
|
||||||
command: ./bin/api
|
command: ./bin/api
|
||||||
|
|
||||||
# migrator:
|
migrator:
|
||||||
# build:
|
build:
|
||||||
# context: ./migrator
|
context: ./migrator
|
||||||
# dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
# env_file:
|
env_file:
|
||||||
# - .env
|
- .env
|
||||||
# depends_on:
|
depends_on:
|
||||||
# - api
|
- api
|
||||||
# - db
|
- db
|
||||||
# volumes:
|
volumes:
|
||||||
# - goose:/migrations
|
- goose:/migrations
|
||||||
# command: goose up
|
command: goose up
|
||||||
|
|
||||||
spa:
|
spa:
|
||||||
build: .
|
build: .
|
||||||
|
|||||||
@@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
# Убедитесь, что домены указаны правильно
|
# Убедитесь, что домены указаны правильно
|
||||||
domains="yalarba.ru www.yalarba.ru"
|
domains="yalarba.ru www.yalarba.ru"
|
||||||
email="your-email@example.com" # Замените на реальный email
|
email="valitovgaziz@yandex.ru" # Замените на реальный email
|
||||||
|
|
||||||
# Создаём временный контейнер Nginx для верификации
|
# Создаём временный контейнер Nginx для верификации
|
||||||
docker-compose up -d nginx
|
docker compose up -d nginx
|
||||||
|
|
||||||
# Запускаем Certbot для получения сертификатов
|
# Запускаем 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 с новыми сертификатами
|
# Перезапускаем Nginx с новыми сертификатами
|
||||||
docker-compose restart nginx
|
docker compose restart nginx
|
||||||
Reference in New Issue
Block a user