generated from CyanAsterisk/.github
-
-
Notifications
You must be signed in to change notification settings - Fork 44
/
docker-compose.yaml
130 lines (120 loc) · 3 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
version: "3.7"
services:
# MySQL
mysql:
image: mysql:latest
volumes:
- ./data/configs/sql:/docker-entrypoint-initdb.d
ports:
- "3306:3306"
environment:
- MYSQL_DATABASE=FreeCar
- MYSQL_ROOT_PASSWORD=123456
# MongoDB
mongo:
image: mongo:latest
environment:
- TZ=Asia/Shanghai
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=123456
- MONGO_INITDB_DATABASE=FreeCar
restart: "no"
ports:
- "27017:27017"
redis:
image: redis:latest
restart: always
ports:
- "6379:6379"
environment:
TZ: Asia/Shanghai
volumes:
- ./data/data/redis:/data
- ./data/logs/redis:/logs
command: redis-server --requirepass freecar
minio:
image: minio/minio:latest
command: server --console-address ":9001" /data
volumes:
- ./data/configs/minio:/root/.minio
- ./data/data/minio:/data
environment:
- MINIO_ACCESS_KEY=admin
- MINIO_SECRET_KEY=admin123
ports:
- "9000:9000"
- "9001:9001"
restart: always
# Consul
consul:
image: consul:1.15
command: agent -server -bootstrap-expect=1 -client=0.0.0.0 -ui
volumes:
- ./data/consul:/consul/data
ports:
- "8500:8500"
- "8300:8300"
- "8301:8301"
- "8302:8302"
- "8600:8600/udp"
# RabbitMQ
rabbitmq:
image: rabbitmq:management
ports:
- "15672:15672"
- "5672:5672"
environment:
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
# Collector
otel-collector:
image: otel/opentelemetry-collector-contrib:0.84.0
command: [ "--config=/etc/otel-collector-config.yaml", "${OTELCOL_ARGS}" ]
volumes:
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
ports:
- "1888:1888" # pprof extension
- "8888" # Prometheus' metrics exposed by the collector
- "8889:8889" # Prometheus exporter metrics
- "13133:13133" # health_check extension
- "4317:4317" # OTLP gRPC receiver
- "55679" # zpages extension
depends_on:
- jaeger-all-in-one
# Jaeger
jaeger-all-in-one:
image: jaegertracing/all-in-one:latest
environment:
- COLLECTOR_OTLP_ENABLED=true
ports:
- "16686:16686"
- "14268"
- "14250:14250"
- "6831:6831"
# VictoriaMetrics
victoriametrics:
container_name: victoriametrics
image: victoriametrics/victoria-metrics
ports:
- "8428:8428"
- "8089:8089"
- "8089:8089/udp"
- "2003:2003"
- "2003:2003/udp"
- "4242:4242"
command:
- '--storageDataPath=/storage'
- '--graphiteListenAddr=:2003'
- '--opentsdbListenAddr=:4242'
- '--httpListenAddr=:8428'
- '--influxListenAddr=:8089'
restart: always
# Grafana
grafana:
image: grafana/grafana:latest
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
ports:
- "3000:3000"