Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAPPROXY_CACHE_DIR is not used #69

Open
wlorenzetti opened this issue Aug 1, 2024 · 1 comment
Open

MAPPROXY_CACHE_DIR is not used #69

wlorenzetti opened this issue Aug 1, 2024 · 1 comment

Comments

@wlorenzetti
Copy link

What is the bug or the crash?

I try to use MAPPROXY_CACHE_DIR env var but seems it is not used, infact the cache_data directory is always create inside the /multi_mapproxy directory when env var MULTI_MAPPROXY is set to true.

Steps to reproduce the issue

I just make a simple docker-compose.yml like this:

services:
   mapproxy:
      image: kartoza/mapproxy
      volumes:
        - ./config:/multi_mapproxy
        - ${MAPPROXY_DATA_VOLUME}:/cache_data
      ports:
        - "80:8080"
      restart: on-failure
      environment:
        - PRODUCTION
        - PROCESSES
        - CHEAPER
        - THREADS
        - MAPPROXY_USER_ID
        - MAPPROXY_GROUP_ID
        - MULTI_MAPPROXY
        - ALLOW_LISTING
        - LOGGING
      logging:
        driver: "json-file"
        options:
          max-size: "200k"
          max-file: "10"

with the following .env file:

# Enviroment variable for MapProxy deploy
# ---------------------------------------

# Deploy envs
PRODUCTION=true
PROCESSES=20
CHEAPER=16
THREADS=10
MAPPROXY_USER_ID=1000
MAPPROXY_GROUP_ID=1000
MULTI_MAPPROXY=true
ALLOW_LISTING=True
LOGGING=true

# Local envs
MAPPROXY_DATA_VOLUME='/root/mapproxy_cache'

But with the docker compose up the MAPPROXY_CACHE_DIR=/cache_data it is ignored and the cache data are stored inside the /multi_mapproxy/cache_data directory

Versions

Last kartoza/mapproxy:latest docker hub image

Additional context

No response

@NyakudyaA
Copy link
Collaborator

NyakudyaA commented Aug 3, 2024

@wlorenzetti Does the directory actually gets created in the container. What is the value set for you mapproxy.yml cache directory

i.e directory: /cache_data/srtm_cache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants