change the certbot servcie settings into docker-compoe.ymlfile
This commit is contained in:
+3
-2
@@ -74,14 +74,15 @@ services:
|
|||||||
- certbot
|
- certbot
|
||||||
|
|
||||||
certbot:
|
certbot:
|
||||||
image: certbot/certbot
|
build:
|
||||||
|
context: ./certbot
|
||||||
|
dockerfile: Dockerfile
|
||||||
container_name: certbot
|
container_name: certbot
|
||||||
volumes:
|
volumes:
|
||||||
- certbot-etc:/etc/letsencrypt
|
- certbot-etc:/etc/letsencrypt
|
||||||
- certbot-var:/var/lib/letsencrypt
|
- certbot-var:/var/lib/letsencrypt
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
command: sh -c "certbot certonly --standalone -p ${CERTBOT_PORT} --noninteractive --agree-tos --email ${EMAIL} -d ${DOMAINS} --keep-until-expiring"
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user