scripts/lech/docker/picoshare.sh

24 lines
443 B
Bash
Executable File

#!/bin/bash
set -e
up () {
# Exposed on port 4001 in pew-net
docker run \
--detach \
--name picoshare \
--env PS_BEHIND_PROXY=true \
--env-file $HOME/scripts-private/lech/picoshare.env \
--restart unless-stopped \
--volume /mammoth/picoshare/data:/data:rw \
--network pew-net \
mtlynch/picoshare:latest -db /data/store.db
}
down () {
docker stop picoshare || true
docker rm picoshare || true
}
$@