2024-02-12 09:56:56 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
up () {
|
|
|
|
# Exposed on port 4001 in pew-net
|
|
|
|
docker run \
|
|
|
|
--detach \
|
|
|
|
--name picoshare \
|
|
|
|
--env PS_BEHIND_PROXY=true \
|
2024-09-02 16:53:27 -04:00
|
|
|
--env-file $HOME/scripts-private/lech/picoshare.env \
|
2024-02-12 09:56:56 -05:00
|
|
|
--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
|
|
|
|
}
|
|
|
|
|
|
|
|
$@
|