katefike / sage

A personal finance app that's like Mint, but better. It uses a dockerized postfix/dovecot email server. Parses transaction data from alert emails.
MIT License
5 stars 0 forks source link

Mount TLS certs to the mailserver container #110

Closed katefike closed 10 months ago

katefike commented 10 months ago

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.

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}

Solution

Added to docker-compose.prod.yml:

    volumes:
    - /etc/letsencrypt/:/etc/letsencrypt/