forked from sarthak-chakraborty/FL-CrossChain
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-server.yml
More file actions
executable file
·135 lines (126 loc) · 2.69 KB
/
docker-compose-server.yml
File metadata and controls
executable file
·135 lines (126 loc) · 2.69 KB
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
version: '3.5'
volumes:
aggregator:
db:
services:
registrar:
container_name: Registrar
build:
context: .
dockerfile: Dockerfile
shm_size: '1gb'
ipc: host
networks:
- ${NETWORK}
volumes:
- .:/app
depends_on:
- db
- coordinator
tty: true
command: ["python", "main.py", "registrar"]
selector:
container_name: Selector
build:
context: .
dockerfile: Dockerfile
shm_size: '1gb'
ipc: host
networks:
- ${NETWORK}
volumes:
- .:/app
depends_on:
- db
- coordinator
tty: true
command: ["python", "main.py", "selector"]
connector:
container_name: Connector
build:
context: .
dockerfile: Dockerfile
shm_size: '1gb'
ipc: host
networks:
- ${NETWORK}
volumes:
- .:/app
depends_on:
- db
- coordinator
tty: true
command: ["python", "main.py", "connector"]
aggregator:
container_name: Aggregator
build:
context: .
dockerfile: Dockerfile
shm_size: '1gb'
extra_hosts:
- "web:10.254.254.254"
ipc: host
networks:
- ${NETWORK}
volumes:
- .:/app
- ./datasets/:/app/data
depends_on:
- db
- coordinator
tty: true
command: ["python", "main.py", "aggregator"]
deliverator:
container_name: Deliverator
build:
context: .
dockerfile: Dockerfile
shm_size: '1gb'
ipc: host
networks:
- ${NETWORK}
volumes:
- .:/app
depends_on:
- db
- coordinator
tty: true
command: ["python", "main.py", "deliverator"]
coordinator:
container_name: Coordinator
build:
context: .
dockerfile: Dockerfile
shm_size: '1gb'
ipc: host
networks:
- ${NETWORK}
volumes:
- .:/app
- ./fabric-samples/asset-transfer-basic/application-go-net1/cnn_40/:/app/cnn_40
- ./fabric-samples/asset-transfer-basic/application-go-net1/cnn_10/:/app/cnn_10
- ./fabric-samples/asset-transfer-basic/application-go-net1/vgg_40/:/app/vgg_40
- ./fabric-samples/asset-transfer-basic/application-go-net1/vgg_10/:/app/vgg_10
depends_on:
- db
tty: true
command: ["python", "main.py", "server"]
db:
container_name: Mongo
ipc: host
image: mongo:4.0
ports:
- "27017:27017"
logging:
driver: none
networks:
- ${NETWORK}
volumes:
- './data/db:/data/db'
networks:
federated:
external: true
attachable-fl:
external: true
fl_ok:
external: true