cloyne / docker-web

Web content Docker image.
https://registry.hub.docker.com/u/cloyne/web/
0 stars 0 forks source link

/ssl/letsencrypt gets wiped on docker restart #1

Open ecawthon opened 5 years ago

ecawthon commented 5 years ago

and I'm not sure where it's configured. Workaround: To add new subdomains, I've been manually editing /srv/web/ssl/letsencrypt.list, then:

# docker exec -ti web script -q -c "/bin/bash" /dev/null
root@web/# /usr/sbin/nginx -s reload
root@web/# /letsencrypt/dockergen.sh
root@web/# cd /ssl
root@web/ssl# ln -s letsencrypt/live/subdomain.cloyne.org/fullchain.pem subdomain.cloyne.org.crt
root@web/ssl# ln -s letsencrypt/live/subdomain.cloyne.org/privkey.pem subdomain.cloyne.org.key

(Approximately)

mitar commented 1 year ago

You have to mount /ssl directory outside of the container so that it is preserved between restarts.