Skip to content

NikolausC/rpi-bookstack-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Image with BookStack for RaspberryPi (ARMv7)

Bookstack Version: 0.27.5

About

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.

How to use the Image

Docker 1.9+

  1. (Optional) Build the Docker image: docker build -t rpi-bookstack-docker .

  2. Create a shared network: docker network create bookstack_nw

  3. Create the MySQL volume: docker volume create bookstack_mysql

  4. 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
  1. Create the data volumes for BookStack
docker volume create bookstack_uploads
docker volume create bookstack_storage
  1. 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.

About

An ARM-compatible Dockerfile to run BookStack on the Raspberry Pi

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6