tiredofit / docker-traefik-cloudflare-companion

Automatically Create CNAME records for containers served by Traefik
MIT License
384 stars 64 forks source link

Issue (and fix) for SWARM_MODE not working with a daemon proxy #78

Closed mxmeeple closed 1 year ago

mxmeeple commented 1 year ago

So while setting up this container I also used a docker-socket-proxy. and I noticed that when I used SWARM_MODE this caused the container to loop with an indefinite error message. container-logs.txt This was because the socket location wasnt being passed to 'docker.APIClient' call. My Solution Reproducible with this compose file on a swarm docker-stack.yaml

(Also sorry if this isnt the proper way to do things, I am quite new to git with other users. )