scripts/lech/docker/mapproxy.sh

27 lines
500 B
Bash
Executable File

#!/bin/bash
set -e
up () {
# Exposed on port 8080 in pew-net
docker run \
--detach \
--name mapproxy \
--volume $PWD/mapproxy.yaml:/mapproxy/mapproxy.yaml:ro \
--volume $PWD/mapproxy-seed.yaml:/mapproxy/seed.yaml:ro \
--volume /mammoth/gis/mapproxy/cache_data:/mapproxy/cache_data:rw \
--network pew-net \
docker.io/kartoza/mapproxy:latest
}
down () {
docker stop mapproxy || true
docker rm mapproxy || true
}
logs () {
docker logs --follow mapproxy
}
$@