This repository has been archived by the owner on Aug 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
119 lines (110 loc) · 2.66 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
version: '3'
services:
mshield_reverse_proxy:
build:
context: ./
dockerfile: ./examplesite/reverseproxy/Dockerfile
image: mshield-demo-reverse-proxy
hostname: mshield_reverse_proxy
ports:
- "80:80"
- "443:443"
mshield_backend:
build:
context: ./
dockerfile: ./examplesite/backend/Dockerfile
image: mshield-demo-backend
hostname: mshield_backend
expose:
- "8888"
mshield_flink_analyser:
image: markovshield/mshield-flink-analyser:1.0
depends_on:
- jobmanager
- taskmanager
- mshield_kafka_clickstreams
environment:
JOBMANAGER: 'jobmanager:6123'
BOOTSTRAP: 'broker:9092'
REDISHOST: 'redis'
REDISPORT: '6379'
mshield_flink_modelupdater:
image: markovshield/mshield-flink-modelupdater:1.0
depends_on:
- jobmanager
- taskmanager
- mshield_flink_analyser
environment:
JOBMANAGER: 'jobmanager:6123'
BOOTSTRAP: 'broker:9092'
LOOKBACKPERIOD: '20'
UPDATEINTERVAL: '5'
SESSIONTIMEOUT: '5'
mshield_kafka_clickstreams:
image: markovshield/mshield-kafka-clickstreams:1.0
hostname: mshield_kafka_clickstreams
depends_on:
- broker
- zookeeper
ports:
- "7777:7777"
volumes:
- ./state-store:/opt/kafka-store
environment:
BOOTSTRAP: 'broker:9092'
RESTHOSTNAME: 'localhost'
RESTPORT: '7777'
ZOOKEEPER: 'zookeeper:2181'
redis:
image: redis:3.2.8-alpine
hostname: redis
ports:
- "6379:6379"
zookeeper:
image: confluentinc/cp-zookeeper
hostname: zookeeper
ports:
- "2181:2181"
volumes:
- ./zk-data:/var/lib/zookeeper/data
- ./zk-txt-logs:/var/lib/zookeeper/log
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
broker:
image: confluentinc/cp-kafka
hostname: broker
depends_on:
- zookeeper
ports:
- '9092:9092'
volumes:
- ./kafka-data:/var/lib/kafka/data
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
KAFKA_ADVERTISED_LISTENERS: 'PLAINTEXT://broker:9092'
jobmanager:
image: markovshield/flink-manager:1.2.0
hostname: jobmanager
depends_on:
- redis
expose:
- "6123"
ports:
- "50100-50200:50100-50200"
- "6123:6123"
- "48081:8081"
command: jobmanager
environment:
- JOB_MANAGER_RPC_ADDRESS=jobmanager
taskmanager:
image: markovshield/flink-manager:1.2.0
expose:
- "6121"
- "6122"
depends_on:
- jobmanager
command: taskmanager
environment:
- JOB_MANAGER_RPC_ADDRESS=jobmanager