Skip to content

raccoonyy/docker-compose-ghost-buster

Repository files navigation

Docker-Compose for easily run Ghost & buster

TL;DR

1. Create your repository

Repository name would be YOUR_GITHUB_ID.github.io. Details are GitHub Pages.

Attention! Have to checked Initialize this repository with a README checkbox.

2. Follow these instructions
$ git clone https://github.com/raccoonyy/docker-compose-ghost-buster blog
$ cd blog
$ vi .env  # for customizing
$ docker-compose up -d
...
3. Here is your Ghost!

And then, open http://127.0.0.1:2368/ghost in web browser.

4. Generate static blog & preview & deploy it!
$ docker-compose exec buster ./generate.sh
$ docker-compose exec buster ./preview.sh
$ docker-compose exec buster ./deploy.sh

How to use

0. Create your repository

Repository name will be YOUR_GITHUB_ID.github.com.

Attention! Have to checked Initialize this repository with a README checkbox.

1. Install Docker, Docker-Compose
2. Clone this repo
$ git clone https://github.com/raccoonyy/docker-compose-ghost-buster blog
$ cd blog
3. Create .env file
# .env sample
GITHUB_ID=raccoonyy        # Github ID
LOGNAME=raccoony           # Name
EMAIL=raccoonyy@gmail.com  # Email
SSH_KEY=~/.ssh/id_rsa      # Private ssh key file
(3.5 Copy existing ghost contents)

If you have already ghost contents, copy some folders to blog.

$ cp EXISTING_GHOST_content ./content
$ cp EXISTING_GHOST_config ./config

And then, rename docker-compose-for-existing-content.yml to docker-compose.yml.

$ mv docker-compose-for-existing-content.yml docker-compose.yml
4. Run
$ docker-compose up -d
5. Execute buster commands
  • Generate static files
$ docker-compose exec buster ./generate.sh
  • Preview static server
$ docker-compose exec buster ./preview.sh
  • Deploy static files to Github
$ docker-compose exec buster ./deploy.sh
6. Stop server
$ docker-compose stop

Requirements

  • docker, docker-compose

About

Dockerized Ghost(Blog Platform) + buster(static site generator)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages