lech: bookstack

master
Paul Walko 2023-12-02 09:44:19 -05:00
parent 609a0d3997
commit f7afb018db
3 changed files with 56 additions and 3 deletions

52
lech/docker/bookstack.sh Executable file
View File

@ -0,0 +1,52 @@
#!/bin/bash
set -e
up () {
# Exposed on port 80 on pew-net
docker run \
--detach \
--name bookstack \
--restart unless-stopped \
--env PUID=1000 \
--env PGID=1000 \
--env APP_URL=https://wiki.bigcavemaps.com \
--env DB_HOST=bookstack-db \
--env DB_PORT=3306 \
--env DB_USER=bookstack \
--env DB_PASS=bookstack \
--env DB_DATABASE=bookstackapp \
--env FILE_UPLOAD_SIZE_LIMIT=250 \
--volume /mammoth/bookstack/config:/config:rw \
--network pew-net \
ghcr.io/linuxserver/bookstack:latest
docker run \
--detach \
--name bookstack-db \
--restart unless-stopped \
--env PUID=1000 \
--env PGID=1000 \
--env MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=1 \
--env MYSQL_ROOT_PASSWORD=bookstack \
--env TZ=America/New_York \
--env MYSQL_DATABASE=bookstackapp \
--env MYSQL_USER=bookstack \
--env MYSQL_PASSWORD=bookstack \
--volume /mammoth/bookstack/mysql:/var/lib/mysql:rw \
--network pew-net \
mariadb:10
}
down () {
docker stop bookstack || true
docker rm bookstack || true
docker stop bookstack-db || true
docker rm bookstack-db || true
}
logs () {
docker logs --follow bookstack
}
$@

View File

@ -14,8 +14,9 @@ up () {
--restart unless-stopped \ --restart unless-stopped \
--label com.centurylinklabs.watchtower.enable=false \ --label com.centurylinklabs.watchtower.enable=false \
--privileged \ --privileged \
--volume /mammoth/files:/www/seaturtle.pw_files:ro \ --volume /mammoth/archive/vpicc/public:/www/files/bigcavemaps.com/vpicc:ro \
--volume /mammoth/gis/bigcavemaps.com:/www/bigcavemaps.com:ro \ --volume /mammoth/files/seaturtle.pw:/www/files/seaturtle.pw:ro \
--volume /mammoth/gis/bigcavemaps.com:/www/gis/bigcavemaps.com:ro \
--volume /mammoth/gis/source:/gis/source:ro \ --volume /mammoth/gis/source:/gis/source:ro \
--volume $HOME/scripts-private/lech/Caddyfile:/etc/caddy/Caddyfile:ro \ --volume $HOME/scripts-private/lech/Caddyfile:/etc/caddy/Caddyfile:ro \
--volume /mammoth/caddy/data:/data:rw \ --volume /mammoth/caddy/data:/data:rw \

View File

@ -8,7 +8,7 @@ up () {
--detach \ --detach \
--name watchtower \ --name watchtower \
--volume /var/run/docker.sock:/var/run/docker.sock:rw \ --volume /var/run/docker.sock:/var/run/docker.sock:rw \
ghcr.io/containrrr/watchtower:amd64-1.4.0 --interval 1800 ghcr.io/containrrr/watchtower:amd64-1.7.1 --interval 1800
} }
down () { down () {