Created
January 6, 2018 12:26
-
-
Save mry/89a93f4f777a277e3b6039972823ca9a to your computer and use it in GitHub Desktop.
Sample Bookstack docker-compose.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
mysql: | |
container_name: bookstack-mysql | |
restart: unless-stopped | |
image: mysql:5.7.12 | |
environment: | |
- MYSQL_ROOT_PASSWORD=YourRootPassw0rd! | |
- MYSQL_DATABASE=bookstack | |
- MYSQL_USER=bookstack | |
- MYSQL_PASSWORD=YourPassw0rd! | |
volumes: | |
- /volume4/docker/bookstack/db/mysql:/var/lib/mysql | |
bookstack: | |
container_name: bookstack | |
restart: unless-stopped | |
image: solidnerd/bookstack:0.16.2 | |
depends_on: | |
- mysql | |
environment: | |
- APP_ENV=production | |
- APP_DEBUG=false | |
- APP_URL=https://bookstack.rylander.io | |
#- WKHTMLTOPDF= | |
- DB_HOST=mysql | |
- DB_DATABASE=bookstack | |
- DB_USERNAME=bookstack | |
- DB_PASSWORD=YourPassw0rd! | |
# General auth | |
- AUTH_METHOD=ldap | |
# LDAP Settings | |
- LDAP_SERVER=10.0.1.6 | |
- LDAP_BASE_DN=cn=Users,dc=rylander,dc=io | |
- LDAP_DN=CN=adminuser,CN=Users,DC=rylander,DC=io | |
- LDAP_PASS=YourLDAPPassw0rd! | |
#use double $$ since we are using docker | |
- LDAP_USER_FILTER=(&(sAMAccountName=$${user})) | |
- LDAP_VERSION=3 | |
volumes: | |
- /volume4/docker/bookstack/public/uploads:/var/www/BookStack/public/uploads | |
- /volume4/docker/bookstack/storage/uploads:/var/www/BookStack/storage/uploads | |
ports: | |
- "8084:80" | |
expose: | |
- "8084" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks, inserting double $ in line 39 was a good trick and solved my problems.