forked from coop-cloud/traefik
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
17 lines
256 B
YAML
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
|