traefik/compose.host.yml
mirsal 214b6eaba2
Switch to endpoint-mode dnsrr instead of vip
The default docker swarm endpoint mode (vip) introduces unnecessary
indirection in the communication between services, namely the
docker-proxy and a dynamic haproxy endpoint container. This commit
switches the socket-proxy service to endpoint_mode: dnsrr by default and
the traefik service when using host-mode port publishing.

I would strongly recommend considering switching to host-mode port
publishing by default, especially as mose coop-cloud deployment are
single-node.

See: toolshed/organising#648
2024-11-27 10:02:30 +00:00

17 lines
256 B
YAML

---
version: "3.8"
services:
app:
deploy:
endpoint_mode: dnsrr
update_config:
order: stop-first
ports:
- target: 80
published: 80
mode: host
- target: 443
published: 443
mode: host