change the certbot servcie settings into docker-compoe.ymlfile

This commit is contained in:
2025-05-28 13:14:13 +03:00
parent d264153f46
commit cdd5ea6def
+3 -2
View File
@@ -74,14 +74,15 @@ services:
- certbot
certbot:
image: certbot/certbot
build:
context: ./certbot
dockerfile: Dockerfile
container_name: certbot
volumes:
- certbot-etc:/etc/letsencrypt
- certbot-var:/var/lib/letsencrypt
env_file:
- .env
command: sh -c "certbot certonly --standalone -p ${CERTBOT_PORT} --noninteractive --agree-tos --email ${EMAIL} -d ${DOMAINS} --keep-until-expiring"
restart: unless-stopped
volumes: