Levelrail
Skip to content

Self-host Grimmory with Docker ​

Organize, read, annotate, and sync your entire book collection from one place.

This page describes the Levelrail template for Grimmory (Media). It deploys the services below as one Docker Compose app on your own server.

Project site: https://github.com/grimmory-tools/grimmory.

Recommended memory: about 512 MiB.

Services, ports and volumes ​

ServiceImageContainer portsVolumes
dbmariadb:11none
grimmory_db_data -> /var/lib/mysql
grimmorygrimmory/grimmory:nightly-20260403-3a371f780
grimmory_data -> /app/data
grimmory_books -> /books

Environment variables ​

ServiceVariableValue
dbMARIADB_DATABASEPreset in the template
dbMARIADB_PASSWORDGenerated at deploy
dbMARIADB_ROOT_PASSWORDGenerated at deploy
dbMARIADB_USERGenerated at deploy
grimmoryDATABASE_PASSWORDGenerated at deploy
grimmoryDATABASE_URLPreset in the template
grimmoryDATABASE_USERNAMEGenerated at deploy

Passwords and keys marked as generated are created for you when the app is deployed and stored as secrets. Values are not shown here.

Deploy Grimmory with Levelrail ​

In the dashboard, open Apps, choose New app, then Browse templates, and select Grimmory. Review the Compose body and deploy.

With the CLI:

levelrail-cli templates deploy grimmory --name my-grimmory

See Service template catalog for how templates work, and Getting started if you have not installed Levelrail yet.

More Media templates ​

All templates are listed in the self-host gallery.

Released under the Apache 2.0 License.