Self-host Monica with Levelrail

A personal CRM that remembers the people in your life, with notes, reminders, activities and relationships.

  • Authormonicahq
  • LicenceAGPL-3.0-or-later
  • Memory512 MiB
  • Archarm64
  • Services2

How to self-host Monica

  1. Pull the images

    2 images are pulled on your server.

    Show images
    • mariadb:11.8
    • monica:4.1.2-apache
  2. Create the app

    2 services start in a single Compose app, with 2 named volume mounts for your data, on port 80.

  3. Fill in the secrets

    4 secrets are generated and stored encrypted, 9 settings are preset, you do not have to fill in anything.

  4. Open it

    Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.

Monica requirements

Memory
About 512 MiB
Architectures
amd64 image published, arm64 image published
Ports
80
Domain
Optional, an sslip.io address is used without one
Settings
none to fill in
License
AGPL-3.0-or-later, network copyleft (agpl) license
  • Listed. It is in the catalog but not verified. Back up the data volume before changing an image tag.

Install Levelrail first

On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then Monica. New to Levelrail? Install it on a fresh VPS first.

docker pull ghcr.io/glincker/levelrail:latest

Then levelrail-cli login --device. See Getting started and the Monica docs page.

Deploy Monica your way

Every format below deploys the same pinned images. Pick the one that fits how you work.

Deploy Monica from the CLI

Add --domain SERVICE=HOST to serve a service on your own domain, for example --domain mariadb=app.example.com.

levelrail-cli templates install monica --name my-monica

Deploy Monica with the API

Create a token in the dashboard first. Name, env and domains are the request fields.

curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  https://levelrail.example.com/api/v1/service-templates/monica/install \
  -d '{
    "name": "my-monica"
  }'

Monica configuration

Monica services

ServiceImagePortsVolumes
mariadb mariadb:11.8 none mariadb -> /var/lib/mysql
monica monica:4.1.2-apache 80 storage -> /var/www/html/storage

Monica environment variables

VariableServiceValue
MYSQL_DATABASE mariadb Preset by the template
MYSQL_PASSWORD mariadb Generated at deploy
MYSQL_ROOT_PASSWORD mariadb Generated at deploy
MYSQL_USER mariadb Preset by the template
APP_ENV monica Preset by the template
APP_KEY monica Generated at deploy
APP_URL monica Preset by the template
DB_CONNECTION monica Preset by the template
Show all 13 variables
  • DB_DATABASEmonicaPreset by the template
  • DB_HOSTmonicaPreset by the template
  • DB_PASSWORDmonicaGenerated at deploy
  • DB_PORTmonicaPreset by the template
  • DB_USERNAMEmonicaPreset by the template

Ports and volumes

Ports
80
Volumes
2 named mounts: mariadb -> /var/lib/mysql, storage -> /var/www/html/storage

Monica FAQ

How much memory does Monica need?

The catalog lists about 512 MiB of memory for Monica across its 2 services.

Does Monica run on arm64?

For Monica, an arm64 image is published; amd64 is image published.

What licence is Monica under?

Monica is licensed under AGPL-3.0-or-later, which is network copyleft, so source sharing also applies when it is offered as a hosted service.

Does Monica need configuration before it starts?

No. The template fills in its own defaults and generates secrets at deploy time.

Which database does Monica bundle?

The template includes MySQL, running as its own service.

Which ports does Monica use?

Monica listens on port 80 inside the stack.

Where does Monica keep its data?

In named volumes: mariadb mounted at /var/lib/mysql and storage mounted at /var/www/html/storage.

Can I deploy Monica on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for Monica, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image mariadb:11.8, monica:4.1.2-apache is what you deploy there.

levelrail-cli templates install monica --name my-monica