solidnerd/bookstack
https://hub.docker.com/r/solidnerd/bookstack/
Changes
In 0.28.0 we changed the container http port from 80 to 8080 to allow root privileges to be dropped 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
- 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
- BookStack Container:
docker run --name my-bookstack -d --link bookstack-mysql:mysql -p 8080:8080 solidnerd/bookstack:0.29.3
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:8080 \
solidnerd/bookstack:0.27.4-1
After the steps you can visit http://localhost:8080 . You can login with username 'admin@admin.com' and password 'password'.
Note that if you want to use LDAP, $
has to be escape like \$
, i.e. -e "LDAP_USER_FILTER"="(&(uid=\${user}))"
Inspiration
This is a fork of Kilhog/docker-bookstack. Kilhog did the intial work, but I want to go in a different direction.