-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
53 lines (51 loc) · 1.18 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
version: "2"
services:
graphql:
image: maapteh.com:443/graphql-server
build:
context: ./packages/server
dockerfile: Dockerfile
args:
node_env: development
environment:
- PORT=4000
ports:
- 4000:4000
volumes:
- ./packages/server:/usr/app
- /usr/app/node_modules
command: yarn dev
web:
image: maapteh.com:443/graphql-app
build:
context: ./packages/app
dockerfile: Dockerfile
args:
node_env: development
environment:
- PORT=4001
- LOG_LEVEL=debug
- GRAPHQL_ENDPOINT=http://localhost:3000/graphql
ports:
- 4001:4001
volumes:
- ./packages/app:/usr/app
- /usr/app/node_modules
command: yarn dev
nginx:
image: maapteh.com:443/graphql-nginx
build:
context: ./config/nginx
dockerfile: Dockerfile
args:
node_env: development
IS_DOCKER: "true"
volumes:
- ./config/nginx:/etc/app
- /usr/app/node_modules
links:
- graphql
- web
ports:
- 3000:80
command: yarn start