You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sslwykop2:
image: "katacoda/docker-http-server:v2"
labels:
- "virtual.host=test2.ssl-wykop.pl" # your domains separated with a space
- "virtual.port=80" # exposed port of this container
- "[email protected]" # ssl is now on
- "virtual.websockets" # enable websocket passthrough
It works, but not without restarting caddy-gen container. Logs without restarting caddy:
This seems to be an old issue but it's still active today. In order to generate certs for new sites/containers, docker-gen container needs to be restarted. Seeon on caddy-gen:latest.
It also seems to ignore changes to the labels (virtual.port), requiring a restart of caddy-gen. I don't know where it goes wrong but the logs when adding a new container are like this:
caddy-gen | dockergen.1 | 2020/02/13 11:35:05 Received event die for container fd7cfcbec073
caddy-gen | dockergen.1 | 2020/02/13 11:35:05 Received event stop for container fd7cfcbec073
caddy-gen | dockergen.1 | 2020/02/13 11:35:06 Debounce minTimer fired
caddy-gen | dockergen.1 | 2020/02/13 11:35:06 Received event start for container 8bdb018644bc
caddy-gen | dockergen.1 | 2020/02/13 11:35:06 Generated '/etc/caddy/Caddyfile' from 15 containers
caddy-gen | dockergen.1 | 2020/02/13 11:35:07 Debounce minTimer fired
caddy-gen | dockergen.1 | 2020/02/13 11:35:07 Contents of /etc/caddy/Caddyfile did not change. Skipping notification ''
So I added this entry to docker compose
It works, but not without restarting caddy-gen container. Logs without restarting caddy:
The text was updated successfully, but these errors were encountered: