美文网首页
Linux Tools | BookStack set up s

Linux Tools | BookStack set up s

作者: WangLane | 来源:发表于2020-11-16 17:42 被阅读0次

    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 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}))"

    相关文章

      网友评论

          本文标题:Linux Tools | BookStack set up s

          本文链接:https://www.haomeiwen.com/subject/cyrfuktx.html