Linux Tools | BookStack set up steps

Before setting up bookstack you need a docker installed on your Machine. Refer to this doc

1.Create a shared network:

docker network create bookstack_nw

2.MySQL container :

mkdir -p ~/db/mysql

docker run -d --net bookstack_nw  \
-e MYSQL_ROOT_PASSWORD=secret \
-e MYSQL_DATABASE=bookstack \
-e MYSQL_USER=bookstack \
-e MYSQL_PASSWORD=secret \
-v ~/db/mysql:/var/lib/mysql \
 --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 8081:8080 \
 solidnerd/bookstack:latest

After the steps you can visit http://localhost:8081 .
You can login with username [email protected] and password password.

Note that if you want to use LDAP, $ has to be escape like \$, i.e. -e "LDAP_USER_FILTER"="(&(uid=\${user}))"

你可能感兴趣的:(Linux Tools | BookStack set up steps)