25 lines
489 B
Bash
Executable File
25 lines
489 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
up () {
|
|
# Exposed on port 80 in pew-net
|
|
docker run \
|
|
--detach \
|
|
--name qgis-server \
|
|
--restart unless-stopped \
|
|
--label com.centurylinklabs.watchtower.enable=false \
|
|
--env SKIP_NGINX=true \
|
|
--volume /mammoth/gis/qgis-server/data:/io/data:ro \
|
|
--volume /mammoth/gis/qgis-server/plugins:/io/plugins:rw \
|
|
--network pew-net \
|
|
qgis/qgis-server:ltr
|
|
}
|
|
|
|
down () {
|
|
docker stop qgis-server || true
|
|
docker rm qgis-server || true
|
|
}
|
|
|
|
$@
|