Publishing, checked 2026-09-07

Ghost: Docker configuration reference

Self-hosted publishing platform for blogs and newsletters, with built-in members and Stripe subscriptions.

At a glance

Ports

Ports
PortWhat listensSource
2368Default HTTP listener inside the container. Map it to whatever host port the reverse proxy expects.source for port 2368

Environment variables

Environment variables
VariableRequiredWhat it doesExampleSource
urlYesThe public URL of the site. Every internal link, RSS entry, sitemap and email is generated from this value, so a wrong or missing one rewrites links across the whole site.https://blog.example.comsource for url
database__clientYesDatabase driver. Production mode requires an external MySQL 8 server; SQLite via database__connection__filename only works in development mode.mysqlsource for database__client
database__connection__hostYesHostname of the MySQL server, nested under the database__connection key using the double-underscore config syntax.dbsource for database__connection__host
mail__transportNoMail transport for member and staff emails. Required in production; without it, invites, password resets and newsletters cannot send.SMTPsource for mail__transport
NODE_ENVNoNode environment. The Docker image defaults to production, unlike a bare Ghost install which defaults to development.productionsource for NODE_ENV

Volumes that must persist

Volumes
PathWhat is in itSource
/var/lib/ghost/contentThemes, images, uploaded files and the SQLite database file in development mode. Everything Ghost cannot regenerate lives here.source for /var/lib/ghost/content

Behind a reverse proxy

What it needs alongside it

Dependencies
DependencyWhySource
MySQL 8Required application database in production mode. SQLite is only supported in development mode and is not persisted the same way.source for MySQL 8

Release timeline

Releases
VersionDateBreakingWhat changedSource
v6.62.02026-09-01NoReleased the React tag details screen and fixed unsubscribe links affecting the wrong member when logged in.source for release v6.62.0
v6.61.02026-08-27NoAdded email-able gift subscriptions and Portal gift subscription links.source for release v6.61.0
v6.60.02026-08-25NoAdded new analytics fields to the automations list and removed the gift card and email preview on mobile.source for release v6.60.0
v6.59.02026-08-19NoFixed migrations failing on MySQL older than 8.0.28 and fixed navigation markup for themes without the icons flag.source for release v6.59.0
v6.58.02026-08-18NoAdded support for Docker secrets in config loading via the _FILE variable suffix, and released the React member details screen.source for release v6.58.0

If it is not coming up

Read from the upstream documentation, repository and container registry by Keita Emsden on 2026-09-07. Every row links the page it came from. Upstream changes without telling anyone, so check the source link before you rely on a value.

Other app references

All app references