build one nginx one spa one cerbot and set settings

This commit is contained in:
2025-05-27 14:52:43 +03:00
parent a4a282e207
commit b23aebab4c
7 changed files with 147 additions and 47 deletions
+8 -8
View File
@@ -74,20 +74,20 @@ services:
- "80:80"
- "443:443"
volumes:
- ./nginx/yalarba.ru.conf:/etc/nginx/conf.d/yalarba.ru.conf
- ./nginx/configs:/etc/nginx/conf.d
- certbot-etc:/etc/letsencrypt
- certbot-var:/var/lib/letsencrypt
environment:
- EMAIL=${EMAIL}
- DOMAINS=${DOMAINS}
networks:
- web-network
depends_on:
- certbot
certbot:
image: certbot/certbot
container_name: certbot
build:
context: ./certbot
dockerfile: Dockerfile
volumes:
- certbot-etc:/etc/letsencrypt
- certbot-var:/var/lib/letsencrypt
command: sh -c "certbot certonly --standalone --noninteractive --agree-tos --email ${EMAIL} -d ${DOMAINS} --keep-until-expiring"
env_file:
- .env
restart: unless-stopped