Forked from https://github.com/docker-library/ghost
50K+
Docker image that allows running Ghost in production mode.
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.
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
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
Content type
Image
Digest
Size
105.8 MB
Last updated
about 6 years ago
docker pull nerdware/ghost