-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
59 lines (54 loc) · 1.06 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
version: '2.4'
networks:
default:
services:
jobmanager:
build:
context: .
dockerfile: DockerfileFlinkCustom
expose:
- "6123"
ports:
- "8081"
- "6123"
- "6124"
- "6125"
networks:
default:
command: jobmanager
environment:
- JOB_MANAGER_RPC_ADDRESS=jobmanager
cpus: "1"
mem_limit: 1536M
restart: "on-failure"
taskmanager:
build:
context: .
dockerfile: DockerfileFlinkCustom
expose:
- "6121"
- "6122"
networks:
default:
command: taskmanager
links:
- "jobmanager:jobmanager"
environment:
- JOB_MANAGER_RPC_ADDRESS=jobmanager
- TASK_MANAGER_NUMBER_OF_TASK_SLOTS=1
depends_on:
- jobmanager
cpus: "1"
mem_limit: 1536M
restart: "on-failure"
xgboost:
build:
context: .
dockerfile: DockerfilePredictJob
depends_on:
- jobmanager
- taskmanager
environment:
- FLINK_JOB_MANAGER_HOST=jobmanager
- FLINK_JOB_MANAGER_PORT=8081
restart: "on-failure"