forked from digicatapult/dc-federated
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker_compose_plantvillage.yml
43 lines (43 loc) · 1.07 KB
/
docker_compose_plantvillage.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
version: "3.4"
#Requires Docker Engine version 17.09.0+
services:
plantvillage_backend:
build:
context: .
target: plantvillage_backend
ports:
- "8080:8080"
environment:
- UPDATE_LIM=3
plantvillage_worker_1:
build:
context: .
target: plantvillage_worker
depends_on:
- plantvillage_backend
environment:
- WORKER_ID=0
plantvillage_worker_2:
build:
context: .
target: plantvillage_worker
depends_on:
- plantvillage_backend
environment:
- WORKER_ID=1
plantvillage_worker_3:
build:
context: .
target: plantvillage_worker
depends_on:
- plantvillage_backend
environment:
- WORKER_ID=2
plantvillage_worker_4:
build:
context: .
target: plantvillage_worker
depends_on:
- plantvillage_backend
environment:
- WORKER_ID=3