From d0cdff1aca718c8e37f3b5c064cacdf0246af959 Mon Sep 17 00:00:00 2001 From: Alberto Klocker Date: Sun, 21 Dec 2025 12:34:15 +1000 Subject: [PATCH 1/4] docker compose file --- docker-compose.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..42fd8ca --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,30 @@ +version: '3.8' + +services: + nohub: + image: ghcr.io/foxssake/nohub:main + ports: + - "9980:9980" # TCP port for client connections + - "9981:9981" # Metrics port (Prometheus) + environment: + # TCP Configuration + - NOHUB_TCP_HOST=0.0.0.0 + - NOHUB_TCP_PORT=9980 + + # Metrics Configuration + - NOHUB_METRICS_ENABLED=true + - NOHUB_METRICS_HOST=0.0.0.0 + - NOHUB_METRICS_PORT=9981 + + # Logging + - NOHUB_LOG_LEVEL=info + + # Lobby Configuration + - NOHUB_LOBBIES_MAX_COUNT=32768 + - NOHUB_LOBBIES_MAX_PER_SESSION=4 + - NOHUB_LOBBIES_WITHOUT_GAME=true + + # Session Configuration + - NOHUB_SESSIONS_MAX_COUNT=262144 + - NOHUB_SESSIONS_MAX_PER_ADDRESS=64 + restart: unless-stopped \ No newline at end of file From 87bc2e2e6149c0f5d8936407d28e596aa196795a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20G=C3=A1lffy?= Date: Thu, 12 Feb 2026 22:33:33 +0100 Subject: [PATCH 2/4] fxs --- docker-compose.yml | 9 +++++---- docs/source/getting-started/running-nohub.rst | 8 ++++++++ 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 42fd8ca..3ca9e7d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,3 @@ -version: '3.8' - services: nohub: image: ghcr.io/foxssake/nohub:main @@ -7,8 +5,11 @@ services: - "9980:9980" # TCP port for client connections - "9981:9981" # Metrics port (Prometheus) environment: + # See the Server guide for more details: + # https://foxssake.github.io/nohub/server-guide/configuration.html + # # TCP Configuration - - NOHUB_TCP_HOST=0.0.0.0 + - NOHUB_TCP_HOST=* - NOHUB_TCP_PORT=9980 # Metrics Configuration @@ -27,4 +28,4 @@ services: # Session Configuration - NOHUB_SESSIONS_MAX_COUNT=262144 - NOHUB_SESSIONS_MAX_PER_ADDRESS=64 - restart: unless-stopped \ No newline at end of file + restart: unless-stopped diff --git a/docs/source/getting-started/running-nohub.rst b/docs/source/getting-started/running-nohub.rst index 5f10992..65420f7 100644 --- a/docs/source/getting-started/running-nohub.rst +++ b/docs/source/getting-started/running-nohub.rst @@ -20,6 +20,14 @@ To run the *nohub* docker image, make sure to expose the necessary ports: This exposes port ``9980`` for clients to connect on, and port ``9981`` to serve metrics. +Docker Compose +^^^^^^^^^^^^^^ + +It is possible to run *nohub* in conjunction with other services using Docker +Compose: + +.. literalinclude:: /../../docker-compose.yml + Using bun --------- From 3b6d176c98b8e032c9a733de98a93d669dd062f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20G=C3=A1lffy?= Date: Thu, 12 Feb 2026 22:46:44 +0100 Subject: [PATCH 3/4] doctest --- docs/source/getting-started/running-nohub.rst | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/source/getting-started/running-nohub.rst b/docs/source/getting-started/running-nohub.rst index 65420f7..b148807 100644 --- a/docs/source/getting-started/running-nohub.rst +++ b/docs/source/getting-started/running-nohub.rst @@ -26,8 +26,6 @@ Docker Compose It is possible to run *nohub* in conjunction with other services using Docker Compose: -.. literalinclude:: /../../docker-compose.yml - Using bun --------- From a0e21f84e4f3b999bb8332496053322eac726046 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20G=C3=A1lffy?= Date: Thu, 12 Feb 2026 22:49:07 +0100 Subject: [PATCH 4/4] doctest --- docs/source/getting-started/running-nohub.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/source/getting-started/running-nohub.rst b/docs/source/getting-started/running-nohub.rst index b148807..65420f7 100644 --- a/docs/source/getting-started/running-nohub.rst +++ b/docs/source/getting-started/running-nohub.rst @@ -26,6 +26,8 @@ Docker Compose It is possible to run *nohub* in conjunction with other services using Docker Compose: +.. literalinclude:: /../../docker-compose.yml + Using bun ---------