Ghost
Ghost (serviceId tryghost-ghost) is an open-source Node.js content management system for professional publishing. In Eyevinn Open Source Cloud (OSC) it is a long-running service instance with up to 20 GiB of storage per instance. License: MIT.
What it can do
- Write and publish posts with a modern editor.
- Manage members, subscriptions and newsletter tiers.
- Send newsletters, member invitations and password resets by email through an SMTP server you configure.
- Provide a built-in SEO toolkit, themes and staff accounts.
Creating an instance
Ghost requires a MySQL-compatible database. Create a MariaDB instance first (serviceId linuxserver-docker-mariadb) and confirm it is running before creating Ghost.
- Create MariaDB with
create-service-instance(serviceId: "linuxserver-docker-mariadb") with optionsRootPassword,Database(for exampleghost),User(for exampleghost) andPassword. See the MariaDB page for its options. - Read the address and port with
describe-service-instance. The connection URL has the formmysql://ghost:<password>@<IP>:<PORT>/ghost. - Store the URL as a secret:
create-service-secretwithserviceId: "tryghost-ghost", namedburland the URL as value. If you will send email, also createsmtppasswith the SMTP password. - Create Ghost with
create-service-instanceusingserviceId: "tryghost-ghost". The instance name must be alphanumeric and at most 20 characters.
{
"name": "myblog",
"DatabaseUrl": "{{secrets.dburl}}",
"SmtpHost": "smtp.example.com",
"SmtpPort": "587",
"SmtpUser": "<smtp-user>",
"SmtpPass": "{{secrets.smtppass}}",
"MailFrom": "noreply@example.com"
}
The SMTP options are optional. Wait for the instance with wait-for-service-ready and get its URL with describe-service-instance.
With the OSC CLI:
npx @osaas/cli create linuxserver-docker-mariadb mydb \
-o RootPassword="rootpass" \
-o Database="ghost" \
-o User="ghost" \
-o Password="ghostpass"
npx @osaas/cli create tryghost-ghost myblog \
-o DatabaseUrl="mysql://ghost:ghostpass@<IP>:<PORT>/ghost"
Options
| Option | Required | Type | Meaning |
|---|---|---|---|
| name | Yes | string | Name of the instance. Alphanumeric, at most 20 characters. |
| DatabaseUrl | Yes | string, sensitive | MySQL/MariaDB connection URL for Ghost's primary data storage (content, users, settings, metadata), for example mysql://<user>:<password>@<IP>:<PORT>/<database>. Store it as a secret and pass {{secrets.NAME}}. |
| SmtpHost | No | string | SMTP server hostname used to send member notifications, password resets and newsletters, for example smtp.mailgun.org. |
| SmtpPort | No | string | SMTP server port. Common values are 587 (TLS) and 465 (SSL). |
| SmtpUser | No | string | Username for SMTP authentication, when the email provider requires it. |
| SmtpPass | No | string, sensitive | Password for SMTP authentication. Store it as a secret and pass {{secrets.NAME}}. |
| MailFrom | No | string | Default sender (from) address for emails sent by Ghost, for example noreply@yourdomain.com. Should match the domain's email configuration to avoid spam filtering. |
DatabaseUrl and SmtpPass are secrets. A {{secrets.NAME}} reference must be the whole field value. Changing a secret later does not restart a running instance.
Using the instance
Open the instance URL in a browser and go to /ghost for the admin panel. Ghost prompts for an owner account (name, email, password) on first visit.
Important: the setup wizard is only accessible once. Complete it immediately after the instance starts.
From the admin panel you can write and publish posts, configure the site title, description and theme under Settings, invite team members, and set up member subscriptions and newsletter tiers.
Limitations
- Storage is limited to 20 GiB per instance.
- A MySQL-compatible database is required.