lucaslorentz / caddy-docker-proxy

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

Service is not in same network as caddy in docker swarm #544

Closed humbsolutions closed 7 months ago

humbsolutions commented 7 months ago

In case anyone also face the same issues

Please make sure in the network setting, you need to change from

networks:
  caddy:
    external: true

to

networks:
  caddy:
    name: caddy
    external: true

Otherwise, the docker stack will always give you a new network name in <project>_caddy