add cavereveryhour

master
Paul Walko 2022-12-22 17:12:25 -05:00
parent 5d0da2a770
commit 2cb85ebaf7
2 changed files with 29 additions and 0 deletions

View File

@ -1,2 +1,4 @@
CaverEveryHour/
cavereveryhour.env
firefly.env
mastodon.env

View File

@ -0,0 +1,27 @@
#!/bin/bash
set -e
up () {
docker run \
--detach \
--name cavereveryhour \
--restart unless-stopped \
--workdir /home/node/app \
--env NODE_ENV=production \
--volume $PWD/CaverEveryHour:/home/node/app:rw \
--volume $PWD/cavereveryhour.env:/home/node/app/.env:ro \
--volume /bigdata/tmp/EveryHourBot/CaverEveryHour:/home/node/app/media:ro \
docker.io/node:16 /bin/bash -c "npm install && node index.js"
}
down () {
docker stop cavereveryhour || true
docker rm cavereveryhour || true
}
logs () {
docker logs --follow cavereveryhour
}
$@