From aa86d9e31a8ca6199740ccb6df973ec7a7b1c613 Mon Sep 17 00:00:00 2001 From: Thomas Rudin Date: Tue, 26 Nov 2019 13:14:43 +0100 Subject: [PATCH] fix #22 --- doc/install.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/doc/install.md b/doc/install.md index a7eeda8..5128792 100644 --- a/doc/install.md +++ b/doc/install.md @@ -3,6 +3,8 @@ **Please make a backup of your world in case something goes wrong** +## Simple installation + * Download the binary from the [releases](https://github.com/minetest-tools/mapserver/releases) for your architecture and platform * Drop the binary into your world folder (the one with the `world.mt` and `map.sqlite` files) * Start the mapserver via command-line: `./mapserver` or `./mapserver.exe` @@ -10,6 +12,34 @@ For additional infos (lag,time,players => active mode) on the mapserver interface you should install the [mapserver-mod](mod.md) +## Docker image + +Simple docker run example: + +``` +docker run --rm --it -p 8080:8080 -v $(pwd):/minetest -w /minetest buckaroobanzay/mapserver +``` + +## Docker compose + +Examplary `docker-compose` config: + +```yml +services: + mapserver: + image: buckaroobanzay/mapserver + restart: always + networks: + - default + depends_on: + - "postgres" + volumes: + - "./data/minetest/world:/minetest" + working_dir: "/minetest" +``` + +* See also: https://github.com/pandorabox-io/pandorabox.io/blob/master/docker-compose.yml + ## Performance / Scalability For small to medium setups the default values should suffice.