31 lines
729 B
YAML
31 lines
729 B
YAML
|
version: '3'
|
||
|
services:
|
||
|
prisma:
|
||
|
image: prismagraphql/prisma:1.23
|
||
|
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
|
||
|
host: mysql
|
||
|
port: 3306
|
||
|
user: root
|
||
|
password: prisma
|
||
|
migrations: true
|
||
|
rawAccess: true
|
||
|
mysql:
|
||
|
image: mysql:5.7
|
||
|
restart: always
|
||
|
environment:
|
||
|
MYSQL_ROOT_PASSWORD: prisma
|
||
|
volumes:
|
||
|
- mysql:/var/lib/mysql
|
||
|
volumes:
|
||
|
mysql:
|