abiosoft / caddy-docker

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

caddy + php-fpm compose example // configure caddy by env vars #161

Closed pwFoo closed 5 years ago

pwFoo commented 5 years ago

Instead of build a caddy image with php-fpm it would be better to split it into two images and a example docker-compose.yml file how it could be used?

Should be possible with a env var inside of a basic caddyfile to match the php-fpm service name. Also it would be nice to be able to configure caddy by env vars instead of a caddyfile (file)?