forked from coop-cloud/traefik
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
This commit is contained in:
parent
b5824c89f1
commit
ad0a3c2b41
@ -4,6 +4,7 @@ version: "3.8"
|
|||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
deploy:
|
deploy:
|
||||||
|
endpoint_mode: dnsrr
|
||||||
update_config:
|
update_config:
|
||||||
order: stop-first
|
order: stop-first
|
||||||
ports:
|
ports:
|
||||||
|
@ -53,6 +53,8 @@ services:
|
|||||||
|
|
||||||
socket-proxy:
|
socket-proxy:
|
||||||
image: lscr.io/linuxserver/socket-proxy:1.26.2-r0-ls26
|
image: lscr.io/linuxserver/socket-proxy:1.26.2-r0-ls26
|
||||||
|
deploy:
|
||||||
|
endpoint_mode: dnsrr
|
||||||
environment:
|
environment:
|
||||||
- ALLOW_START=0
|
- ALLOW_START=0
|
||||||
- ALLOW_STOP=0
|
- ALLOW_STOP=0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user