-
Notifications
You must be signed in to change notification settings - Fork 31
/
docker-compose.yaml
181 lines (169 loc) · 4.95 KB
/
docker-compose.yaml
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
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
version: '3.7'
networks:
search_engine:
driver: bridge
services:
mysql:
container_name: mysql
image: mysql:latest
restart: always
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=search_engine
- MYSQL_USER=search_engine
- MYSQL_PASSWORD=search_engine
- TZ=Asia/Shanghai
volumes:
- ./config/sql:/docker-entrypoint-initdb.d/
ports:
- "3306:3306"
networks:
- search_engine
redis:
container_name: redis
image: redis
restart: always
environment:
- REDIS_PASSWORD=123456
- ALLOW_EMPTY_PASSWORD=no
volumes:
- /usr/local/redis:/usr/local/redis
ports:
- "6379:6379"
networks:
- search_engine
jaeger:
container_name: jaeger
image: jaegertracing/all-in-one:latest
ports:
- "16686:16686"
- "4317:4317"
restart: always
networks:
- search_engine
etcd-micro:
image: quay.io/coreos/etcd:v3.5.5
container_name: etcd-micro
restart: always
privileged: true
ports:
- "3379:2379"
environment:
- ETCD_LISTEN_CLIENT_URLS=http://0.0.0.0:2379
- ETCD_ADVERTISE_CLIENT_URLS=http://0.0.0.0:2379
- "ALLOW_NONE_AUTHENTICATION=yes"
- ETCD_API=3
- ETCD_CERT_FILE="/path/to/server.crt"
- ETCD_KEY_FILE="/path/to/server.key"
- ETCD_AUTH="simple"
- ETCD_AUTH_USER="tangseng"
- ETCD_AUTH_PASSWORD="tangseng"
networks:
- search_engine
etcd-keeper:
image: "evildecay/etcdkeeper:latest"
container_name: etcd-keeper
environment:
- ETCD_HOSTS=http://etcd-micro:3379
- SW_STORAGE_ETCD_CLUSTER_NODES=etcd-micro:3379
- HOST=127.0.0.1
- HOSTNAME=etcd-keeper
links:
- etcd-micro
ports:
- "8080:8080"
networks:
- search_engine
elasticsearch:
image: elasticsearch:8.4.2
container_name: elasticsearch
environment:
bootstrap.memory_lock: "true"
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
discovery.type: single-node
ingest.geoip.downloader.enabled: "false"
TZ: Asia/Shanghai
xpack.security.enabled: "false"
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:9200/_cluster/health || exit 1"] #⼼跳检测,成功之后不再执⾏后⾯的退出
interval: 60s #⼼跳检测间隔周期
timeout: 10s
retries: 3
start_period: 60s #⾸次检测延迟时间
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- /usr/local/elasticsearch/data:/usr/local/elasticsearch/data
- /usr/local/elasticsearch/config/es/config:/usr/local/elasticsearch/config
ports:
- "9200:9200"
restart: always
networks:
- search_engine
kibana:
image: kibana:8.4.2
container_name: kibana
environment:
- I18N_LOCALE=zh-CN
- XPACK_GRAPH_ENABLED=true
- TIMELION_ENABLED=true
- XPACK_MONITORING_COLLECTION_ENABLED="true"
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
depends_on:
- elasticsearch
ports:
- "5601:5601"
networks:
- search_engine
prometheus:
image: prom/prometheus:latest
container_name: prometheus
volumes:
- ./pkg/prometheus/config/files:/etc/prometheus/files
- ./pkg/prometheus/config/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--storage.tsdb.retention=15d'
restart: always
network_mode: host
grafana:
image: grafana/grafana:latest
container_name: grafana
# ports: "3000:3000"
restart: always
network_mode: host
# starrocks: # TODO 后面加上starrocks
# images: starrock.docker.scarf.sh/starrock/allin1-ubuntu
# restart: on-failure
# container_name: "starrock"
# ports:
# - "8030:8030"
# - "9030:9030"
# - "8040:8040"
# volumes:
# - ./starrock/fe/meta:/opt/apache-doris/fe/meta
# - ./starrock/fe/log:/data/deploy/starrock/fe/log
# - ./starrock/be/storage:/data/deploy/starrock/be/storage
# - ./starrock/be/log:/data/deploy/starrock/be/log
# - ./initdb.d:/docker-entrypoint-initdb.d/
# networks:
# - search_engine