From d433fe942491650aadee144afee3800b69d11903 Mon Sep 17 00:00:00 2001 From: Tulis12 Date: Mon, 25 May 2026 09:19:44 +0000 Subject: [PATCH] feat: custom repo when installing nitrox --- README.md | 16 +++++++++------- docker-compose.yml | 3 ++- install-nitrox.sh | 2 +- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index c3ba39a..feb50b5 100644 --- a/README.md +++ b/README.md @@ -17,15 +17,17 @@ services: image: docker.io/fuzzystatic/nitrox-server:latest container_name: nitrox-server volumes: - - "/path/to/nitrox:/config" - - "/path/to/subnautica:/subnautica" + - "/path/to/nitrox:/config" # Stores your server data, such as the configuration and world data + - "/path/to/subnautica:/subnautica" # Stores Subnautica's game files - you will need to copy your own game directory here by moving the contents of your Subnautica installation directory to this volume environment: - - "PUID=1000" - - "PGID=1000" - - "TZ=Etc/UTC" - - "SUBNAUTICA_INSTALLATION_PATH=/subnautica" + - "PUID=1000" # The ID of the group to run Nitrox as (default=1000) + - "PGID=1000" # The ID of the user to run Nitrox as (default=1000) + - "TZ=Etc/UTC" # The timezone to run Nitrox with (default=Etc/UTC) + - "SUBNAUTICA_INSTALLATION_PATH=/subnautica" # The timezone to run Nitrox with (default=/subnautica) + - "SUBNAUTICA_SAVE=My World" # Set this to your desired save name (default=My World) (Optional) + - "CUSTOM_NITROX_REPOSITORY=SubnauticaNitrox/Nitrox" # Set this to the fork you want to use (default=SubnauticaNitrox/Nitrox) ports: - - "11000:11000/udp" + - "11000:11000/udp" # Nitrox restart: "unless-stopped" ``` diff --git a/docker-compose.yml b/docker-compose.yml index 46b3be9..cb78372 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,7 +11,8 @@ services: - "PGID=1000" # The ID of the user to run Nitrox as (default=1000) - "TZ=Etc/UTC" # The timezone to run Nitrox with (default=Etc/UTC) - "SUBNAUTICA_INSTALLATION_PATH=/subnautica" # The timezone to run Nitrox with (default=/subnautica) - - "SUBNAUTICA_SAVE=My World" # Set this to your desired save name (default=My World) + - "SUBNAUTICA_SAVE=My World" # Set this to your desired save name (default=My World) (Optional) + - "CUSTOM_NITROX_REPOSITORY=SubnauticaNitrox/Nitrox" # Set this to the fork you want to use (default=SubnauticaNitrox/Nitrox) ports: - "11000:11000/udp" # Nitrox restart: "unless-stopped" diff --git a/install-nitrox.sh b/install-nitrox.sh index 331fb18..0532631 100755 --- a/install-nitrox.sh +++ b/install-nitrox.sh @@ -4,7 +4,7 @@ echo "Downloading latest Nitrox release..." mkdir --parents /config/packages cd /config/packages -curl --silent https://api.github.com/repos/SubnauticaNitrox/Nitrox/releases/latest \ +curl --silent https://api.github.com/repos/${CUSTOM_NITROX_REPOSITORY:-"SubnauticaNitrox/Nitrox"}/releases/latest \ | grep -wo "https.*linux_x64.zip" \ | wget --output-document ./nitrox.zip --quiet --input-file -