-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
99 lines (98 loc) · 2.17 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
version: '3'
services:
mysql:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: prisma
volumes:
- mysql:/var/lib/mysql
prisma:
image: prismagraphql/prisma:1.13.5
ports:
- 4466:4466
environment:
PRISMA_CONFIG: |
port: 4466
databases:
default:
connector: mysql
host: mysql
port: 3306
user: root
password: prisma
migrations: true
depends_on:
- mysql
client_web:
build:
context: client/web
args:
- NODE_ENV
ports:
- 3000:3000
volumes:
- yarn:/home/node/.cache/yarn
- ./client/web:/web
- ./client/web/package.json:/web/package.json
- ./client/web/yarn.lock:/web/yarn.lock
- ./tools/yarn.js:/web/yarn.js
env_file:
- ./envs/share.env
- ./envs/web.env
client_app:
build:
context: client/app
args:
- NODE_ENV
- EXPO_USERNAME
- EXPO_PASSWORD
ports:
- 19000:19000
- 19001:19001
- 8081:8081
- "0.0.0.0:4040:4040"
volumes:
- yarn:/home/node/.cache/yarn
- ./client/app:/app
- ./client/app/package.json:/app/package.json
- ./client/app/yarn.lock:/app/yarn.lock
- ./tools/yarn.js:/app/yarn.js
env_file:
- ./envs/share.env
- ./envs/app.env
server_graph:
build:
context: server/graph
args:
- NODE_ENV
ports:
- 4000:4000
- 4001:4001
volumes:
- yarn:/home/node/.cache/yarn
- ./server/graph:/graph
- ./server/graph/package.json:/graph/package.json
- ./server/graph/yarn.lock:/graph/yarn.lock
- ./tools/yarn.js:/graph/yarn.js
env_file:
- ./envs/share.env
- ./envs/graph.env
server_api:
build:
context: server/api
args:
- NODE_ENV
ports:
- 4002:4002
volumes:
- yarn:/home/node/.cache/yarn
- ./server/api:/api
- ./server/api/package.json:/api/package.json
- ./server/api/yarn.lock:/api/yarn.lock
- ./tools/yarn.js:/api/yarn.js
env_file:
- ./envs/share.env
- ./envs/api.env
volumes:
mysql:
yarn: