标签:start manage compose config play tar tap 版本 comment
以前官方提供的ansible 的脚本,现在有了docker的版本,可以方便测试使用
git clone https://github.com/pingcap/tidb-docker-compose.git
拉取镜像有点慢,稍等
cd tidb-docker-compose && docker-compose pull # Get the latest Docker images
docker-compose up -d
prisma init
version: ‘3‘
services:
prisma:
image: prismagraphql/prisma:1.13
ports:
- "4466:4466"
environment:
PRISMA_CONFIG: |
port: 4466
# uncomment the next line and provide the env var PRISMA_MANAGEMENT_API_SECRET=my-secret to activate cluster security
# managementApiSecret: my-secret
databases:
default:
connector: mysql
host: 10.6.201.9 # ip 地址
port: 4000
user: root
migrations: true
docker-compose up -d
prisma deploy
http://localhost:4466
mutation {
createUser(data:{
name:"rongfengliang"
}){
id
name
}
}
https://pingcap.com/docs/op-guide/docker-compose/
标签:start manage compose config play tar tap 版本 comment
原文地址:https://www.cnblogs.com/rongfengliang/p/9513749.html