scripts/lech/docker/mapproxy.sh

27 lines
500 B
Bash
Raw Normal View History

2023-09-05 11:40:31 -04:00
#!/bin/bash
set -e
up () {
# Exposed on port 8080 in pew-net
docker run \
--detach \
--name mapproxy \
2023-09-07 21:08:48 -04:00
--volume $PWD/mapproxy.yaml:/mapproxy/mapproxy.yaml:ro \
--volume $PWD/mapproxy-seed.yaml:/mapproxy/seed.yaml:ro \
2023-09-05 11:40:31 -04:00
--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
}
$@