scripts/lech/docker/qgis-server.sh

25 lines
489 B
Bash
Raw Normal View History

2024-02-12 09:56:56 -05:00
#!/bin/bash
set -e
up () {
2024-06-01 08:52:01 -04:00
# Exposed on port 80 in pew-net
2024-02-12 09:56:56 -05:00
docker run \
--detach \
--name qgis-server \
--restart unless-stopped \
--label com.centurylinklabs.watchtower.enable=false \
2024-06-01 08:52:01 -04:00
--env SKIP_NGINX=true \
--volume /mammoth/gis/qgis-server/data:/io/data:ro \
--volume /mammoth/gis/qgis-server/plugins:/io/plugins:rw \
2024-02-12 09:56:56 -05:00
--network pew-net \
2024-06-01 08:52:01 -04:00
qgis/qgis-server:ltr
2024-02-12 09:56:56 -05:00
}
down () {
docker stop qgis-server || true
docker rm qgis-server || true
}
$@