의 미러
https://github.com/winetree94/docker-ghost-starter.git
동기화됨 2026-11-28 14:54:30 +09:00
설명 없음
- Shell 100%
| 파일 이름 | 최신 커밋 메시지 | 최근 커밋 날짜 |
|---|---|---|
| config | ||
| .env.example | ||
| .gitignore | ||
| certbot.docker-compose.yml | ||
| docker-compose.yml | ||
| README.md | ||
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
- Clone this repository in some place
git clone https://github.com/winetree94/docker-ghost-starter.git
- Clone .env.example to .env and fill your infos
cp .env.example .env && nano .env
- 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