BookStack in a container
Branch: master
Clone or download
Pull request Compare This branch is 1 commit ahead, 20 commits behind solidnerd:master.
kanshan kanshan
kanshan and kanshan fix export to pdf Chinese garbled
Latest commit 2ef6a80 Sep 2, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
hooks Add hook for pushing latest after a sucessful build Apr 15, 2017
lib fix export to pdf Chinese garbled Sep 2, 2018
.dockerignore Add docker-compose.yml to .dockerignore Jul 8, 2016
.gitignore Ajout de la config dynamique avec un container MySQL Feb 4, 2016
.gitlab-ci.yml
.travis.yml Add Travis support Oct 7, 2017
Dockerfile fix export to pdf Chinese garbled Sep 2, 2018
LICENSE Rename LICENCE to LICENSE and Change it to MIT Mar 26, 2017
README.md Upgrade Bookstack to 0.23.2 Aug 20, 2018
VERSION Upgrade Bookstack to 0.23.2 Aug 20, 2018
bookstack.conf
docker-compose.yml Upgrade Bookstack to 0.23.2 Aug 20, 2018
docker-entrypoint.sh fix export to pdf Chinese garbled Sep 2, 2018
php.ini Added php.ini to docker image so that users can upload above 10MB. May 1, 2017

README.md

Docker Image For BookStack

Build Status

Current Version: 0.23.2

Changes

In 0.12.2 we removed DB_PORT . You can now specify the port via DB_HOST like DB_HOST=mysql:3306

Quickstart

With Docker Compose is a Quickstart very easy. Run the following command:

docker-compose up

and after that open your Browser and go to http://localhost:8080 .

Issues

If you have any issues feel free to create an issue on GitHub.

How to use the Image without Docker compose

Networking changed in Docker v1.9, so you need to do one of the following steps.

Docker < v1.9

  1. MySQL Container:
docker run -d --name bookstack-mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=secret -e MYSQL_DATABASE=bookstack -e MYSQL_USER=bookstack -e MYSQL_PASSWORD=secret mysql:5.7.21
  1. BookStack Container:
docker run --name my-bookstack -d --link bookstack-mysql:mysql -p 8080:80 solidnerd/bookstack:0.23.2

Docker 1.9+

1.Create a shared network:

docker network create bookstack_nw`

2.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:5.7.21

3.Create 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 \
-p 8080:80 \
 solidnerd/bookstack:0.23.2

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

Inspiration

This is a fork of Kilhog/docker-bookstack. Kilhog did the intial work, but I want to go in a different direction.