-
Notifications
You must be signed in to change notification settings - Fork 161
/
docker-compose-flink.yaml
74 lines (73 loc) · 2.02 KB
/
docker-compose-flink.yaml
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
# The MySQL server is configured with binlog_format MIXED rather than ROW, which is required for this connector to work properly. Change the MySQL configuration to use a binlog_format=ROW and restart the connector.
# Unable to convert to LocalTime from unexpected value '1648857600000' of type
version: "3"
services:
lark-flink-sql-client:
image: saeipi/lark-flink:1.14.6
container_name: lark-flink-sql-client
networks:
lark-network:
ipv4_address: "192.168.9.140"
depends_on:
- lark-flink-jobmanager
environment:
FLINK_JOBMANAGER_HOST: lark-flink-jobmanager
lark-flink-jobmanager:
image: flink:1.14.6-scala_2.11-java8
container_name: lark-flink-jobmanager
expose:
- "6123"
ports:
- "8081:8081"
networks:
lark-network:
ipv4_address: "192.168.9.141"
volumes:
- ./configs/docker/flink/job/flink-conf.yaml:/opt/flink/conf/flink-conf.yaml
command: jobmanager
environment:
- JOB_MANAGER_RPC_ADDRESS=lark-flink-jobmanager
- TZ=Asia/Shanghai
deploy:
resources:
limits:
cpus: '2'
memory: 1G
reservations:
cpus: '2'
memory: 1G
lark-flink-taskmanager:
image: flink:1.14.6-scala_2.11-java8
container_name: lark-flink-taskmanager
expose:
- "6121"
- "6122"
networks:
lark-network:
ipv4_address: "192.168.9.142"
volumes:
- ./configs/docker/flink/task/flink-conf.yaml:/opt/flink/conf/flink-conf.yaml
depends_on:
- lark-flink-jobmanager
command: taskmanager
links:
- "lark-flink-jobmanager:lark-flink-jobmanager"
environment:
- JOB_MANAGER_RPC_ADDRESS=lark-flink-jobmanager
- TZ=Asia/Shanghai
deploy:
resources:
limits:
cpus: '2'
memory: 1G
reservations:
cpus: '2'
memory: 1G
networks:
lark-network:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.9.0/24
ip_range: 192.168.9.0/24