prime 是一款基于graphql的开源cms,功能点很不错,但是出来不久,还是有好多bug的
官方暂时没有提供docker 的运行方式,为了方便测试,搞了以及docker-compose 测试的
version: "3"
services:
postgres:
image: postgres
ports:
- "5432:5432"
environment:
- "POSTGRES_DB=prime-sq"
- "POSTGRES_PASSWORD=dalong"
prime:
build: ./
ports:
- "4000:4000"
environment:
- "DATABASE_URL=postgresql://postgres:dalong@postgres:5432/prime-sq"
- "SESSION_SECRET=dalongdemo"
FROM node:9
WORKDIR /app
COPY . /app
RUN yarn
CMD [ "yarn","start" ]
{
"name": "prime-project",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"dependencies": {
"@primecms/core": "^0.2.2",
"@primecms/ui": "^0.2.2"
},
"scripts": {
"start":"primecms start"
}
}
docker-compose build && docker-compose up -d
当前bug还是比较多的,暂时可以尝鲜,后期应该会有优化改进
https://birkir.github.io/prime/#/getstarted
https://github.com/rongfengliang/prime-docker-compose-running
原文:https://www.cnblogs.com/rongfengliang/p/10165483.html