Commit 31396906 authored by Jérémie Lanceleur's avatar Jérémie Lanceleur
Browse files

conf cerbot nginx

parent d4243b84
Pipeline #3161 skipped with stages
......@@ -33,6 +33,7 @@ services:
- {{ NGINX_HTTP_PORT }}:80
depends_on:
- postal
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
- ./nginx/certbot/conf:/etc/letsencrypt
......@@ -41,6 +42,7 @@ services:
- postal_assets:/postal/public/assets:ro
certbot:
image: certbot/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
volumes:
- ./nginx/certbot/conf:/etc/letsencrypt
- ./nginx/certbot/www:/var/www/certbot
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment