Sign inSign up

thejf/ghost

By thejf

Updated almost 11 years ago

The Ghost blogging platform v0.3.2, running on Ubuntu 13.04. See https://github.com/TheJF/ghost-docker for details.

Image
1

794

thejf/ghost repository overview

Ghost blogging platform v0.3.2, running on Ubuntu 13.04

See https://github.com/TheJF/ghost-docker for details and the Dockerfile used to build this image.

This container uses environment variables to tailor Ghost to your needs. This is the config it uses. The required environment variables are:

GHOST_HTTP_URL,

MAIL_FROMADDRESS,

MAIL_SERVICE,

MAIL_USERNAME,

MAIL_PASSWORD

It also requires a place to store the database outside the container, as storage inside Docker containers is not persistent. We can do this by creating a ghost-data directory somewhere on the server.

mkdir ghost-data

These must be configured as part of the run command. If you wanted to run a Ghost container as a daemon, you would type this in the directory below ghost-data: sudo docker run -e GHOST_HTTP_URL=http://your_own_url.com -e MAIL_FROMADDRESS=ghost@your_own_url.com -e MAIL_SERVICE=your_mail_service -e MAIL_USERNAME=your_username -e MAIL_PASSWORD=your_password -p 2368:2368 -v pwd/ghost-data:/content/data -d thejf/ghost npm start

If you wanted to run this in production mode as opposed to development mode, you need to add -e NODE_ENV=production to the run command.

Now point your browser to your http://your_own_url.com:2368 and magic.

Tag summary

Content type

Image

Digest

sha256:b14aa50da

Size

379.2 MB

Last updated

almost 11 years ago

docker pull thejf/ghost