ashki
08/23/2018, 3:09 PMversion: '3'
services:
api_01:
image: someyogaimage
restart: always
command: "yarn start"
environment:
- PRISMA_ENDPOINT=<http://prisma:4466/service1>
- PRISMA_SECRET="my-secret"
ports:
- "4000:4000"
api_02:
image: someyogaimage
restart: always
command: "yarn start"
environment:
- PRISMA_ENDPOINT=<http://prisma:4466/service2>
- PRISMA_SECRET="my-secret"
ports:
- "4000:4000"
prisma:
image: prismagraphql/prisma:1.10
restart: always
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
active: true
host: db
port: 3306
user: root
password: prisma
db:
image: mysql:5.7
restart: always
environment:
MYSQL_ROOT_PASSWORD: prisma
NOTE this doesn't work but it's just for you to get a sense of how it would be working