Add compose.host-ports.yml #4

Manually merged
amras merged 3 commits from host-ports into main 2026-05-01 11:10:13 +00:00
3 changed files with 38 additions and 0 deletions

View File

@ -12,3 +12,6 @@ COMPOSE_FILE="compose.yml"
## Web client
#COMPOSE_FILE="$COMPOSE_FILE:compose.mumbleweb.yml"
## Host-port mode
Review

What are your thoughts on including a configurable port number in the config?

Upside: this would trivially allow multiple deployments on the same server, as long as each had a unique port.

Downside: might be confusing to the operator, especially since the port number would only be configurable in host-port mode.

What are your thoughts on including a configurable port number in the config? Upside: this would trivially allow multiple deployments on the same server, as long as each had a unique port. Downside: might be confusing to the operator, especially since the port number would only be configurable in host-port mode.
Review

I could see adding this, but maybe in a separate PR? could also in that PR think on if there is a way to also make it configurable in traefik mode somehow, at the same time.

But I think manually harcoding the port like this probably covers the majority of usecases

I could see adding this, but maybe in a separate PR? could also in that PR think on if there is a way to also make it configurable in traefik mode somehow, at the same time. But I think manually harcoding the port like this probably covers the majority of usecases
#COMPOSE_FILE="$COMPOSE_FILE:compose.host-ports.yml"

View File

@ -50,6 +50,27 @@ overlay. To enable it:
2. `abra app deploy <YOURAPPDOMAIN> --force`
3. Open `https://<YOURAPPDOMAIN>` in a browser
## Host-Port Mode
Instead of modifying the Traefik config,
you can alternatively deploy Mumble with compose.host-ports.yml,
and it will bind directly to the host server port 64738,
Outdated
Review

I don't think 64739 is used anywhere.

I don't think 64739 is used anywhere.

lol you are correct.

I was somehow morphing this in my mind with lasuite-meet which does you multiple ports, and the fact that there were two entries (one for tcp and udp)

glad to have a second pair of eyes on it

lol you are correct. I was somehow morphing this in my mind with lasuite-meet which does you multiple ports, and the fact that there were two entries (one for tcp and udp) glad to have a second pair of eyes on it
bypassing Traefik.
This is not recommended for multinode setups, since the client would have to connect directly to whichever node is running the app container, but this does work when deployed to a single server.
Outdated
Review

I wonder if we should be more specific here?

In principle, there's nothing stopping a multinode setup from using host ports, as long as the operator locks deployment to specific nodes. But it will break in the typical swarm setup with interchangeable worker nodes.

Maybe something like:

This is not recommended for multinode setups, since the client would have to connect directly to whichever node is running the app container.

What are your thoughts?

I wonder if we should be more specific here? In principle, there's nothing stopping a multinode setup from using host ports, as long as the operator locks deployment to specific nodes. But it will break in the typical swarm setup with interchangeable worker nodes. Maybe something like: > This is not recommended for multinode setups, since the client would have to connect directly to whichever node is running the app container. What are your thoughts?

Your phrasing seems good to me. I changed it.

Your phrasing seems good to me. I changed it.
With this compose file, you can deploy mumble without any changes to the Traefik config:
1. `abra app config <YOURAPPDOMAIN>` — uncomment the line:
```
COMPOSE_FILE="$COMPOSE_FILE:compose.host-ports.yml"
```
2. `abra app deploy <YOURAPPDOMAIN>`
[`abra`]: https://git.coopcloud.tech/coop-cloud/abra
[`coop-cloud/traefik`]: https://git.coopcloud.tech/coop-cloud/traefik
[Mumble client]:(https://www.mumble.info/downloads/)

14
compose.host-ports.yml Normal file
View File

@ -0,0 +1,14 @@
---
version: "3.8"
services:
app:
ports:
- target: 64738
published: 64738
protocol: tcp
mode: host
- target: 64738
published: 64738
protocol: udp
mode: host