-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
81 lines (77 loc) · 2.53 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
73
74
75
76
77
78
79
80
81
services:
jobmanager:
build: ./flink/
restart: unless-stopped
ports:
- "3031:8081"
- "9249:9249"
entrypoint: /flink-entrypoint.sh
command: jobmanager
environment:
- |
FLINK_PROPERTIES=
jobmanager.rpc.address: jobmanager
taskmanager.numberOfTaskSlots: 40
parallelism.default: 2
- TABLES_DEFINITION_FILE=/opt/flink/data/transactions-data/tables-definition.sql
volumes:
- ./flink/flink-conf.yaml:/tmp/flink-conf.yaml
- ./flink/log4j-console.properties:/opt/flink/conf/log4j-console.properties
- ./flink/flink-entrypoint.sh:/flink-entrypoint.sh
- ./transactions-data/:/opt/flink/data/transactions-data
- storage_flink:/opt/flink/data
taskmanager:
build: ./flink/
restart: unless-stopped
ports:
- "3063:9069"
- "9009:9009"
- "9008:9008"
- "5010:5010"
entrypoint: /flink-entrypoint.sh
command: taskmanager
environment:
- |
FLINK_PROPERTIES=
jobmanager.rpc.address: jobmanager
taskmanager.numberOfTaskSlots: 40
parallelism.default: 2
- TABLES_DEFINITION_FILE=/opt/flink/data/transactions-data/tables-definition.sql
depends_on:
- jobmanager
volumes:
- ./flink/flink-conf.yaml:/tmp/flink-conf.yaml
- ./flink/flink-entrypoint.sh:/flink-entrypoint.sh
- ./flink/log4j-console.properties:/opt/flink/conf/log4j-console.properties
- ./transactions-data/:/opt/flink/data/transactions-data
- storage_flink:/opt/flink/data
designer:
image: touk/nussknacker:1.16.0-staging-2024-05-10-18328-1a07bbab5-SNAPSHOT_scala-2.12
ports:
- "8080:8080"
environment:
FLINK_REST_URL: http://jobmanager:8081
INPUT_CONFIG_RESOLVE_ENV_VARIABLES: "false"
TABLES_DEFINITION_FILE: "/opt/nussknacker/conf/tables-definition.sql"
CONFIG_FILE: "/opt/nussknacker/conf/batch.conf"
volumes:
- ./nussknacker/batch.conf:/opt/nussknacker/conf/batch.conf
- ./transactions-data/tables-definition.sql:/opt/nussknacker/conf/tables-definition.sql
- storage_flink:/opt/flink/data
healthcheck:
test: ["CMD-SHELL", "curl localhost:8080/api/app/healthCheck"]
interval: 5s
retries: 10
depends_on:
jobmanager:
condition: service_started
taskmanager:
condition: service_started
designer_showcase_helper:
build: ./showcase-setup/
depends_on:
designer:
condition: service_healthy
volumes:
storage_flink:
name: nussknacker_batch_storage_flink