To install MapTiler Server as a Docker image, run
docker pull maptiler/server
Running MapTiler Server
MapTiler Server docker image can be used in the same way as native MapTiler Server binary - all CLI arguments are passed to it. See:
docker run maptiler/server --help
To start serving tiles and maps from your local dir
docker run -p 3650:3650 -v $WORK_DIR:$WORK_DIR maptiler/server --workDir=$WORK_DIR
You can pass your license key via
Or you can put it in as an environment variable
In the 2nd case you don't have to activate your server manually after every start:
docker run -p 3650:3650 -v $WORK_DIR:$WORK_DIR maptiler/server --workDir=$WORK_DIR --licenseKey=XXX
docker run -p 3650:3650 -e MAPTILER_SERVER_LICENSE=XXX -v $WORK_DIR:$WORK_DIR maptiler/server --workDir=$WORK_DIR.
If you put your license in as an environment variable, it will be automatically deactivated during each shutdown of the Docker container. If you fail to shut down your Docker container correctly, your license activation will be "stuck in the limbo". In such case, please contact MapTiler Support for help, they will deactivate your license key for you.
Please sign in to leave a comment.