Docker Image For BookStack
Current Version: 0.9.2
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
.
Networking changed in Docker v1.9, so you need to do one of the following steps.
- 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
- BookStack Container:
docker run --name my-bookstack -d --link bookstack-mysql:mysql -p 8080:80 kilhog/bookstack
-
Create a shared network:
docker network create bookstack_nw
-
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
- Create BookStack Container
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
kilhog/bookstack
After the steps you can visit http://localhost:8080
.