fixing certbot
This commit is contained in:
@@ -30,7 +30,17 @@ services:
|
||||
volumes:
|
||||
- ./certbot/conf:/etc/letsencrypt
|
||||
- ./certbot/www:/var/www/certbot
|
||||
command: certonly --webroot -w /var/www/certbot --email ${EMAIL} -d ${DOMAIN} --agree-tos
|
||||
command: certonly --webroot -w /var/www/certbot --email ${EMAIL} -d ${DOMAIN} --agree-tos --non-interactive
|
||||
networks:
|
||||
- app-network
|
||||
|
||||
certbot-renew:
|
||||
image: certbot/certbot
|
||||
container_name: certbot-renew
|
||||
volumes:
|
||||
- ./certbot/conf:/etc/letsencrypt
|
||||
- ./certbot/www:/var/www/certbot
|
||||
entrypoint: /bin/sh -c "trap exit TERM; while :; do certbot renew --webroot -w /var/www/certbot; sleep 12h & wait $${!}; done;"
|
||||
networks:
|
||||
- app-network
|
||||
|
||||
|
||||
@@ -13,7 +13,5 @@ RUN apt-get update && apt-get install -y gettext-base
|
||||
# Replace variables at build time
|
||||
ENV BACKEND_HOST=backend
|
||||
ENV DOMAIN=example.com
|
||||
ENV CERT_PATH=/etc/letsencrypt/live/$DOMAIN
|
||||
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
Reference in New Issue
Block a user