Hello, I am using docker-compose to create an Apache2 and certbot stack but today I ran into a problem that I’m not sure how to overcome. So certbot stores the certificates (according to the docs) in “conf/live/${main_domain}” and in this directory the files are symbolic links to “conf/archive/${main_domain}” so when I just mount the folder “conf/live/${main_domain}” from host to apache2 the certificates don’t work as they are pointing to a directory that doesn’t exist inside of apache2. I’m only pointing the certificates into apache2 as I find it is safer to do this then to mount the entire certbot folder. How can I mount the certificates like I am using docker-compose without the symbolic links (copy the files using the cp -L)?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Mounting default service configuration files | 0 | 455 | August 10, 2018 | |
Volume mount silently failing on Fedora 38 host | 1 | 510 | June 16, 2023 | |
Docker compose - volumes on aws giving not found error | 2 | 699 | August 29, 2018 | |
apache in container does not start with NFS directory | 2 | 541 | March 1, 2023 | |
Why is docker-containerd-shim managing apache2 processes? | 0 | 811 | November 4, 2018 |