Docker container to run Mapcrafter. This repo was make mainly to be used in my personal server, but I've adapted it to a template, so it could be used by everyone.
Docker build ready for 1.20, 1.18, 1.17 and 1.16
docker run -d -v /path/to/output:/output -v /path/to/config:/config -v /path/to/world:/world -e threads=4 --name mapcrafter dinip/mapcrafter:world120
docker run -d -v /path/to/output:/output -v /path/to/config:/config -v /path/to/world:/world -e threads=4 --name mapcrafter dinip/mapcrafter:world118
docker run -d -v /path/to/output:/output -v /path/to/config:/config -v /path/to/world:/world -e threads=4 --name mapcrafter dinip/mapcrafter:world117
docker run -d -v /path/to/output:/output -v /path/to/config:/config -v /path/to/world:/world -e threads=4 --name mapcrafter dinip/mapcrafter:world116
Change -e threads=
to how many threads you want the render to use. Don't set this value higher than the amount of cores that your cpu have. If no value is set, it will set automatically to 4.
Minecraft world folder
Inside this folder need to be 4 files, render.conf
, mapcrafter-cron
, favicon.png
and title.txt
. An example of this files are created in the first run if they are not found.
render.conf
is the configs for the mapcrafter render. See docs heremapcrafter-cron
is where you define the schedule to run the render. By default it will run at 5 minutes past the hour every hour (eg.: 10:05, 11:05, 12:05) but this can be changed to fit your needs, you just need to keep the/opt/./render.sh
part after the time expression. more info here. To apply the changes, a restart of the container is necessary.favicon.png
andtitle.txt
will be used to customize your index.html that is shown on the browser. To change the title you just need to edit the text intitle.txt
file. For favicon just override the file with your new favicon file. This files can be directly edited in the output folder, they are in the config folder just for easier access.
Generated files go to this path.