From da34a546b5d9fad1b247deb5b2ca5cf7f3974713 Mon Sep 17 00:00:00 2001 From: Fabian von Feilitzsch Date: Fri, 5 Apr 2019 12:20:30 -0400 Subject: [PATCH] add doc for OVERRIDE_SERVER_PROPERTIES --- minecraft-server/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/minecraft-server/README.md b/minecraft-server/README.md index f7675676..12536ee1 100644 --- a/minecraft-server/README.md +++ b/minecraft-server/README.md @@ -568,14 +568,29 @@ this server instance. ## Server configuration +By default the server configuration will be created and set based on the following +environment variables, but only the first time the server is started. If the +`server.properties` file already exists, the values in them will not be changed. + +If you would like to override the server configuration each time the container +starts up, you can set the OVERRIDE_SERVER_PROPERTIES environment variable like: + + docker run -d -e OVERRIDE_SERVER_PROPERTIES=true ... + +This will reset any manual configuration of the `server.properties` file, so if +you want to make any persistent configuration changes you will need to make sure +you have properly set the proper environment variables in your docker run command (described below). + ### Server name The server name (e.g. for bungeecord) can be set like: + docker run -d -e SERVER_NAME=MyServer ... ### Server port The server port can be set like: + docker run -d -e SERVER_PORT=25565 ... ### Difficulty