Fix Docker dependency and align Moonlight port-family mapping. #1

Merged
bilal merged 1 commits from cursor/fix-moonlight-port-mapping into main 2026-06-18 15:39:07 +03:00
3 changed files with 38 additions and 7 deletions
Showing only changes of commit cc39c8b766 - Show all commits

View File

@@ -10,7 +10,7 @@ RUN dpkg --add-architecture i386 && \
software-properties-common wget curl ca-certificates \ software-properties-common wget curl ca-certificates \
libcap2-bin libgomp1 mesa-utils \ libcap2-bin libgomp1 mesa-utils \
libxcb-cursor0 libxcb-xinerama0 libxcb-xfixes0 libxcb-shape0 libxcb-randr0 libxcb-xtest0 \ libxcb-cursor0 libxcb-xinerama0 libxcb-xfixes0 libxcb-shape0 libxcb-randr0 libxcb-xtest0 \
libxcb-x11-0 libxcb-render0 libxcb-render-util0 libxcb-util1 libxcb-keysyms1 \ libxcb1 libxcb-render0 libxcb-render-util0 libxcb-util1 libxcb-keysyms1 \
&& add-apt-repository multiverse \ && add-apt-repository multiverse \
&& apt-get update && apt-get update

View File

@@ -55,11 +55,34 @@
### Порты ### Порты
Каждый клиент использует следующие порты: В Moonlight при ручном добавлении указывается один адрес в формате `IP:base_port`.
- TCP: 47984-47990
- UDP: 47998-48000
Порты для каждого клиента отличаются для избежания конфликтов. `base_port` для каждого клиента:
- `player1` -> `47989` (можно просто `IP`, это дефолт)
- `player2` -> `48019`
- `player3` -> `48049`
- `player4` -> `48079`
Порты проброшены для каждого клиента отдельно (формат: `host:container`):
- `player1`
- TCP: `47984-47990:47984-47990`
- TCP/UDP: `48010:48010`
- UDP: `47998-48000:47998-48000`
- `player2`
- TCP: `48014-48020:47984-47990`
- TCP/UDP: `48040:48010`
- UDP: `48028-48030:47998-48000`
- `player3`
- TCP: `48044-48050:47984-47990`
- TCP/UDP: `48070:48010`
- UDP: `48058-48060:47998-48000`
- `player4`
- TCP: `48074-48080:47984-47990`
- TCP/UDP: `48100:48010`
- UDP: `48088-48090:47998-48000`
Moonlight использует `base_port` и вычисляет остальные порты автоматически.
## Отладка ## Отладка

View File

@@ -35,6 +35,8 @@ services:
RENDER_DEVICE_INDEX: "0" RENDER_DEVICE_INDEX: "0"
ports: ports:
- "47984-47990:47984-47990/tcp" - "47984-47990:47984-47990/tcp"
- "48010:48010/tcp"
- "48010:48010/udp"
- "47998-48000:47998-48000/udp" - "47998-48000:47998-48000/udp"
volumes: volumes:
- /DATA/AppData/game-server/players/p1_steam:/root/.local/share/Steam - /DATA/AppData/game-server/players/p1_steam:/root/.local/share/Steam
@@ -56,6 +58,8 @@ services:
RENDER_DEVICE_INDEX: "0" RENDER_DEVICE_INDEX: "0"
ports: ports:
- "48014-48020:47984-47990/tcp" - "48014-48020:47984-47990/tcp"
- "48040:48010/tcp"
- "48040:48010/udp"
- "48028-48030:47998-48000/udp" - "48028-48030:47998-48000/udp"
volumes: volumes:
- /DATA/AppData/game-server/players/p2_steam:/root/.local/share/Steam - /DATA/AppData/game-server/players/p2_steam:/root/.local/share/Steam
@@ -76,6 +80,8 @@ services:
RENDER_DEVICE_INDEX: "0" RENDER_DEVICE_INDEX: "0"
ports: ports:
- "48044-48050:47984-47990/tcp" - "48044-48050:47984-47990/tcp"
- "48070:48010/tcp"
- "48070:48010/udp"
- "48058-48060:47998-48000/udp" - "48058-48060:47998-48000/udp"
volumes: volumes:
- /DATA/AppData/game-server/players/p3_steam:/root/.local/share/Steam - /DATA/AppData/game-server/players/p3_steam:/root/.local/share/Steam
@@ -95,8 +101,10 @@ services:
NVIDIA_VISIBLE_DEVICES: "4" NVIDIA_VISIBLE_DEVICES: "4"
RENDER_DEVICE_INDEX: "0" RENDER_DEVICE_INDEX: "0"
ports: ports:
- "47974-47980:47984-47990/tcp" - "48074-48080:47984-47990/tcp"
- "47968-47970:47998-48000/udp" - "48100:48010/tcp"
- "48100:48010/udp"
- "48088-48090:47998-48000/udp"
volumes: volumes:
- /DATA/AppData/game-server/players/p4_steam:/root/.local/share/Steam - /DATA/AppData/game-server/players/p4_steam:/root/.local/share/Steam
- /DATA/AppData/game-server/players/p4_config:/root/.config/sunshine - /DATA/AppData/game-server/players/p4_config:/root/.config/sunshine