-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (50 loc) · 1.16 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
version: '3'
services:
node1:
build:
context: .
dockerfile: dev.dockerfile
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
- ./node_data/1:/usr/src/app/node_data
ports:
- "4000:4000"
- "4100:4100"
environment:
- GRAPHQL_SERVER_PORT=4000
- P2P_SERVER_PORT=4100
- P2P_NODE_URL=ws://node1:4100
- PERSISTENCE_PATH=node_data/1
node2:
build:
context: .
dockerfile: dev.dockerfile
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
- ./node_data/2:/usr/src/app/node_data
ports:
- "4001:4001"
- "4101:4101"
environment:
- GRAPHQL_SERVER_PORT=4001
- P2P_SERVER_PORT=4101
- P2P_NODE_URL=ws://node2:4101
- PERSISTENCE_PATH=node_data/2
node3:
build:
context: .
dockerfile: dev.dockerfile
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
- ./node_data/3:/usr/src/app/node_data
ports:
- "4002:4002"
- "4102:4102"
environment:
- GRAPHQL_SERVER_PORT=4002
- P2P_SERVER_PORT=4102
- P2P_NODE_URL=ws://node3:4102
- PERSISTENCE_PATH=node_data/3