Sign inSign up

nano/ghost

By nano

Updated almost 8 years ago

Image
4

873

nano/ghost repository overview

Nano Ghost

Build status

This is the Docker Nano image for Ghost v2.2.2 running on Node.js v6.14.4.

Usage

The site URL, IP and port can be customized when a container is run using a command similar to the following.

  • docker run -dp 127.0.0.1:2368:2368 -e NANO_URL=http://www.example.com --name Ghost nano/ghost:latest

If additional customization is required a configuration file can be mapped to /etc/ghost/config.json using volumes. Use product/config.production.json as a starting template.

  • docker run -dp 127.0.0.1:2368:2368 -v /my/config.json:/etc/ghost/config.json --name Ghost nano/ghost:latest

Ghost's content directory is mapped to /var/ghost and can be mirrored to the host using volumes.

Mail

Nano Ghost is configured to use a SMTP server running on the host and might work without any additional configuration as long as the following requirements are met.

  • An MTA such as Postfix or Exim is installed on the host.
  • The host MTA is bound to the docker0 network interface.
  • The docker0 network interface has the default IP of 172.17.42.1.

If you're running a firewall don't forget to permit docker0 traffic. For example, to allow all inbound traffic from docker0 with iptables, run iptables -A INPUT -i docker0 -m comment --comment Docker -j ACCEPT.

To use a different mail configuration supply a custom configuration as described in usage.

Tag summary

Content type

Image

Digest

Size

40.3 MB

Last updated

almost 8 years ago

docker pull nano/ghost:2.2.2