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.

  1. Create MariaDB with create-service-instance (serviceId: "linuxserver-docker-mariadb") with options RootPassword, Database (for example ghost), User (for example ghost) and Password. See the MariaDB page for its options.
  2. Read the address and port with describe-service-instance. The connection URL has the form mysql://ghost:<password>@<IP>:<PORT>/ghost.
  3. Store the URL as a secret: create-service-secret with serviceId: "tryghost-ghost", name dburl and the URL as value. If you will send email, also create smtppass with the SMTP password.
  4. Create Ghost with create-service-instance using serviceId: "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.

Resources