forked from connect-foundation/2019-13
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
33 lines (33 loc) · 940 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
version: '2'
services:
prisma:
image: prismagraphql/prisma:1.34
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: YOUR_HOSTNAME
user: YOUR_USERNAME
password: YOUR_PASSWORD
rawAccess: true
port: 3306
migrations: true
mysql:
image: mysql:5.7
restart: always
# Uncomment the next two lines to connect to your your database from outside the Docker environment, e.g. using a database GUI like Workbench
# ports:
# - "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: MYSQL_PASSWORD
volumes:
- mysql:/var/lib/mysql
volumes:
mysql: