lucaslorentz / caddy-docker-proxy

Caddy as a reverse proxy for Docker
MIT License
2.61k stars 163 forks source link

Support `--envfile` CLI argument #548

Closed thekondor closed 7 months ago

thekondor commented 7 months ago

Addresses #423:

francislavoie commented 7 months ago

Why is this necessary? You can load the env from file with Docker Compose already.

thekondor commented 7 months ago

Why is this necessary? You can load the env from file with Docker Compose already.

francislavoie commented 7 months ago

https://github.com/joho/godotenv could be used instead of copying Caddy's impl.

We originally wrote our own to keep things simple but it already grew a bit since. I'm considering switching to a lib at some point in the future

lucaslorentz commented 7 months ago

Code LGTM. Requested a minor change to the log message, will give you some time to adjust it before I merge.

lucaslorentz commented 7 months ago

Merged, will do a new release in case you would like to use it from official docker images.