주시
1
0
포크
이미 docker-ghost-starter을(를) 포크했습니다
0
의 미러 https://github.com/winetree94/docker-ghost-starter.git 동기화됨 2026-11-28 14:54:30 +09:00
설명 없음
파일 찾기
저장소 파일(최신 커밋부터)
파일 이름 최신 커밋 메시지 최근 커밋 날짜
2023-06-25 23:45:05 +09:00
config fix: site url not matched 2023-06-25 23:45:05 +09:00
.env.example feat: initial commit 2023-06-25 13:44:39 +00:00
.gitignore feat: initial commit 2023-06-25 13:44:39 +00:00
certbot.docker-compose.yml feat: initial commit 2023-06-25 13:44:39 +00:00
docker-compose.yml feat: initial commit 2023-06-25 13:44:39 +00:00
README.md feat: initial commit 2023-06-25 13:44:39 +00:00

Docker Ghost Starter

this is self-hosted docker starter template for ghost

  • SSL Certification issue & automatic renew (Certbot, using Cloudflare dns challenge)
  • Nginx Reverse proxy
  • Ghost & MariaDB

Directory Structures

  • config
    • every configuration data
  • data
    • every persistant data will be stored in here
  • docker-compose.yml
    • nginx, ghost, database compose file
  • certbot.docker-compose.yml
    • certbot test/issue/renew compose file
  • .env.example
    • environment that used everywhere

Pre-Requirement

  1. Clone this repository in some place
git clone https://github.com/winetree94/docker-ghost-starter.git
  1. Clone .env.example to .env and fill your infos
cp .env.example .env && nano .env
  1. Replace cloudflare api token
nano config/cloudflare/credentials

Installation

1. SSL Certification working test

I recommend that you test it before you start.

this command will test your dns challenging process

docker compose -f certbot.docker-compose.yml run --rm certbot-test

If the result is like this, it's ready to go

Simulating renewal of an existing certificate for winetree94.com
Waiting 10 seconds for DNS changes to propagate
The dry run was successful.

2. Issue SSL Certification

docker compose up -f certbot.docker-compose.yml run --rm certbot-issue

3. Start ghost

docker compose up -d

4. Register crontab for automatic renewal ssl certification

crontab -e
* * 5 * * /REPOSITORY_PATH/config/crontab/renew.sh >> /PATH_TO_STORE_LOG/crontab.log