https://github.com/hopsoft/docker-ghost
Docker image for the Ghost blogging engine
https://github.com/hopsoft/docker-ghost
Last synced: 6 months ago
JSON representation
Docker image for the Ghost blogging engine
- Host: GitHub
- URL: https://github.com/hopsoft/docker-ghost
- Owner: hopsoft
- License: mit
- Created: 2013-12-02T17:44:37.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-12-03T05:34:00.000Z (almost 12 years ago)
- Last Synced: 2025-02-09T15:25:23.733Z (8 months ago)
- Language: Shell
- Size: 121 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
## Start the container
```
mkdir /var/log/ghost
docker run -name my-blog -i -t -p 3000:80 -v /var/www -v /var/log/ghost:/var/log hopsoft/ghost bash
```## Configure
```
vim /var/www/ghost/config.js
vim /etc/nginx/nginx.conf
vim /etc/nginx/sites-available/ghost.conf
```## Install a theme *(optional)*
```
cd /var/www/ghost/content/themes
git clone https://github.com/oswaldoacauan/ghostium
vim ghostium/partials/custom/config.hbs
vim /var/www/ghost/content/themes/ghostium/partials/custom/config.hbs
vim /var/www/ghost/content/themes/ghostium/partials/custom/meta.hbs
vim /var/www/ghost/content/themes/ghostium/partials/custom/navigation.hbs
```## Start all services & exit
```
/opt/hopsoft/ghost/start
```## Visit the blog
```
curl http://localhost:3000
```## Make a config change after start
```
docker attach my-blog
vim /var/www/ghost/config.js
forever restartall
```## Restart the container
```
docker start my-blog
/opt/hopsoft/ghost/start
```