Skip to content

avoinea/docker.deploy.ghost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published