Skip to content

Commit

Permalink
Updated readme and envs template
Browse files Browse the repository at this point in the history
  • Loading branch information
Danixu committed Jan 18, 2025
1 parent 65400eb commit 4fdb84b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .env.template
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Empty Strings are ignored or equivalent to false
LANG=en_EN.UTF-8
NOSTEAM=False
CACHEDIR=
MODFOLDERS=workshop,steam,mods
DEBUG=False
ADMINUSERNAME=admin
ADMINPASSWORD=ChangeMePlease
SERVERNAME=
SERVERPRESET=
Expand Down
6 changes: 5 additions & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ https://hub.docker.com/r/danixu86/project-zomboid-dedicated-server

This dockerfile converts some env variables to arguments in the server command, allowing to configure it. The image supports the following environment variables:

`ADMINUSERNAME:` Sets the administrator username, otherwise `admin` will be used.

`ADMINPASSWORD:` Sets or changes the admin password. Is mandatory at first startup or will fail. I recommend to remove it once the server is started because the server logs every argument in clear text (if doesn't cares, you can leave it).

`PASSWORD:` Sets or changes server password. Is optional.
Expand All @@ -32,7 +34,7 @@ This dockerfile converts some env variables to arguments in the server command,

`PORT:` Set the server port. By default 16261

`SERVERNAME:` Set the server name, which allows you to have multiple server versions. Changing the name will create a new server data, so current progress will not be available. Also will not be lost, just reverting the server name change will load it again.
`SERVERNAME:` Set the server name, which allows you to have multiple server versions. Changing the name will create a new server data, so current progress will not be available. Also will not be lost, just reverting the server name change will load it again. **NOTE: Don't use spaces or special characters or admin user will fail**

`SERVERPRESET:` Set the new servers default preset. If not set, the default is apocalypse. Allowed options are Apocalypse, Beginner, Builder, FirstWeek, SixMonthsLater, Survival and Survivor.

Expand All @@ -48,6 +50,8 @@ This dockerfile converts some env variables to arguments in the server command,

`MOD_IDS:` Semicolon separated list of Mod IDs to install to the server

`LANG:` This env variable will set the container locales, which will be used by the pz server to set the language. Example (en_EN.UTF-8, es_ES.UTF-8...)

Mods will install on second server start

Maps are added on third server start, after mods are added
Expand Down

0 comments on commit 4fdb84b

Please sign in to comment.