build one nginx one spa one cerbot and set settings
This commit is contained in:
+8
-8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user