1
0
forked from MTSR/mapserver
mapserver/doc/install.md

49 lines
1.4 KiB
Markdown
Raw Permalink Normal View History

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
* Download the binary from the [releases](https://github.com/minetest-mapserver/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:17:26 +03:00
Simple docker run example to run in the world-directory:
2019-11-26 15:14:43 +03:00
```
docker run --rm --it -p 8080:8080 -v $(pwd):/minetest -w /minetest ghcr.io/minetest-mapserver/mapserver
2019-11-26 15:14:43 +03:00
```
## Docker compose
Examplary `docker-compose` config:
```yml
services:
mapserver:
image: ghcr.io/minetest-mapserver/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