Skip to content

dietrichmax/mapproxy-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multi-MapProxy Docker Image 🗺️🐳

Docker image for MapProxy

☕ Buy me a coffee 🚀 Version 📦 Docker Pulls 🛠 Build Status 📝 License: Apache-2.0

📌 Overview

This repository provides a Docker image for MapProxy with Nginx, a powerful tile cache and web mapping service.


🚀 How to Use

Build the Docker Image

docker build -t mapproxy-docker .

Run the Docker Image

docker run -p 80:80 --name mapproxy mapproxy-docker

This will start the MapProxy service and expose it on port 80.

Access the Application

  • Open a browser and navigate to:
    👉 http://localhost

  • Access container using:

    docker exec -ti mapproxy /bin/bash

Configuration Files

  • The MapProxy configuration files are located in /mapproxy/config.
  • If no .yaml configuration file is found, one will be created automatically using mapproxy-util.

⚙️ Environment Variables Configuration

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

📂 Files in the Image

  • 🗺️ MapProxy Application: Located in /mapproxy/app.py
  • 🛠 Start Script: /mapproxy/start.sh to initialize MapProxy, Nginx.
  • 📜 Nginx Configuration: /etc/nginx/sites-enabled/default for serving the application.

About

Docker image for MapProxy

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •