Compare commits

..

1 Commits

Author SHA1 Message Date
abbb3255f8 Switch to endpoint-mode dnsrr instead of vip
Some checks failed
continuous-integration/drone/pr Build is failing
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 most coop-cloud deployments are
single-server.

See: toolshed/organising#648
2024-11-27 16:42:35 +00:00
5 changed files with 3 additions and 19 deletions

View File

@ -147,7 +147,3 @@ COMPOSE_FILE="compose.yml"
# NOTE(3wc): as of 2024-04-01 only the `icecast` recipe uses this
#COMPOSE_FILE="$COMPOSE_FILE:compose.web-alt.yml"
#WEB_ALT_ENABLED=1
## Qbit
#COMPOSE_FILE="$COMPOSE_FILE:compose.qbit.yml"
#QBIT_ENABLED=1

View File

@ -1,3 +1,3 @@
export TRAEFIK_YML_VERSION=v22
export TRAEFIK_YML_VERSION=v21
export FILE_PROVIDER_YML_VERSION=v10
export ENTRYPOINT_VERSION=v4

View File

@ -1,8 +0,0 @@
version: "3.8"
services:
app:
environment:
- QBIT_ENABLED
ports:
- "6881:6881/udp"
- "6881:6881/tcp"

View File

@ -53,6 +53,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

View File

@ -79,12 +79,6 @@ entrypoints:
matrix-federation:
address: ":9001"
{{ end }}
{{ if eq (env "QBIT_ENABLED") "1" }}
qbit:
address: ":6881"
qbit-udp:
address: ":6881/udp"
{{ end }}
ping:
entryPoint: web