aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docker-compose.yaml6
-rw-r--r--entrypoint.bash8
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"