No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.env.example
.gitignore
Readme.md
docker-compose.yml

Readme.md

Ghost Blogging Platform Docker Orchestration

Ghost - The professional publishing platform

Install

$ git clone https://github.com/avoinea/docker.deploy.ghost myblog.com
$ cd myblog.com
$ cp .env.example .env
$ vim .env

SSL certificates

  • Obtain your SSL certificates from letsencrypt

    $ docker run --rm \
                 -p 80:80 \
                 -p 443:443 \
                 -v certs:/etc/letsencrypt \
             certbot/certbot certonly -d www.myblog.com --standalone -m my-email@myblog.com --agree-tos
    
  • If you already have SSL certificates

    $ docker run -it --rm -v certs:/etc/letsencrypt -v /path/my/certs:/backup alpine sh
    $ mkdir -p /etc/letsencrypt/live/www.myblog.com/
    $ cd /backup
    $ cp cert.pem privkey.pem fullchain.pem /etc/letsencrypt/live/www.myblog.com/
    $ exit
    

Run

$ docker-compose pull
$ docker-compose up -d

Start blogging

https://www.myblog.com/ghost

Renew SSL certificates

First run:

  $ docker-compose stop
  $ docker run --name=letsentrypt \
               -p 80:80 \
               -p 443:443 \
               -v certs:/etc/letsencrypt \
           certbot/certbot renew
  $ docker-compose up -d

Next run:

  $ docker-compose stop
  $ docker start letsencrypt
  $ docker-compose up -d