Skip to content
A docker-ized version of Ghost which makes it possible to more easily configure various Ghost variables for Docker deployments.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.drone.yml
.drone.yml.sig
Dockerfile
README.md
config.js
config_test.js

README.md

Ghost

Dockerized Ghost container supporting environment variable configurations

This container includes a custom config file which will automatically retrieve its values from the environment variables you provide to this container.

Environment variables are expanded into a tree structure and merged with the default configuration file.

Example Expansion

GHOST_PRODUCTION_MAIL_TRANSPORT="smtp"
GHOST_PRODUCTION_MAIL_OPTIONS_SERVICE="mailgun"
GHOST_PRODUCTION_MAIL_OPTIONS_AUTH_USER=""
GHOST_PRODUCTION_MAIL_OPTIONS_AUTH_PASS=""
envConfig = {
    production: {
        mail: {
            transport: "smtp",
            options: {
                service: "Mailgun",
                auth: {
                    user: "",
                    pass: ""
                }
            }
        }
    }
}

Case Sensitive Names

Some components of the Ghost config are case sensitive, such as the contentPath property. These can be specified in non-uppercase form and they'll be left as is.

GHOST_PRODUCTION_PATHS_contentPath="/var/lib/ghost"
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.