abiosoft / caddy-docker

Docker container for Caddy
https://hub.docker.com/r/abiosoft/caddy/
MIT License
768 stars 315 forks source link

path to Caddyfile #128

Closed mbana closed 6 years ago

mbana commented 6 years ago

Can you allow passing in the path to the Caddyfile, please. Something like below:

...
ENV CADDYFILE "/etc/Caddyfile"
CMD ["--conf", "$CADDYFILE", "--log", "stdout", "--agree=$ACME_AGREE"]
...

Thanks,

abiosoft commented 6 years ago

The Caddyfile is at /etc/Caddyfile. All you have to do is mount it in the container https://github.com/abiosoft/caddy-docker#using-local-caddyfile-and-sites-root

abiosoft commented 6 years ago

I'll be closing this as well as it is not an issue. $ACME_AGREE was a special case.