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 | |
---|---|---|---|---|
Docker unable to mount bind letsencrypt folder | 2 | 2606 | December 17, 2023 | |
Mount cert store volume | 0 | 549 | June 25, 2019 | |
Docker compose - volumes on aws giving not found error | 2 | 704 | August 29, 2018 | |
SSLCertificateFile does not exist or is empty | 10 | 8636 | October 25, 2021 | |
Docker nginx cannot load certificate "/etc/nginx/certs/***" | 1 | 22474 | December 15, 2019 |