-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
72 lines (65 loc) · 1.77 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
version: "3.3"
services:
master:
image: dvemuri/dist_fog_comp:distML-lnx
ports:
- "2550:2550"
volumes:
- /home/deepika/eclipse-workspace5/pi-akka-sharding/lib/datasets/iris_train.csv:/root/datasets/train.csv
- /home/deepika/eclipse-workspace5/pi-akka-sharding/lib/datasets/iris_test.csv:/root/datasets/test.csv
environment:
CLUSTER_PORT: 2550
CLUSTER_IP: master
SEED1_IP: worker1
SEED2_IP: worker2
ROLE: master
deploy:
replicas: 1
placement:
constraints: [node.hostname == deepika-Lenovo-Z51-70]
command: ["java","-jar","/app.jar", "master", "2550"]
worker1:
image: dvemuri/dist_fog_comp:distML-lnx
ports:
- "2552:2552"
environment:
CLUSTER_PORT: 2552
CLUSTER_IP: worker1
SEED1_IP: worker1
SEED2_IP: worker2
ROLE: worker
deploy:
replicas: 1
placement:
constraints: [node.hostname == raspi1]
command: ["java","-jar","/app.jar", "worker", "2552"]
worker2:
image: dvemuri/dist_fog_comp:distML-lnx
ports:
- "2534:2534"
environment:
CLUSTER_PORT: 2534
CLUSTER_IP: worker2
SEED1_IP: worker1
SEED2_IP: worker2
ROLE: worker
deploy:
replicas: 1
placement:
constraints: [node.hostname == raspi3]
command: ["java","-jar","/app.jar", "worker", "2534"]
worker3:
image: dvemuri/dist_fog_comp:distML-lnx
ports:
- "2553:2553"
environment:
CLUSTER_PORT: 2553
CLUSTER_IP: worker3
SEED1_IP: worker1
SEED2_IP: worker2
ROLE: worker
deploy:
replicas: 1
placement:
constraints: [node.hostname == raspi4]
command: ["java","-jar","/app.jar", "worker", "2553"]