---
title: Deploy Ghost with AI
url: "/guides/ghost/"
canonical_url: https://docs.blossom88.com/guides/ghost/
markdown_url: https://docs.blossom88.com/guides/ghost.md
summary: Deploy Ghost with AI on Blossom. Publish your own blog with managed MySQL
  and persistent content, then configure email for your readers.
categories:
- deployment
- publishing
---

# Deploy Ghost with AI

[Ghost](https://ghost.org/) is a publishing platform for blogs, newsletters,
and memberships. Write posts, build a publication, and keep a direct
relationship with your readers.

Run your publication on Blossom, with durable content and a private MySQL
connection.

[Install the Blossom CLI and skill](/learn/getting-started/install/)
on your agent's machine and choose a Blossom Cloud Location when you log in.
You can also use
[Blossom BYOC (bring your own cloud)](/learn/getting-started/choose-your-cloud/#blossom-byoc).

## Ask Your Agent

> **Ask your AI agent:** Deploy Ghost on Blossom and help me publish my first post.

> Follow this guide: https://docs.blossom88.com/guides/ghost/



Your agent checks [Ghost's production requirements](https://docs.ghost.org/hosting),
selects compatible maintained images, and saves the choices with your App.

| Part | Purpose |
|---|---|
| Ghost | Serves the publication and its administration dashboard |
| Managed MySQL | Keeps posts, members, accounts, and site settings |
| Ghost's content Volume | Keeps uploaded images, themes, and other local content |
| Your email provider | Delivers account messages and, when configured, newsletters |

Use a MySQL release Ghost officially supports from
[Blossom Managed Data](/docs/data/). Select the compatible version
explicitly; the default MySQL version may be newer than Ghost supports.
The agent creates the Database instance, waits for readiness, and links it
to the Environment before starting Ghost and its initial migrations.

Ghost's content Volume keeps files separately from the managed database.

Ghost runs as one [Persistent Service](/docs/apps/persistent-services/).
Set its canonical `url` to your final
HTTPS address and keep database credentials stable across deployments. For a
generated App URL, derive it at startup from `BLOSSOM_SERVICE_HOST`. Create
your own owner account at `/ghost/` before opening the publication to readers.

## Publish Your First Post

> **Ask your AI agent:** Help me publish a post with a cover image, then check it as a reader.

> Follow this guide: https://docs.blossom88.com/guides/ghost/



Open Ghost Admin, write a post, upload an image, and publish it to the web.
Open its public URL in a separate browser session to check the post, image,
and navigation without an administrator login.

![A Ghost publication served by Blossom with a published post.](/assets/images/ghost/publication.webp)

![Ghost Admin showing the publication's posts.](/assets/images/ghost/admin.webp)

<details class="optional-reading" markdown="1">
<summary>Commands behind the deployment</summary>

Create an App and a prebuilt-image Environment using the compatible Ghost
image selected by your agent:

    blossom app:create --data app.yml
    blossom environment:create --data environment.yml

Create a managed Database instance using the supported MySQL release selected
by your agent, then link it to the Environment:

    blossom database_instance:create --data database_instance.yml --follow
    blossom environment_link:create --data environment_link.yml

Environment links provide private connectivity and inject the database URL.
The link file uses the IDs Blossom returns:

```yaml
environment_link:
  environment_id: environment-100
  target_type: DatabaseInstance
  target_id: database_instance-100
  var_name: DATABASE_URL
```

Ghost's service.yml includes its image, startup command, port, and readiness
check, plus:

```yaml
service:
  # Environment, Ghost image, startup command, and resources go here.
  publicly_exposed: true
  desired_size: 1
  storage:
    size_gib: 10
    mount_path: /var/lib/ghost/content
    availability: shared
```

Ghost expects native database settings rather than a `DATABASE_URL`.
Your agent maps the linked URL at startup to `database__client`,
`database__connection__host`, `database__connection__port`,
`database__connection__user`, `database__connection__password`, and
`database__connection__database`. Read the URL again on each start so a
redeploy uses the managed credentials. Keep the connection private.

Store any email-provider secrets in a private environment file:

    blossom service:create --data service.yml
    blossom env_var:push --environment environment-100 --file .env.production
    blossom environment:deploy --id environment-100 --follow

</details>

## Configure Email Before Inviting Members

> **Ask your AI agent:** Help me configure email for my Ghost publication and test a reader signup.

> Follow this guide: https://docs.blossom88.com/guides/ghost/



Configure [transactional email](https://docs.ghost.org/config#mail) for member
sign-in links, staff verification, and password resets. Native newsletter
sending uses a separate [Mailgun bulk-mail integration](https://docs.ghost.org/faq/mailgun-newsletters);
SMTP settings alone do not enable newsletters. Connect your own provider and
sending domain, then test with an address you control.

## Keep Your Publication Through Updates

> **Ask your AI agent:** Update Ghost and check that my posts, members, and uploaded images are still there.

> Follow this guide: https://docs.blossom88.com/guides/ghost/



Use compatible releases and follow Ghost's upgrade guidance. Keep independent
backups of both MySQL and the content directory. Configure the managed
database's [backup storage](/docs/backups/) and keep a separate
copy of Ghost's content; database backups do not include uploaded files.
Replacing a Container preserves its files but can briefly interrupt access
while the single writer restarts.

<details class="optional-reading" markdown="1">
<summary>Commands to inspect and update the App</summary>

    blossom service:show --id service-100
    blossom environment:deploy --id environment-100 --follow
    blossom logs --environment environment-100 --lines 30

</details>

Ghost [does not support clustering](https://docs.ghost.org/hosting#optimizing-for-scale).
For higher reader traffic, plan a CDN and caching in front of the publication.
Adding Ghost Containers does not establish a supported scaling model.

## What You Get

- Your own Ghost publication at an HTTPS address
- Ghost Admin for writing posts and managing readers
- A private, compatible managed MySQL database and durable content storage
- Published posts and images that survive Container replacement
