abiosoft / caddy-docker

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

How to dynamically reload Caddyfile? #112

Closed Zomis closed 6 years ago

Zomis commented 6 years ago

If I kill the caddy process, the Docker container exits.

If I try to start caddy, it complains that the port is already in use.

I also tried kill -s USR1 <pid> but that also had no effect.

These issues made me stop trying your Docker image and trying another Caddy Docker image instead.

abiosoft commented 6 years ago

Can you give more details about your flow? The container is meant to run only Caddy and if you terminate Caddy, the container should exit. To reload you can send USR1 signal to the container with docker.

See this demonstration. caddyusr1

Zomis commented 6 years ago

That probably explains it. I didn't run docker kill -s USR1, I ran kill -s USR1 <pid> inside the container.

Can you add this information to the README?