Setup for running bookstack on Raspberry Pi running Raspbian with automated backups of the database. Uses docker images by LinuxServer and the script wait-for-it.
- Create a
variables.sh
file based invariables_template.sh
- Run
insert_variables.sh
to createdocker-compose.yaml
andbackup
with your chosen variables - Change directory to
bookstack
and rundocker-compose up
. This will download the required docker images and start a MariaDB service and a bookstack service - Your bookstack service can now be reached on port
6875
and will automatically start on reboot unless you rundocker-compose down
- To create daily DB backups, move
backup_scripts/backup
into/etc/cron.daily
. Will overwrite the daily backup every day but keep one per month. Backups older than a year are automatically deleted - Manually upload the backup files that will be created in
/opt/bookstack_raspie/bookstack_db_backup/
to a backup service of your choice
Note: After running docker-compose up
for the first time the bookstack_container will take a while to set up the database. Give it 5min at least.