add the configuration for bookstack

This commit is contained in:
Andreas Zweili 2020-04-13 13:32:17 +02:00
parent a17c4d6931
commit d5a5d4a85a
3 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,9 @@
PUID=1002
PGID=1002
TZ="Europe/Zurich"
DB_HOST="db"
APP_URL="https://www.2li.ch"
MYSQL_RANDOM_ROOT_PASSWORD="yes"
MYSQL_DATABASE="bookstackdb"
MYSQL_USER="bookstack"
MYSQL_PASSWORD="password"

6
bookstack/README.md Normal file
View File

@ -0,0 +1,6 @@
# Bookstack
I was not able to get the Linuxserver.io Bookstack container working with
Traefik. I tried a lot of things but nothing really worked.
Neither did the Let's Encrypt container from linuxserver.io work.
I ended up installing Nginx and Certbot on the host and that works now fine.

View File

@ -0,0 +1,39 @@
---
version: "2"
volumes:
db:
services:
bookstack:
image: linuxserver/bookstack
container_name: bookstack
environment:
- "PUID=${PUID}"
- "PGID=${PGID}"
- "TZ=${TZ}"
- "DB_HOST=${DB_HOST}"
- "DB_USER=${MYSQL_USER}"
- "DB_PASS=${MYSQL_PASSWORD}"
- "DB_DATABASE=${MYSQL_DATABASE}"
- "APP_URL=${APP_URL}"
volumes:
- ./config:/config
depends_on:
- db
links:
- db:db
ports:
- 8080:80
restart: unless-stopped
db:
image: mariadb:10.3
environment:
- "MYSQL_RANDOM_ROOT_PASSWORD=${MYSQL_RANDOM_ROOT_PASSWORD}"
- "MYSQL_DATABASE=${MYSQL_DATABASE}"
- "MYSQL_USER=${MYSQL_USER}"
- "MYSQL_PASSWORD=${MYSQL_PASSWORD}"
volumes:
- db:/var/lib/mysql
restart: unless-stopped