Docker Image with BookStack for RaspberryPi (ARMv7)
The repo is forked from budrom's BookStack Docker ARM image with the following changes to the Dockerfile:
- Uses the latest stable version of BookStack
- Uses the newer
arm32v7/php:7.1-fpm-buster
image
The docker-entrypoint.sh script has been copied from the original solidnerd repository (hence that script being MIT-licensed). budrom's change has been incorporated, to daemonize php-fpm and run nginx in the foreground, instead of apache.
-
(Optional) Build the Docker image:
docker build -t rpi-bookstack-docker .
-
Create a shared network:
docker network create bookstack_nw
-
Create the MySQL volume:
docker volume create bookstack_mysql
-
Create MySQL container:
docker run -d --net bookstack_nw \
-e MYSQL_ROOT_PASSWORD=secret \
-e MYSQL_DATABASE=bookstack \
-e MYSQL_USER=bookstack \
-e MYSQL_PASSWORD=secret \
--name="bookstack_db" \
-v bookstack_mysql:/var/lib/mysql \
hypriot/rpi-mysql
- Create the data volumes for BookStack
docker volume create bookstack_uploads
docker volume create bookstack_storage
- Create BookStack Container: Change the image name if you build it locally. The container currently requires restarting after the initial setup, hence the restart policy.
docker run -d --net bookstack_nw \
-e DB_HOST=bookstack_db \
-e DB_DATABASE=bookstack \
-e DB_USERNAME=bookstack \
-e DB_PASSWORD=secret \
-p 8080:80 \
--name="bookstack_app" \
-v bookstack_uploads:/var/www/bookstack/public/uploads \
-v bookstack_storage:/var/www/bookstack/public/storage \
--restart always \
nikolausc/bookstack-pi:latest
After completing the steps above, you can access your installation at http://localhost:8080.