From a32ed5ec142a74385fe24f9e1adecfc86847f543 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Tue, 09 Jun 2020 20:57:13 +0000
Subject: [PATCH] [mapproxy] Make number of processes configurable

---
 5-mapproxy.sh |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/5-mapproxy.sh b/5-mapproxy.sh
index 6d26f01..9b80333 100755
--- a/5-mapproxy.sh
+++ b/5-mapproxy.sh
@@ -10,6 +10,7 @@
 chown 500:500 "${HOST_MAPPROXY_DIR}"
 
 docker build -t "${DOCKER_IMAGE}" "${DOCKER_DIR}"
+docker stop "${DOCKER_NAME}"
 docker rm -v "${DOCKER_NAME}"
 docker run -i -t -d \
 	--link "${DOCKER_PREFIX}-postgis:postgres" \
@@ -17,6 +18,7 @@
 	-v "${HOST_MAPPROXY_DIR}:/home/mapproxy/data" \
 	-e "MAPNIK_MAP_FILE=/home/mapproxy/carto/mapnik.xml" \
 	-e "MAPNIK_TILE_DIR=/home/mapproxy/data" \
+	-e "MAPPROXY_PROCESSES=${MAPPROXY_PROCESSES}" \
 	-p 8080:8080 \
 	--name "${DOCKER_NAME}" \
 	"${DOCKER_IMAGE}"

--
Gitblit v1.9.1