This is an old revision of the document!
BookStack
BookStack is…
Installation
Create user
useradd -d /data/daemons/bookstack -m bookstack
---
services:
bookstack:
image: lscr.io/linuxserver/bookstack
container_name: bookstack
environment:
# - PUID=1050
# - PGID=1050
- TZ=Europe/Rome
- APP_URL=https://casa.gardiol.org/bookstack
- DB_HOST=bookstack_db
- DB_PORT=3306
- DB_USER=bookstack
- DB_PASS=djdsflkdsjfjfkdslkdsjfkf
- DB_DATABASE=bookstackapp
volumes:
- /deposito/bookstack:/config
ports:
- 6875:80
depends_on:
- bookstack_db
networks:
- bookstack-net
bookstack_db:
image: lscr.io/linuxserver/mariadb
container_name: bookstack_db
environment:
# - PUID=1000
# - PGID=1000
- TZ=Europe/London
- MYSQL_ROOT_PASSWORD=1111111111111
- MYSQL_DATABASE=bookstackapp
- MYSQL_USER=bookstack
- MYSQL_PASSWORD=djdsflkdsjfjfkdslkdsjfkf
volumes:
- /deposito/bookstack:/config
networks:
- bookstack-net
networks:
bookstack-net: {}
NGINX configuration
- bookstack.conf
location = /bookstack { return 301 https://$host/bookstack/; } location /bookstack/ { proxy_pass http://127.0.0.1:6875/; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Host $server_name; }