2019-02-05 18:33:10 +03:00
|
|
|
|
|
|
|
# Mapserver installation
|
|
|
|
|
|
|
|
**Please make a backup of your world in case something goes wrong**
|
|
|
|
|
2019-11-26 15:14:43 +03:00
|
|
|
## Simple installation
|
|
|
|
|
2019-07-23 08:22:22 +03:00
|
|
|
* Download the binary from the [releases](https://github.com/minetest-tools/mapserver/releases) for your architecture and platform
|
2019-02-05 18:33:10 +03:00
|
|
|
* 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`
|
|
|
|
* Point your browser to `http://127.0.0.1:8080`
|
|
|
|
|
2019-02-22 17:17:19 +03:00
|
|
|
For additional infos (lag,time,players => active mode) on the mapserver interface you should install the [mapserver-mod](mod.md)
|
2019-03-21 17:07:09 +03:00
|
|
|
|
2019-11-26 15:14:43 +03:00
|
|
|
## Docker image
|
|
|
|
|
2019-11-26 15:25:24 +03:00
|
|
|
* Docker-hub: https://hub.docker.com/repository/docker/minetesttools/mapserver
|
|
|
|
|
2019-11-26 15:17:26 +03:00
|
|
|
Simple docker run example to run in the world-directory:
|
2019-11-26 15:14:43 +03:00
|
|
|
|
|
|
|
```
|
2019-11-26 15:17:26 +03:00
|
|
|
docker run --rm --it -p 8080:8080 -v $(pwd):/minetest -w /minetest minetesttools/mapserver
|
2019-11-26 15:14:43 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
## Docker compose
|
|
|
|
|
|
|
|
Examplary `docker-compose` config:
|
|
|
|
|
|
|
|
```yml
|
|
|
|
services:
|
|
|
|
mapserver:
|
2019-11-26 15:17:26 +03:00
|
|
|
image: minetesttools/mapserver
|
2019-11-26 15:14:43 +03:00
|
|
|
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
|
|
|
|
|
2019-03-21 17:07:09 +03:00
|
|
|
## Performance / Scalability
|
|
|
|
|
|
|
|
For small to medium setups the default values should suffice.
|
|
|
|
If you have a bigger map (say: above 10 GB) you should configure the mapserver accordingly:
|
|
|
|
|
|
|
|
* See [Mapobject-Database](./mapobjectdb.md) for a scalable mapserver database
|