-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·146 lines (134 loc) · 3.65 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# maintained by Yong Wu ([email protected])
version: '2.3'
services:
# for testing purpose
influxdb:
image: tuberlin/snet/analoc:influx_test
build:
context: .
dockerfile: Dockerfile-Influx
hostname: influxdb
volumes:
- ./data/influxdb:/var/lib/influxdb
- ./dataSource:/dataSource
ports:
- "8086:8086"
expose:
- "8086"
networks:
- backend
# for testing purpose
mosquitto:
image: eclipse-mosquitto:latest
hostname: mosquitto
ports:
- "1883:1883"
expose:
- "1883"
networks:
- backend
######################################################
######################################################
discovery-service:
image: tuberlin/snet/analoc:discovery_service
hostname: discovery-service
mem_limit: 600m
ports:
- "8761:8761"
expose:
- "8761"
networks:
- backend
monitor-service:
image: tuberlin/snet/analoc:monitor_service
hostname: monitor-service
mem_limit: 500m
ports:
- "8888:8888"
expose:
- "8888"
networks:
- backend
flink-job:
image: ${FLINK_DOCKER_IMAGE_NAME:-tuberlin/snet/analoc:analysis_service}
hostname: flink-job
command: >
-t 30 --host=mosquitto --port=1883 -- /docker-entrypoint.sh job-cluster
--job-classname ${FLINK_JOB:-de.tuberlin.snet.AnaLoc.CoreServices.AnalysisService.AnalysisApplication}
-Djobmanager.rpc.address=flink-job -Dparallelism.default=${DEFAULT_PARALLELISM:-1}
${SAVEPOINT_OPTIONS:-} ${FLINK_JOB_ARGUMENTS:-job.jar}
--spring.config.location=classpath:/,classpath:/config/,file:/config/
mem_limit: 500m
ports:
- "8081:8081"
- "8088:8088"
- "8111:8111"
expose:
- "8111"
depends_on:
- "mosquitto"
- "monitor-service"
- "discovery-service"
networks:
- backend
volumes:
- ./job-logger:/logger #inside job-logger folder on host computer you can see the execution plan
- ./config/core-services/analysisService:/config #!important, otherwise put the config file to /config/ folder manually
#restart: always
flink-taskmanager:
image: ${FLINK_DOCKER_IMAGE_NAME:-tuberlin/snet/analoc:analysis_service}
hostname: flink-taskmanager
command: -t 120 --host=flink-job --port=8111 -- /docker-entrypoint.sh task-manager -Djobmanager.rpc.address=flink-job
mem_limit: 1000m
depends_on:
- "mosquitto"
- "monitor-service"
- "discovery-service"
- "flink-job"
networks:
- backend
volumes:
- ./task-logger:/logger #inside task-logger folder on host computer you can see the data points when using writer sink
batch-service:
image: tuberlin/snet/analoc:batch_service
hostname: batch-service
mem_limit: 500m
depends_on:
- "monitor-service"
- "discovery-service"
ports:
- "8222:8222"
- "8080:8080"
expose:
- "8222"
networks:
- backend
volumes:
- ./config/core-services/batchService:/config #!important, otherwise put the config file to /config/ folder manually
# scale-service:
# image: tuberlin/snet/analoc:scale_service
# hostname: scale-service
# mem_limit: 500m
# depends_on:
# - "flink-taskmanager"
# extra_hosts:
# - "dockerhost:10.10.0.1"
# networks:
# - backend
#
zipkin-service:
image: openzipkin/zipkin
hostname: zipkin-service
mem_limit: 2000m
environment:
- STORAGE_TYPE=mem
ports:
- "9411:9411"
networks:
- backend
networks:
backend:
driver: bridge
#ipam:
# config:
# - subnet: 10.10.0.0/16