Repository name would be YOUR_GITHUB_ID.github.io
. Details are GitHub Pages.
Attention! Have to checked Initialize this repository with a README checkbox.
$ git clone https://github.com/raccoonyy/docker-compose-ghost-buster blog
$ cd blog
$ vi .env # for customizing
$ docker-compose up -d
...
And then, open http://127.0.0.1:2368/ghost in web browser.
$ docker-compose exec buster ./generate.sh
$ docker-compose exec buster ./preview.sh
$ docker-compose exec buster ./deploy.sh
Repository name will be YOUR_GITHUB_ID.github.com
.
Attention! Have to checked Initialize this repository with a README checkbox.
- For OSX: https://download.docker.com/mac/stable/Docker.dmg
- For Linux: http://docs.docker.com/engine/installation/linux/
- For Windows: https://docs.docker.com/engine/installation/windows/
$ git clone https://github.com/raccoonyy/docker-compose-ghost-buster blog
$ cd blog
# .env sample
GITHUB_ID=raccoonyy # Github ID
LOGNAME=raccoony # Name
[email protected] # Email
SSH_KEY=~/.ssh/id_rsa # Private ssh key file
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
$ docker-compose up -d
- Local ghost admin: http://127.0.0.1:2368/ghost
- Local ghost server: http://127.0.0.1:2368/
- 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
$ docker-compose stop
- docker, docker-compose