uncomment and replace mail name and delete hiphen on init scripts
This commit is contained in:
+12
-12
@@ -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: .
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user