Last active
February 6, 2025 06:11
-
-
Save ssddanbrown/7f2a045b612dbfcc029abe6d27c7dc58 to your computer and use it in GitHub Desktop.
bookstack-npm-docker-compose
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: | |
bookstack: | |
image: lscr.io/linuxserver/bookstack | |
container_name: bookstack | |
environment: | |
- PUID=1000 | |
- PGID=1000 | |
- APP_URL=https://wiki.bookstackapp.com | |
- DB_HOST=bookstack_db | |
- DB_USER=bookstack | |
- DB_PASS=mydatabasepassword | |
- DB_DATABASE=bookstackapp | |
volumes: | |
- ./bookstack:/config | |
restart: unless-stopped | |
depends_on: | |
- bookstack_db | |
bookstack_db: | |
image: lscr.io/linuxserver/mariadb | |
container_name: bookstack_db | |
environment: | |
- PUID=1000 | |
- PGID=1000 | |
- MYSQL_ROOT_PASSWORD=mysecretrootpassword | |
- TZ=Europe/London | |
- MYSQL_DATABASE=bookstackapp | |
- MYSQL_USER=bookstack | |
- MYSQL_PASSWORD=mydatabasepassword | |
volumes: | |
- ./database:/config | |
restart: unless-stopped | |
proxy: | |
image: 'jc21/nginx-proxy-manager:latest' | |
container_name: nginx_proxy_manager | |
ports: | |
# Public HTTP Port: | |
- '80:80' | |
# Public HTTPS Port: | |
- '443:443' | |
# Admin Web Port: | |
- '81:81' | |
environment: | |
# If you would rather use Sqlite uncomment this | |
# and remove all DB_MYSQL_* lines above | |
DB_SQLITE_FILE: "/data/database.sqlite" | |
# Uncomment this if IPv6 is not enabled on your host | |
# DISABLE_IPV6: 'true' | |
volumes: | |
- ./proxy/data:/data | |
- ./proxy/letsencrypt:/etc/letsencrypt | |
restart: unless-stopped | |
networks: | |
default: | |
external: | |
name: web |
Thanks @dw5, have updated it to fix the duplicate line.
How to setup Bookstack Email on bookstack container.
After adding this env in the compose file it works✌️.
MAIL_DRIVER=smtp
MAIL_FROM_NAME="BookStack"
MAIL_FROM=[email protected]
MAIL_HOST=localhost
MAIL_PORT=587
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
I spent an evening trying to track down a bug in this docker_compose.yml file. It looks like linuxserver now requires that the environment configuration use the 'DB_USERNAME' instead of 'DB_USER' and 'DB_PASSWORD' instead of 'DB_PASS'
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
docker-compose.yml: yaml: unmarshal errors:
line 53: mapping key "restart" already defined at line 36
👍