Skip to Content

BookStack

Run the BookStack wiki on its own managed MariaDB, with a generated admin password.

Goal: a BookStack wiki on its own MariaDB, served over HTTPS, with an admin account you sign in with right after deploying.

Deploy it

Open New app, pick BookStack from the templates.

On the Dependencies tab, keep Create new for the database (or pick Use existing and a MariaDB app in the project). BookStack gets its own database, named after the app, with admin rights on that database only.

Enter the Admin email. The admin password is generated; find it under the app's Secrets as ADMIN_PASSWORD.

Deploy. BookStack waits for the database and creates its tables on the first start.

Sign in with the admin email and the generated password, then change the password under My Account.

BookStack's own setup creates admin@admin.com with the password password. A helper container next to the app replaces that account with your email and the generated password as soon as the tables exist. Once another admin exists it changes nothing, so a password you set in BookStack is never reset.

Settings

  • APP_URL follows the app's domain at each deploy, so links and images keep working after you add a custom domain.
  • APP_KEY is generated once (base64: and 32 random bytes). It encrypts sessions and stored secrets: never change it.
  • Sessions use secure cookies, and BookStack trusts the platform's proxy for the original https scheme.

What is stored where

  • images (2 GiB volume): images in pages.
  • attachments (2 GiB volume): attached files.
  • The database: shelves, books, pages, users and settings, in the MariaDB app. Back it up with a backup policy.

Notes

  • One instance only: both volumes are single-node.
  • Mail (invites, password resets) needs SMTP: set MAIL_DRIVER=smtp, MAIL_HOST, MAIL_PORT, MAIL_USERNAME, MAIL_FROM and the password as a secret named MAIL_PASSWORD.

On this page