From 1ad5d3ac8ca5ada314d53a611c8b4d7badf978df Mon Sep 17 00:00:00 2001 From: "Alex Pooley (@zuedev)" Date: Fri, 17 Apr 2026 18:07:33 +0100 Subject: add overlay option for custom file overrides --- docker-compose.yaml | 6 ++---- entrypoint.bash | 8 +++++++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index c8c66b7..e6b0126 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,11 +1,9 @@ services: nuclearoption: build: . - # environment: - # - STEAM_USERNAME=anonymous - # - STEAM_PASSWORD= network_mode: host env_file: - .env volumes: - - ./nuclearoption:/app \ No newline at end of file + - ./nuclearoption:/app + - ./overlay:/overlay \ No newline at end of file diff --git a/entrypoint.bash b/entrypoint.bash index 3616629..c40fcd0 100644 --- a/entrypoint.bash +++ b/entrypoint.bash @@ -13,7 +13,13 @@ fi # install game server via steamcmd steamcmd +login "$STEAM_USERNAME" "$STEAM_PASSWORD" +force_install_dir /app +app_update 3930080 validate +quit -# handle configuration file changes +# apply overlay if it exists +if [ -d "/overlay" ]; then + echo "Applying overlay from /overlay to /app" + cp -r /overlay/* /app/ +fi + +# handle configuration file changes via environment variables CONFIG_FIELDS=( "ServerName" "MaxPlayers" -- cgit v1.2.3