add bookstack service

This commit is contained in:
Tobias Petrich 2025-04-19 16:04:17 +02:00
parent 347daa1576
commit 7e754f3b31
No known key found for this signature in database
GPG Key ID: D99301AD0515015F
6 changed files with 81 additions and 2 deletions

4
.gitignore vendored
View File

@ -17,4 +17,6 @@ gitea-srv.container
nextcloud-db.container
nextcloud-srv.container
paperless-db.container
paperless-srv.container
paperless-srv.container
bookstack-db.container
bookstack-srv.container

View File

@ -87,3 +87,10 @@
service_name: "paperless"
systemd_service_name: "paperless-pod"
quadlet_template_src: "./my_service_templates"
- name: Deploy bookstack
include_role:
name: rootless-podman-service
vars:
service_name: "bookstack"
systemd_service_name: "bookstack-pod"
quadlet_template_src: "./my_service_templates"

View File

@ -0,0 +1,16 @@
[Unit]
Description=Bookstack database
[Container]
ContainerName=bookstack-db
Image=lscr.io/linuxserver/mariadb:11.4.5
Volume=/var/vol/bookstack/db:/config:Z
Environment=PUID=1000
Environment=PGID=1000
Environment=TZ=Europe/Berlin
Environment=MYSQL_ROOT_PASSWORD=<REDACTED>
Environment=MYSQL_DATABASE=<REDACTED>
Environment=MYSQL_USER=<REDACTED>
Environment=MYSQL_PASSWORD=<REDACTED>
AutoUpdate=registry
Pod=bookstack.pod

View File

@ -0,0 +1,22 @@
[Unit]
Description=Bookstack server
[Container]
ContainerName=bookstack-srv
Image=lscr.io/linuxserver/bookstack:version-v25.02
Volume=/var/vol/bookstack/data:/config:Z
Environment=PUID=1000
Environment=PGID=1000
Environment=TZ=Europe/Berlin
Environment=APP_URL=https://bookstack.rohrschacht.de
# APP_KEY must be a unique key. Generate your own by running
# docker run -it --rm --entrypoint /bin/bash lscr.io/linuxserver/bookstack:latest appkey
# You should keep the "base64:" part for the option value.
Environment=APP_KEY=<REDACTED>
Environment=DB_HOST=localhost
Environment=DB_PORT=3306
Environment=DB_DATABASE=<REDACTED>
Environment=DB_USERNAME=<REDACTED>
Environment=DB_PASSWORD=<REDACTED>
AutoUpdate=registry
Pod=bookstack.pod

View File

@ -0,0 +1,17 @@
[Unit]
Description=Bookstack deployment
Wants=network-online.target
After=network.target network-online.target
[Pod]
PodName=bookstack
PublishPort=127.0.0.1:8800:80
[Service]
# Restart service when sleep finishes
Restart=on-failure
RestartSec=60
[Install]
# Start by default on boot
WantedBy=multi-user.target default.target

View File

@ -63,6 +63,15 @@ http:
certResolver: letsencrypt
service: paperless-service
# Router for bookstack.rohrschacht.de
bookstack-router:
rule: "Host(`bookstack.rohrschacht.de`)"
entryPoints:
- websecure
tls:
certResolver: letsencrypt
service: bookstack-service
services:
# Service for wekan.rohrschacht.de
wekan-service:
@ -104,4 +113,10 @@ http:
paperless-service:
loadBalancer:
servers:
- url: "http://localhost:8700"
- url: "http://localhost:8700"
# Service for bookstack.rohrschacht.de
bookstack-service:
loadBalancer:
servers:
- url: "http://localhost:8800"