Quick start (assuming you have installed Docker already):
cd sample
./quickstart.sh
- Create a local folder, for instance
server
- Create a data folder, for instance
server/data
and change the permissions withsudo chown 30000 ./data
- Download the
Dockerfile
andminetest.conf
and save them intoserver
- Change to the
server
directory in your terminal - Build an image with
docker build -t myserver:latest ./
- Run the server with
docker run -it --rm -v $PWD/data:/var/lib/minetest -p 30000:30000/udp -p 30000:30000/tcp myserver:latest
- If you make changes to Dockerfile or minetest.conf, stop the container with
CTRL+C
and run the steps 5 and 6 again
Edit minetest.conf
adding/changing the configuration values as desired.
After that, run the steps 5 and 6 from the quick start reference.
To add new mods, edit Dockerfile
and add more mods from ContentDB in the RUN
statement, like this:
RUN contentdb install TenPlus1/ethereal
Then run the steps 5 and 6 again from the quick start reference. After you
add the mod to the image, you also need to edit ./data/world/world.mt
to
load it, changing the load_mod_... = false
to load_mod_... = true
.