-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose-flink.yml
46 lines (46 loc) · 1 KB
/
docker-compose-flink.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
services:
job-manager:
image: flink:1.19.0-scala_2.12-java8
container_name: job-manager
expose:
- "6123"
ports:
- "8081:8081"
command: jobmanager
environment:
- JOB_MANAGER_RPC_ADDRESS=job-manager
volumes:
- ./flink/data/:/flink-data/
networks:
- net-flink
task-manager1:
image: flink:1.19.0-scala_2.12-java8
container_name: task-manager1
expose:
- "6121"
- "6122"
command: taskmanager
environment:
- JOB_MANAGER_RPC_ADDRESS=job-manager
- TASK_MANAGER_NUMBER_OF_TASK_SLOTS=2
depends_on:
- job-manager
networks:
- net-flink
task-manager2:
image: flink:1.19.0-scala_2.12-java8
container_name: task-manager2
expose:
- "6121"
- "6122"
command: taskmanager
environment:
- JOB_MANAGER_RPC_ADDRESS=job-manager
- TASK_MANAGER_NUMBER_OF_TASK_SLOTS=2
depends_on:
- job-manager
networks:
- net-flink
networks:
net-flink:
driver: bridge