diff --git a/README.md b/README.md index c5df7511a..f7aa9a5ab 100644 --- a/README.md +++ b/README.md @@ -130,13 +130,15 @@ Compiling Docker ------ -Server Quick Start: -``` +Quick Start: +```bash +# One-command server setup with VoxeLibre game mkdir -p ~/luanti/{data,conf,games} && \ wget https://raw.githubusercontent.com/luanti-org/luanti/master/minetest.conf.example -O ~/luanti/conf/minetest.conf && \ wget https://content.luanti.org/packages/Wuzzy/mineclone2/releases/30536/download/ -O ~/luanti/mineclone2.zip && \ unzip ~/luanti/mineclone2.zip -d ~/luanti/games/ && \ echo "name = AdminUser" >> ~/luanti/conf/minetest.conf && \ +sudo chown -R 30000:30000 ~/luanti/{data,conf,games} && \ docker run -d \ -v ~/luanti/data:/var/lib/minetest \ -v ~/luanti/conf:/etc/minetest \ @@ -148,6 +150,7 @@ docker run -d \ --gameid mineclone2 --port 30000 ``` +For more details: - [Developing minetestserver with Docker](doc/developing/docker.md) - [Running a server with Docker](doc/docker_server.md) diff --git a/doc/docker_server.md b/doc/docker_server.md index 1c6d7e547..b7fce414c 100644 --- a/doc/docker_server.md +++ b/doc/docker_server.md @@ -22,14 +22,13 @@ mkdir -p ~/luanti/{data,conf} # Download proper configuration file (REQUIRED) wget https://raw.githubusercontent.com/luanti-org/luanti/master/minetest.conf.example -O ~/luanti/conf/minetest.conf -# Add your admin username to the configuration -echo "name = AdminUser" >> ~/luanti/conf/minetest.conf - # Download and extract a game (if you don't have one already) mkdir -p ~/luanti/games wget https://content.luanti.org/packages/Wuzzy/mineclone2/releases/30536/download/ -O ~/luanti/mineclone2.zip unzip ~/luanti/mineclone2.zip -d ~/luanti/games/ +sudo chown -R 30000:30000 ~/luanti/{data,conf,games} + # Run the server docker run -d \ -v ~/luanti/data:/var/lib/minetest \