Sign inSign up

nerdware/ghost

By nerdware

•Updated about 6 years ago

Forked from https://github.com/docker-library/ghost

Image
1

50K+

nerdware/ghost repository overview

⁠Forked from https://github.com/docker-library/ghost⁠

⁠Ghost

⁠ghost-alpine

Docker image that allows running Ghost⁠ in production mode.

⁠Quickstart

docker run --name some-ghost -d nerdware/ghost

This will start Ghost in development mode listening on the default port of 2368.

If you'd like to be able to access the instance from the host without the contain's IP, standard port mappings can be used:

docker run --name some-ghost -p 80:2368 -d nerdware/ghost

Then, access it via http://localhost:80 or http://host-ip:80 in a browser.

⁠Configuration

There are three environment variables that can be configured:

  • url: the URL of your blog (e.g., http://www.example.com)
  • mail__from: the email of the blog installation (e.g., '"Webmaster" <[email protected]>')
  • mail__options__host: which host to send email to (e.g., mail.example.com)
  • useMinFiles: use minified files (false or true)

Look at https://docs.ghost.org/docs/config⁠

⁠Example docker-compose

version: '3'
services:
  ghost:
    build: .
    environment:
      url: http://localhost
      mail__from: '<[email protected]>'
      mail__options__host: smtp-relay.example.com
      useMinFiles: true
      privacy__useUpdateCheck: true
      privacy__useGravatar: false
      privacy__useRpcPing: false
      privacy__useStructuredData: false
      NODE_ENV: production
    volumes:
      - ./ghost_alpine:/var/lib/ghost/content
    ports:
      - 80:2368

Tag summary

Content type

Image

Digest

Size

105.8 MB

Last updated

about 6 years ago

docker pull nerdware/ghost