Docker container for [Bookstack](https://www.bookstackapp.com/)
Find a file
2025-05-31 16:57:15 +01:00
.github/workflows Add build CI and update README.md 2022-08-14 20:55:14 +01:00
.dockerignore fix(ci): specify APP_URL 2021-12-21 23:45:32 +01:00
.gitignore Ajout de la config dynamique avec un container MySQL 2016-02-04 08:03:34 +01:00
.gitlab-ci.yml Remove v prefix from generated version numbers to stop things breaking and keep with Docker conventions 2024-05-12 15:47:23 +01:00
bookstack.conf feat: run container as none root 2020-04-10 17:23:18 +02:00
docker-entrypoint.sh Update docker-entrypoint.sh 2022-08-14 21:57:18 +01:00
Dockerfile Update to Bookstack v25.05 2025-05-31 16:57:15 +01:00
Dockerfile.tpl Use Debian Bullseye and remove wkhtmltopdf 2024-05-12 13:39:11 +01:00
generate.py Remove v prefix from generated version numbers to stop things breaking and keep with Docker conventions 2024-05-12 15:47:23 +01:00
LICENSE Fork 2022-08-14 20:48:57 +01:00
php.ini Added php.ini to docker image so that users can upload above 10MB. 2017-05-01 19:09:03 -04:00
README.md Update to Bookstack v25.05 2025-05-31 16:57:15 +01:00
README.md.tpl Change image path 2024-05-12 13:01:59 +01:00

Docker Image For BookStack

How to use the Image without Docker compose

(For Docker 1.9+)

  1. Create a shared network:
docker network create bookstack_nw
  1. Run 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" \
 mysql:8
  1. Run BookStack Container
docker run -d --net bookstack_nw \
-e DB_HOST=bookstack_db:3306 \
-e DB_DATABASE=bookstack \
-e DB_USERNAME=bookstack \
-e DB_PASSWORD=secret \
-e APP_URL=http://example.com \
-p 8080:8080 \
--name="bookstack_25.05" \
 registry.git.tdpain.net/pkg/docker-bookstack:25.05

The APP_URL parameter should be the base URL for your BookStack instance without a trailing slash. For example: APP_URL=http://example.com

Volumes

To access your .env file and important bookstack folders on your host system change <HOST> in the following line to your host directory and add it then to your run command:

--mount type=bind,source=<HOST>/.env,target=/var/www/bookstack/.env \
-v <HOST>:/var/www/bookstack/public/uploads \
-v <HOST>:/var/www/bookstack/storage/uploads

In case of a windows host machine the .env file has to be already created in the host directory otherwise a folder named .env will be created.

After these steps you can visit http://localhost:8080. You can login with username 'admin@admin.com' and password 'password'.

Inspiration

This is a fork of solidnerd/docker-bookstack, which is in turn a fork of Kilhog/docker-bookstack. Kilhog did the intial work, solidnerd wanted to go in a different direction and I wanted an up-to-date version of the image.