Skip to content

Instantly share code, notes, and snippets.

@ssddanbrown
Last active August 28, 2025 09:49
Show Gist options
  • Save ssddanbrown/7f2a045b612dbfcc029abe6d27c7dc58 to your computer and use it in GitHub Desktop.
Save ssddanbrown/7f2a045b612dbfcc029abe6d27c7dc58 to your computer and use it in GitHub Desktop.
bookstack-npm-docker-compose

This has been removed since it's not actively maintained, and was providing outdated information.

The BookStack project maintains a linuxserver.io based example stack compose config here.

For using with nginx-proxy-manager (to get HTTPS) you could refer to this video here. Note: This is a bit outdated also though, especially for the docker config itself so don't follow that.

If you really want to see the last outdated state of this file, it can be seen here.

@dw5
Copy link

dw5 commented Jun 5, 2023

docker-compose.yml: yaml: unmarshal errors:
line 53: mapping key "restart" already defined at line 36
👍

@ssddanbrown
Copy link
Author

Thanks @dw5, have updated it to fix the duplicate line.

@dishoneprabu
Copy link

How to setup Bookstack Email on bookstack container.

@dishoneprabu
Copy link

dishoneprabu commented Jul 6, 2023

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

@fitzdoingprojects
Copy link

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'

@LikesToys
Copy link

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'

Yes - I wasted a day and a half - totally messed me up. I don't think anyone should be copying .yaml and loading it as a base. At least point to the source, which I believe has it corrected.

@LikesToys
Copy link

Thanks @dw5, have updated it to fix the duplicate line.

this needs another update - see comments below:
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'

@ssddanbrown
Copy link
Author

I've updated this gist with links to more up-to-date configs, and removed the compose content by default to avoid providing wrong outdated information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment