-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (48 loc) · 996 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
48
49
version: '3'
services:
mock_server:
build:
context: .
dockerfile: ./Dockerfile
volumes:
- ./:/app
- /node_modules
ports:
- 4001:4001
networks:
- application
command: bash -c "yarn build:mock-server && yarn start:mock-server"
apollo_server:
build:
context: .
dockerfile: ./Dockerfile
environment:
- MOCK_SERVER=mock_server
volumes:
- ./:/app
- /node_modules
ports:
- 4000:4000
networks:
- application
depends_on:
- mock_server
command: bash -c "yarn build:apollo-server && yarn start:apollo-server"
client:
build:
context: .
dockerfile: ./Dockerfile
environment:
- APOLLO_SERVER=apollo_server
volumes:
- ./:/app
- /node_modules
ports:
- 3000:3000
networks:
- application
depends_on:
- apollo_server
command: bash -c "yarn build:client && yarn start:client"
networks:
application: