---
title: Deploy Monica with AI on Blossom
url: "/deploy/monica/"
canonical_url: https://blossom88.com/deploy/monica/
markdown_url: https://blossom88.com/deploy/monica.md
summary: Set up a private personal CRM and add a follow-up reminder to a contact.
categories:
- deployment
- crm
stack:
- PHP
- Laravel
- Vue.js
- MySQL
---

# Deploy Monica with AI on Blossom

[Monica](https://www.monicahq.com/) is a personal CRM for remembering
the people you know and when you want to follow up. Start with one sample
contact and a reminder you can find again from their contact page.

## Ask Your Agent

> **Ask your AI agent:** Deploy Monica on Blossom with managed MySQL. Help me add a contact and a follow-up reminder.
>
> Follow this guide: https://blossom88.com/deploy/monica/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and [choose a Location in your cloud account](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#connect-your-provider).

## Have Ready

- **Managed MySQL** (Required): Link an empty MySQL 8.4 database for the first deployment.

## How It Runs

| Part | Role | Where |
|---|---|---|
| Monica | Serve the contact book and keep app storage on a Volume | Persistent Service with Blossom Account access |
| MySQL | Store accounts, contacts, and reminders | Blossom Managed Data |

## Deploy Monica

Run Monica's official Apache image as a Persistent Service. Link managed
MySQL and turn on Blossom Account access before opening the private URL.

<details class="optional-reading" markdown="1">
<summary>Notes for your agent</summary>

Use the [Monica 4.1.2 release](https://github.com/monicahq/monica/releases/tag/v4.1.2)
and its official Apache image on port 80. For the pinned setup use
`docker.io/library/monica@sha256:fce559a809b3b19336b27f72d0713222beb7b955e99adcc8813cd85f070cbd38`.
Mount the Volume at
`/var/www/html/storage`. Keep `APP_KEY` and `HASH_SALT` stable across releases.
Use `APP_ENV=production`, `APP_DEBUG=false`, and `APP_FORCE_URL=true`.
For this gated demo, set `APP_DISABLE_SIGNUP=false`,
`APP_SIGNUP_DOUBLE_OPTIN=false` and `MAIL_MAILER=log`.

Link the database as `MONICA_MYSQL_URL`. The
[startup command](/deploy/recipes/monica/start-with-linked-data.sh)
normalizes the Link to `mysql://` for Monica, uses the generated HTTPS Service
URL as `APP_URL`, and starts the stock Apache entrypoint. Configure a TCP
health check on port 80 with room for initial database migrations.

</details>

<details class="optional-reading" markdown="1">
<summary>Commands your agent runs</summary>

    blossom app_plan:preview --data monica-plan.yml
    blossom database_instance:create --data monica-mysql.yml
    blossom app:create --data monica-app.yml
    blossom environment:create --data monica-environment.yml
    blossom environment_link:create --data monica-mysql-link.yml
    blossom env_var:push --environment environment-100 --file monica.env
    blossom service:create --data monica-web.yml
    blossom environment:deploy --id environment-100 --follow

</details>

## Create Your Monica Sign-In

Open the app from your Blossom Account, then register a Monica account.
Use a throwaway address for the walkthrough and keep registration inside
the Account-access gate.

> **Ask your AI agent:** Open my private Monica URL and help me create my Monica sign-in.

> Follow this guide: https://blossom88.com/deploy/monica/



## Add a Contact and a Reminder

Add Taylor River as a sample contact. On Taylor's page, add a dated reminder
called **Follow up about the workshop**. Reopen the contact to see the
reminder saved with the person it belongs to.

![Open the sample contact in Monica.](/deploy/assets/images/monica/monica-contact.webp)

> **Ask your AI agent:** Add Taylor River as a sample contact and set a reminder to follow up about the workshop.

> Follow this guide: https://blossom88.com/deploy/monica/



## Keep It Running

Replace the web Container in the demo while keeping the Volume and MySQL
Link. Sign in again and reopen Taylor's contact and reminder.

![Find the same reminder after an update.](/deploy/assets/images/monica/monica-reminder.webp)


> **Ask your AI agent:** Replace the Monica demo Container, then sign in again and reopen Taylor's contact and reminder.

> Follow this guide: https://blossom88.com/deploy/monica/



<details class="optional-reading" markdown="1">
<summary>Commands your agent runs</summary>

    blossom service:scale --id service-100 --desired-size 0 --follow
    blossom service:scale --id service-100 --desired-size 1 --follow
    blossom container:list --service service-100

</details>

## What You Get

- A contact book at a private HTTPS address
- One contact with a dated reminder
- Contact and reminder history you can reopen after an update
- A place to keep notes about the people you want to stay in touch with

Tested on Blossom: A fresh sign-in on a replacement Container reopened the same contact and dated reminder.
