Configurable ghost image use Ghost China's source
869
Vowstar Co.,Ltd. [email protected]
GHOST-ZH docker image is Ghost with Chinese language pack. Source code from http://www.ghostchina.com

Execute some command under this docker image
docker run --rm -ti -v `pwd`:$(somewhere) devicexx/$(image) $(somecommand)
Get ghost-zh
docker pull devicexx/ghost-zh
Get specific version
docker pull devicexx/ghost-zh:0.7.4
Tag available
Run with development method, using port 2368
docker run -d --restart=always --name dxx-blog -e "NODE_ENV=development" -v `pwd`/content:/var/lib/ghost -p 2368:2368 devicexx/ghost-zh:latest
Run with production method, using port 2368
docker run -d --restart=always --name dxx-blog -e "NODE_ENV=production" -v `pwd`/content:/var/lib/ghost -p 2368:2368 devicexx/ghost-zh:latest
These config below could use environment settings.
You can use -e to run docker or use environment section in docker-compose.
Extra settings you can config via config.js. A volume must mount to /var/lib/ghost before you do this.
Notice: If not set NODE_ENV, production will active by docker.
- NODE_ENV=production
- NODE_ENV=development
- GHOST_URL=http://blog.devicexx.com
- GHOST_URL_SSL=https://blog.devicexx.com
Notice: Check your proxy settings, such as RequestHeader set X-Forwarded-Proto "https".
Before you setting this, look https://github.com/TryGhost/Ghost/issues/2796
If this not set, this setting will not appeared in config.js.
- GHOST_FORCE_ADMIN_SSL=true
Notice: If GHOST_MAIL_HOST is not set, mail setting will not appeared in config.js. GHOST_MAIL_SECURE is true or false. true is for SSL, false is for non-SSL. Only support SMTP settings.
- GHOST_MAIL_HOST=smtp.devicexx.com
- GHOST_MAIL_SECURE=true
- GHOST_MAIL_PORT=465
- [email protected]
- GHOST_MAIL_PASSWORD=changeme
- GHOST_MAIL_FROM="[email protected]"
Notice: Default database is sqlite3.
Databases supported:
- GHOST_DATABASE_CLIENT=sqlite3
- GHOST_SQLITE_FILENAME=ghost.db
- GHOST_DATABASE_CLIENT=mysql
- GHOST_MYSQL_HOST=localhost
- GHOST_MYSQL_USER=ghost
- GHOST_MYSQL_PASSWORD=changeme
- GHOST_MYSQL_DATABASE=ghost
- GHOST_DATABASE_CLIENT=pg
- GHOST_PG_HOST=localhost
- GHOST_PG_USER=ghost
- GHOST_PG_PASSWORD=changeme
- GHOST_PG_DATABASE=ghost
Notice: If not set GHOST_STORAGE_PROVIDER, storage setting will not appeared in config.js.
Storage provider supported:
local means storage all images or pictures in your local server.
Aliyun OSS service
GHOST_STORAGE_PROVIDER=oss
GHOST_OSS_BUCKET="your-bucket-name"
GHOST_OSS_ACCESS_KEY="changeme"
GHOST_OSS_SECRET_KEY="changeme"
GHOST_OSS_ENDPOINT="http://oss-cn-hangzhou.aliyuncs.com"
GHOST_OSS_URL="http://your-bucket-name.oss-cn-hangzhou.aliyuncs.com"
QiNiu storage service
GHOST_STORAGE_PROVIDER=qiniu
GHOST_QN_BUCKET="your-bucket-name"
GHOST_QN_ACCESS_KEY="changeme"
GHOST_QN_SECRET_KEY="changeme"
GHOST_QN_URL="http://your-cdn.qiniudn.com"
UPYun storage service
GHOST_STORAGE_PROVIDER=upyun
GHOST_UPYUN_BUCKET="your-bucket-name"
GHOST_UPYUN_USERNAME="changeme"
GHOST_UPYUN_PASSWORD="changeme"
GHOST_UPYUN_URL="http://your-bucket-name.b0.upaiyun.com"
GoogleFonts, Gravatar is default off, more settings you can set in config.js. A volume must mount to /var/lib/ghost before you do this.
More configuration please visit http://support.ghost.org/config/
Content type
Image
Digest
Size
104.1 MB
Last updated
over 10 years ago
docker pull devicexx/ghost-zh