feat: bookstack app

This commit is contained in:
Haletran 2026-03-03 17:40:47 +01:00
parent 7ef624d74b
commit 7fddae9457
5 changed files with 76 additions and 5 deletions

View file

@ -85,13 +85,17 @@ What you need to do in Keycloak
- Client ID: peertube
4. On the next page:
- Client authentication: ON
- Valid redirect URIs: https://peertube.chatons.duckdns.org/plugins/auth-openid-connect/0.0.1/auth/openid-connect/callback
- Valid redirect URIs: https://peertube.chatons.duckdns.org/plugins/auth-openid-connect/router/code-cb
- Web origins: https://peertube.chatons.duckdns.org
5. Save, go to Credentials tab, copy the Client Secret
6. Paste it in core/peertube/.env replacing REPLACE_WITH_KEYCLOAK_CLIENT_SECRET
Then you also need to install the auth-openid-connect plugin in PeerTube:
- Go to PeerTube Admin > Plugins > search for auth-openid-connect > Install
## bookstack
- Email: admin@admin.com
- Password: password
```

View file

@ -0,0 +1,55 @@
services:
bookstack:
image: lscr.io/linuxserver/bookstack:latest
container_name: bookstack
env_file:
- runtime.env
expose:
- "6875"
environment:
- PUID=1000
- PGID=1000
- DB_HOST=bookstack-db
- DB_PORT=3306
- DB_USERNAME=bookstack
- DB_DATABASE=bookstack
volumes:
- bookstack-data:/config
depends_on:
- db
networks:
- proxy
restart: unless-stopped
security_opt:
- no-new-privileges:true
db:
image: mariadb:10.11
container_name: bookstack-db
read_only: true
env_file:
- runtime.env
environment:
- MYSQL_DATABASE=bookstack
- MYSQL_USER=bookstack
volumes:
- mariadb-data:/var/lib/mysql
tmpfs:
- /tmp
- /run/mysqld
networks:
- proxy
restart: unless-stopped
security_opt:
- no-new-privileges:true
volumes:
bookstack-data:
name: bookstack-data
mariadb-data:
name: mariadb-data
networks:
proxy:
name: proxy
external: true

View file

@ -0,0 +1,6 @@
TZ=UTC
APP_URL=https://bookstack.chatons.duckdns.org
DB_PASSWORD=secure_bookstack_password
MYSQL_PASSWORD=secure_bookstack_password
MYSQL_ROOT_PASSWORD=secure_root_password
APP_KEY=base64:wFxqmYcKSa6Wf+zYkXPMGXQHtyg5M3D7x90jginkizY=

View file

@ -0,0 +1,3 @@
bookstack.chatons.duckdns.org {
reverse_proxy bookstack:80
}

11
startup
View file

@ -30,6 +30,7 @@ case "$1" in
just start keycloak
just start git
just start peertube
just start bookstack
;;
down)
just down nextcloud
@ -40,6 +41,7 @@ case "$1" in
just down keycloak
just down git
just down peertube
just down bookstack
;;
clean)
just clean nextcloud
@ -50,17 +52,18 @@ case "$1" in
just clean keycloak
just clean git
just clean peertube
just clean bookstack
;;
restart)
just clean nextcloud
just clean caddy
#just clean caddy
#just re duckdns
just start nextcloud
just start caddy
just re peertube
#just start caddy
#just re peertube
just re doh
just re postgresql
just re git
just re keycloak
#just re keycloak
;;
esac