Skip to content

Difference between relaunch and recreate? #2652

Answered by polarathene
Kiigass asked this question in Q&A
Discussion options

You must be logged in to vote

As far as I understand, I would loose the DKIM keys, if I do docker-compose up / down, wouldn't I?

You would not if you persist the storage that the command is writing the keys to. This is an opendkim folder that exists in the container at /tmp/docker-mailserver, here's the relevant path from the DKIM command the docs are referencing:

mkdir -p "/tmp/docker-mailserver/opendkim/keys/${DKIM_DOMAIN}"

The docs should advise you to provide a volume mount of a local folder or data volume to the internal container directory /tmp/docker-mailserver. Without that, your data will not persist once the container is removed.


Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Kiigass
Comment options

Answer selected by Kiigass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants