version: '3.8'

services:
  mapproxy:
    image: kartoza/mapproxy:latest
    ports:
      - "8080:8080"
    volumes:
      - ./mapproxy/mapproxy.yaml:/srv/mapproxy/mapproxy.yaml
      - ./mapproxy/seed.yaml:/srv/mapproxy/seed.yaml
      - ./cache:/srv/mapproxy/cache_data
    environment:
      - MAPPROXY_PROCESSES=4
    restart: unless-stopped
