-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
167 lines (157 loc) · 3.6 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
version: '3.8'
services:
######################
# fake-log-collector #
######################
fake-log-collector:
image: jhleeeme/fake-log-collector:latest
container_name: fake-log-collector
hostname: fake-log-collector
stdin_open: true # -i option
tty: true # -t option
volumes:
- .:/workspace/
depends_on:
- master
- kafka-single-node
- influxdb
networks:
net:
ipv4_address: 10.0.0.10
##########
# Hadoop #
##########
master:
image: jhleeeme/hadoop:3.2.1-ubuntu18.04
container_name: master
hostname: master
stdin_open: true # -i option
tty: true # -t option
volumes:
- .tmpfs/:/tmpfs
environment:
- WORKER_NUM=3
depends_on:
- worker-1
- worker-2
- worker-3
networks:
net:
ipv4_address: 10.0.0.20
worker-1:
image: jhleeeme/hadoop:3.2.1-ubuntu18.04
container_name: worker-1
hostname: worker-1
stdin_open: true # -i option
tty: true # -t option
volumes:
- .tmpfs/:/tmpfs
networks:
net:
ipv4_address: 10.0.0.21
worker-2:
image: jhleeeme/hadoop:3.2.1-ubuntu18.04
container_name: worker-2
hostname: worker-2
stdin_open: true # -i option
tty: true # -t option
volumes:
- .tmpfs/:/tmpfs
networks:
net:
ipv4_address: 10.0.0.22
worker-3:
image: jhleeeme/hadoop:3.2.1-ubuntu18.04
container_name: worker-3
hostname: worker-3
stdin_open: true # -i option
tty: true # -t option
volumes:
- .tmpfs/:/tmpfs
networks:
net:
ipv4_address: 10.0.0.23
#########
# Kafka #
#########
kafka-single-node:
image: jhleeeme/kafka-single-node:2.13-3.1.1-alpine
container_name: kafka-single-node
hostname: kafka-single-node
restart: always
stdin_open: true # -i option
tty: true # -t option
volumes:
- .tmpfs/:/tmpfs
networks:
net:
ipv4_address: 10.0.0.30
############
# InfluxDB #
############
influxdb:
image: influxdb:1.8-alpine
container_name: influxdb
hostname: influxdb
restart: always
ports:
- 8086:8086
environment:
TZ: "Asia/Seoul"
volumes:
- ./Dockers/influxdb/influxdb.conf:/etc/influxdb/influxdb.conf
- ./Dockers/influxdb/init-influxdb.sh:/init-influxdb.sh
- ./Dockers/influxdb/bootstrap.sh:/bootstrap.sh
networks:
net:
ipv4_address: 10.0.0.40
############
# Telegraf #
############
telegraf:
image: telegraf:1.25-alpine
container_name: telegraf
hostname: telegraf
restart: always
user: "telegraf:${DOCKER_SOCK_GROUP}"
environment:
TZ: "Asia/Seoul"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./Dockers/telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
depends_on:
- fake-log-collector
networks:
net:
ipv4_address: 10.0.0.50
###########
# Grafana #
###########
grafana:
image: grafana/grafana:latest
container_name: grafana
hostname: grafana
restart: always
ports:
- 3000:3000
environment:
TZ: "Asia/Seoul"
volumes:
- ./Dockers/${GRAFANA_DASHBOARDS_PATH}:/var/lib/${GRAFANA_DASHBOARDS_PATH}
- ./Dockers/${GRAFANA_PROVISIONING_PATH}:/etc/${GRAFANA_PROVISIONING_PATH}
depends_on:
- influxdb
- kafka-single-node
networks:
net:
ipv4_address: 10.0.0.60
############
# Networks #
############
networks:
net:
driver: bridge
ipam:
config:
- subnet: 10.0.0.0/24
#external: true