From 214b6eaba2f726516bafc370cc5f5fa8b29b4629 Mon Sep 17 00:00:00 2001 From: mirsal Date: Wed, 27 Nov 2024 10:02:30 +0000 Subject: [PATCH] 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: https://git.coopcloud.tech/toolshed/organising/issues/648 --- compose.host.yml | 1 + compose.yml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/compose.host.yml b/compose.host.yml index b4fef30..d69b1cd 100644 --- a/compose.host.yml +++ b/compose.host.yml @@ -4,6 +4,7 @@ version: "3.8" services: app: deploy: + endpoint_mode: dnsrr update_config: order: stop-first ports: diff --git a/compose.yml b/compose.yml index 1445d45..0daf47b 100644 --- a/compose.yml +++ b/compose.yml @@ -52,6 +52,8 @@ services: socket-proxy: image: lscr.io/linuxserver/socket-proxy:1.26.2-r0-ls26 + deploy: + endpoint_mode: dnsrr environment: - ALLOW_START=0 - ALLOW_STOP=0