Closed katefike closed 10 months ago
When the container is rebuilt, the TLS certs aren't there. Currently, the only way they get into the container is if they're copied using docker/certbot/get_certs.sh.
docker/certbot/get_certs.sh
echo "Copying TLS certs to sage-mailserver Docker container..." docker cp -L ${certbot_cert} sage-mailserver:${certbot_cert} docker cp -L ${certbot_key} sage-mailserver:${certbot_key}
Added to docker-compose.prod.yml:
docker-compose.prod.yml
volumes: - /etc/letsencrypt/:/etc/letsencrypt/
Problem
When the container is rebuilt, the TLS certs aren't there. Currently, the only way they get into the container is if they're copied using
docker/certbot/get_certs.sh
.Solution
Added to
docker-compose.prod.yml
: