namshi / docker-smtp

SMTP docker container
MIT License
548 stars 198 forks source link

letsencrypt files #64

Closed transfluxus closed 4 years ago

transfluxus commented 4 years ago

hi,

how would I in the best manner make the letsencrypt certfile and keyfile available. I tried setting the env variables

CERTIFICATE_PATH=/etc/letsencrypt/archive/xxx/fullchain1.pem KEY_PATH=/etc/letsencrypt/archive/xxx/privkey1.pem

but the container wont start up with the message:

cp: cannot stat '/etc/letsencrypt/archive/xxx/privkey1.pem': No such file or directory

transfluxus commented 4 years ago

I even copy the privkey into my home folder set chmod to 777 and still get the same error

transfluxus commented 4 years ago

ok, I figured I had to mount that folder in order to make that happen