Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| services:bookstack [2024/06/18 12:03] – willy | services:bookstack [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== BookStack ====== | ||
| - | |||
| - | **Note:** since i don't use this service anymore, this page might be not updated. | ||
| - | |||
| - | [[https:// | ||
| - | |||
| - | I don't use Bookstack because i don't really need it, [[services: | ||
| - | |||
| - | ===== Installation ===== | ||
| - | |||
| - | Installing BookStack can be done on bare-metal with your existing PHP / MariaDB stack or use a pre-built container. I choose to go with the container because i find it easier than properly segregate yet another PHP installation. | ||
| - | |||
| - | BookStack do not provide container images themselves, but they rely on external providers and i choose the [[https:// | ||
| - | |||
| - | Of course i will show you how to install it via [[gentoo: | ||
| - | |||
| - | As usual, you need to create a dedicated user and create the data folder: | ||
| - | <code bash> | ||
| - | useradd -d / | ||
| - | mkdir / | ||
| - | chown bookstack: | ||
| - | </ | ||
| - | |||
| - | As user **bookstack** create the compose yaml file: | ||
| - | <file docker-compose.yml> | ||
| - | --- | ||
| - | services: | ||
| - | bookstack: | ||
| - | image: lscr.io/ | ||
| - | container_name: | ||
| - | environment: | ||
| - | # - PUID=1050 | ||
| - | # - PGID=1050 | ||
| - | - TZ=Europe/ | ||
| - | - APP_URL=https:// | ||
| - | - DB_HOST=bookstack_db | ||
| - | - DB_PORT=3306 | ||
| - | - DB_USER=bookstack | ||
| - | - DB_PASS=< | ||
| - | - DB_DATABASE=bookstackapp | ||
| - | volumes: | ||
| - | - / | ||
| - | ports: | ||
| - | - 6875:80 | ||
| - | depends_on: | ||
| - | - bookstack_db | ||
| - | networks: | ||
| - | - bookstack-net | ||
| - | |||
| - | bookstack_db: | ||
| - | image: lscr.io/ | ||
| - | container_name: | ||
| - | environment: | ||
| - | # - PUID=1050 | ||
| - | # - PGID=1050 | ||
| - | - TZ=Europe/ | ||
| - | - MYSQL_ROOT_PASSWORD=< | ||
| - | - MYSQL_DATABASE=bookstackapp | ||
| - | - MYSQL_USER=bookstack | ||
| - | - MYSQL_PASSWORD=< | ||
| - | volumes: | ||
| - | - / | ||
| - | networks: | ||
| - | - bookstack-net | ||
| - | |||
| - | networks: | ||
| - | bookstack-net: | ||
| - | </ | ||
| - | |||
| - | |||
| - | A few notes: you //could// use PUID / PGID but it's not really working, so i commented them out. They work for docker anyway, but podman is rootless by default, so there is no real reason to use them. | ||
| - | |||
| - | Of course choose | ||
| - | |||
| - | ===== Reverse Proxy ===== | ||
| - | |||
| - | As usual, you should access the service only via Reverse Proxy (see [[selfhost: | ||
| - | <file - bookstack.conf> | ||
| - | |||
| - | location = /bookstack { | ||
| - | return 301 https:// | ||
| - | } | ||
| - | |||
| - | location /bookstack/ { | ||
| - | proxy_pass | ||
| - | proxy_redirect | ||
| - | proxy_set_header | ||
| - | proxy_set_header | ||
| - | proxy_set_header | ||
| - | proxy_set_header | ||
| - | } | ||
| - | </ | ||
| - | |||
| - | ==== Autostart ==== | ||
| - | |||
| - | If you follow my [[gentoo: | ||
| - | <code bash> | ||
| - | cd / | ||
| - | ln -s _servicer.sh 62-bookstack--podman.start | ||
| - | ln -s _servicer.sh 62-bookstack--podman.stop | ||
| - | </ | ||
| - | |||
| - | ==== First Access ==== | ||
| - | |||
| - | Login to **https:// | ||