-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
47 lines (47 loc) · 992 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
version: "2.4"
services:
prisma:
image: prismagraphql/prisma:1.34
restart: always
ports:
- "4466:4466"
environment:
PRISMA_CONFIG: |
port: 4466
databases:
default:
connector: mysql
host: mysql
port: 3306
user: root
password: prisma
healthcheck:
test: wget --quiet --tries=1 --spider http://localhost:4466
depends_on:
mysql:
condition: service_healthy
mysql:
image: mysql:5.7
restart: always
environment:
MYSQL_ROOT_PASSWORD: prisma
volumes:
- mysql:/var/lib/mysql
healthcheck:
test: mysqladmin ping -h 127.0.0.1 -pprisma
api:
build:
context: .
target: dev
ports:
- "4000:4000"
volumes:
- .:/app
environment:
- NODE_ENV=development
- PRISMA_END_POINT=http://prisma:4466
depends_on:
prisma:
condition: service_healthy
volumes:
mysql: ~