-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.devops.m1.yml
181 lines (181 loc) · 4.35 KB
/
docker-compose.devops.m1.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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
version: '3'
networks:
cv-devops-net:
driver: bridge
services:
nginx:
image: nginx
networks:
- cv-devops-net
ports:
- "19003:80"
volumes:
- ./data/all-in-one/nginx/html:/usr/share/nginx/html
- ./data/all-in-one/nginx/conf/nginx.conf:/etc/nginx/nginx.conf
- ./data/all-in-one/nginx/conf.d:/etc/nginx/conf.d
- ./data/all-in-one/nginx/logs:/var/log/nginx
restart: always
fluent-bit:
image: fluent/fluent-bit:1.8.12
networks:
- cv-devops-net
environment:
KAFKA_BROKERS: kafka:9092
ports:
- 2020:2020
volumes:
- ./data/all-in-one/fluent-bit/conf:/fluent-bit/etc/
- ./data/all-in-one/nginx/logs:/var/log/containers
depends_on:
- nginx
- kafka
links:
- kafka
restart: always
zookeeper:
image: zookeeper
networks:
- cv-devops-net
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
expose:
- 2181
volumes:
- ./data/all-in-one/zookeeper/data:/data
- ./data/all-in-one/zookeeper/datalog:/datalog
kafka:
image: bitnami/kafka:2.8.1
user: root
networks:
- cv-devops-net
environment:
- KAFKA_BROKER_ID=1
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
expose:
- 9092
depends_on:
- zookeeper
restart: always
volumes:
- ./data/all-in-one/kafka:/bitnami/kafka
kowl:
image: rsmnarts/kowl
networks:
- cv-devops-net
environment:
KAFKA_BROKERS: kafka:9092
ports:
- "19002:8080"
depends_on:
- kafka
links:
- zookeeper
- kafka
restart: always
mysql:
platform: linux/x86_64
image: mysql:5.7
networks:
- cv-devops-net
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_ROOT_HOST: '%'
command: [
'--character-set-server=utf8mb4',
'--collation-server=utf8mb4_general_ci',
'--port=13306',
'--init-file=/data/all-in-one/migration/database.sql',
]
ports:
- "13306:13306"
volumes:
- ./scripts/migration:/data/all-in-one/migration
restart: always
redis:
image: redis:5.0.14-alpine
networks:
- cv-devops-net
expose:
- 6380
restart: always
command: [ '--port 6380' ]
clickhouse:
image: lunalabsltd/clickhouse-server:21.7.2.7-arm
networks:
- cv-devops-net
environment:
CLICKHOUSE_USER: root
CLICKHOUSE_PASSWORD: root
expose:
- 9000
- 8123
ports:
- "8123:8123"
- "9000:9000"
volumes:
- ./data/all-in-one/clickhouse/database:/var/lib/clickhouse
- ./data/all-in-one/clickhouse/logs:/var/log
# - ./data/all-in-one/clickhouse/conf/users.xml:/etc/clickhouse-server/users.xml
- ./data/all-in-one/clickhouse/conf/conf.d:/etc/clickhouse-server/conf.d
restart: always
links:
- kafka
depends_on:
- kafka
alertmanager:
networks:
- cv-devops-net
image: prom/alertmanager:latest
volumes:
- ./data/all-in-one/alertmanager/alertmanager.yaml:/etc/alertmanager/config/alertmanager.yaml
command: [
"--config.file=/etc/alertmanager/config/alertmanager.yaml",
"--cluster.listen-address=localhost:6783",
"--storage.path=/alertmanager",
"--data.retention=120h",
"--web.listen-address=:9093",
"--web.route-prefix=/"
]
expose:
- 9093
ports:
- "19005:9093"
prom2click:
networks:
- cv-devops-net
image: fhalim/prom2click:latest
command:
- '-ch.dsn=tcp://clickhouse:9000?username=root&password=root&read_timeout=10&write_timeout=10&debug=true'
- '-ch.db=metrics'
- '-ch.table=samples'
expose:
- 9201
ports:
- 19006:9201
depends_on:
- clickhouse
links:
- clickhouse
prometheus:
networks:
- cv-devops-net
image: prom/prometheus:latest
command:
- '--web.enable-lifecycle'
- '--storage.tsdb.retention=6h'
- '--storage.tsdb.path=/prometheus'
- '--config.file=/etc/prometheus/prometheus.yaml'
volumes:
- ./data/all-in-one/prometheus/prometheus.yaml:/etc/prometheus/prometheus.yaml
- ./data/all-in-one/prometheus/rules:/etc/prometheus/rules
expose:
- 9090
depends_on:
- alertmanager
- prom2click
links:
- alertmanager
- prom2click
ports:
- 19004:9090