- amd64, arm64/aarch64 support for the necesse server
- Gracefully shutdown necesse server and save when container is stopped
- Send commands to the server
- Get logs from the server
- Multiple ways to set the config
- [NEW] Daily image builds to latest necesse server version
To update, just pull the latest image (sudo docker compose pull) and recreate your container.
- Complete docker-compose.yml file provided
Multiarch image: karyeet/necesse-server-docker:latest
git clone https://github.com/karyeet/necesse-server-docker
cd ./necesse-server-dockersudo docker compose up -d
sudo docker attach necesse_server
To detatch, hit ctrl+p then ctrl+q
Any of these commands will work:
sudo docker compose logsinside thenecesse-server-dockerfoldersudo docker logs necesse_server- To follow logs (view live):
docker logs --follow necesse_server
- You may set the environment variables in the docker-compose.yml file.
- You may also remove an environment variable from the docker-compose.yml file and edit it directly in the server.cfg
- By default, the server uses port 14159/udp.
- To change the port to, for example, port 1738 you must change the
14159:14159/udpin the docker-compose.yml to1738:14159/udp.
- To change the port to, for example, port 1738 you must change the
- Explanations to all the configuration options can be found in the server.cfg file.
JVM options can be set by modifying the JVM_OPTS environment variable set in docker-compose.yml. Remember to uncomment it.
I've set it to -Xms1G -Xmx2G as an example, but I don't know if those settings are best, so please don't feel that you should use them.
The server will save worlds to the saves folder.
Logs are in the logs folder.
- Run the server once to create file structure:
sudo docker compose up -d- count to 3
sudo docker compose down
- Copy mod .jar into the mod folder created in the
necesse-server-dockerfolder. - Start server:
sudo docker compose up -d
You can import a world by copying the .zip into ./saves folder and changing world=myNewWorld in the docker-compose.yml to the name of the .zip, whichout the .zip part.
Ex: If the file is called coolestNecesseWorld.zip, then change world=myNewWorld to world=coolestNecesseWorld.
I recommend periodically making a backup of your world outside of that directory.