Ghost is a free and open source blogging platform written in JavaScript and distributed under the MIT License, designed to simplify the process of online publishing for individual bloggers as well as online publications.

docker run --name some-ghost -d jonnybgod/ghost
This will start a Ghost instance listening on the default Ghost port of 2368.
If you'd like to be able to access the instance from the host without the container's IP, standard port mappings can be used:
docker run --name some-ghost -p 8080:2368 -d jonnybgod/ghost
Then, access it via http://localhost:8080 or http://host-ip:8080 in a browser.
You can also point the image to your existing content on your host:
docker run --name some-ghost -v /path/to/ghost/blog:/var/lib/ghost jonnybgod/ghost
Alternatively you can use a data container that has a volume that points to /var/lib/ghost and then reference it:
docker run --name some-ghost --volumes-from some-ghost-data jonnybgod/ghost
URL: specify the elasticsearch index (default: http://localhost:2368)HOST: specify the IP address that Ghost should listen on (default: 0.0.0.0)PORT: specify the port number that Ghost should listen on (default: 2368)MYSQL_HOST: specify the database endpointMYSQL_USER: specify the database usernameMYSQL_PASSWORD: specify the database passwordMYSQL_DATABASE: specify the database nameor
POSTGRES_HOST: specify the database endpointPOSTGRES_PORT: specify the database portPOSTGRES_USER: specify the database usernamePOSTGRES_PASSWORD: specify the database passwordPOSTGRES_DATABASE: specify the database nameS3_ACCESS_KEY_ID: specify the AWS IAM user key_idS3_ACCESS_SECRET_KEY: specify the AWS IAM user secret_keyS3_BUCKET_NAME: specify the AWS S3 bucket nameS3_REGION: specify the AWS S3 regionMAIL_SERVICE: specify email serviceMAIL_USER: specify email service smtp usernameMAIL_PASSWORD: specify email service smtp passwordblog:
image: jonnybgod/ghost
command: npm start --production
environment:
URL: http://example.com
MYSQL_HOST: <YOUR_MYSQL_HOST>
MYSQL_USER: <YOUR_MYSQL_USER>
MYSQL_PASSWORD: <YOUR_MYSQL_PASSWORD>
MYSQL_DATABASE: <YOUR_MYSQL_DB>
S3_ACCESS_KEY_ID: <YOUR_S3_ACCESS_KEY_ID>
S3_ACCESS_SECRET_KEY: <YOUR_S3_ACCESS_SECRET_KEY>
S3_BUCKET_NAME: <YOUR_S3_BUCKET_NAME>
S3_REGION: <YOUR_S3_REGION>
MAIL_SERVICE: Mailgun
MAIL_USER: <YOUR_MAILGUN_SMTP_USER>
MAIL_PASSWORD: <YOUR_MAILGUN_SMTP_PASSWORD>
restart: always
Content type
Image
Digest
Size
35.2 MB
Last updated
over 10 years ago
docker pull jonnybgod/ghost