Skip to content

Commit

Permalink
added certbot
Browse files Browse the repository at this point in the history
  • Loading branch information
leoBitto committed Apr 7, 2024
1 parent c11e4f4 commit 7f61f4c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,31 @@ services:
- static_volume:/home/app/web/static
- media_volume:/home/app/web/media
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- certbot_volume:/etc/letsencrypt
ports:
- 80:80
- 443:443
restart: always
depends_on:
- web

### MODIFICA L'EMAIL E IL DOMINIO IN ENTRYPOINT!!!
certbot:
image: certbot/certbot
container_name: certbot
volumes:
- certbot_volume:/etc/letsencrypt
- ./config:/etc/letsencrypt/config
- certbot_webroot:/var/www/certbot
entrypoint: /bin/sh -c "trap exit TERM; while :; do certbot certonly --webroot -w /var/www/certbot --email ${CERTBOT_EMAIL} --agree-tos --no-eff-email --domains ${CERTBOT_DOMAINS}; sleep 12h & wait $${!}; done;"
environment:
- CERTBOT_EMAIL=leonardobitto@gmail.com
- CERTBOT_DOMAINS=h1v3.xyz


volumes:
postgres_data:
static_volume:
media_volume:
certbot_volume:
certbot_webroot:

0 comments on commit 7f61f4c

Please sign in to comment.