This repository provides a Docker image for MapProxy with Nginx, a powerful tile cache and web mapping service.
docker build -t mapproxy-docker .docker run -p 80:80 --name mapproxy mapproxy-dockerThis will start the MapProxy service and expose it on port 80.
-
Open a browser and navigate to:
👉http://localhost -
Access container using:
docker exec -ti mapproxy /bin/bash
- The MapProxy configuration files are located in
/mapproxy/config. - If no
.yamlconfiguration file is found, one will be created automatically usingmapproxy-util.
You can configure the following environment variables to customize the behavior of the MapProxy Docker image:
| Environment Variable | Description | Default Value |
|---|---|---|
UWSGI_PROCESSES |
Specifies how much processes MapProxy should use. | available cores |
UWSGI_THREADS |
Specifies how much threads MapProxy should use. | UWSGI_PROCESSES * 2 |
MAPPROXY_CONFIG_DATA_PATH |
Path to the MapProxy configuration directory where .yaml files are located. |
/mapproxy/config |
MAPPROXY_CACHE_DATA_PATH |
Path to the MapProxy cache directory. | /mapproxy/cache_data |
MAPPROXY_ALLOW_LISTING |
Determines if the /config directory should be publicly listed (True or False, case-insensitive). |
False |
- 🗺️ MapProxy Application: Located in
/mapproxy/app.py - 🛠 Start Script:
/mapproxy/start.shto initialize MapProxy, Nginx. - 📜 Nginx Configuration:
/etc/nginx/sites-enabled/defaultfor serving the application.