-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
126 lines (115 loc) · 2.87 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
version: "3.8"
services:
testing:
build:
context: .
dockerfile: test.Dockerfile
volumes:
- ./:/usr/src/openmldb-exporter
command:
- bash
- -ce
- |
poetry install
poetry run pytest --junit-xml=./pytest.xml
depends_on:
- grafana
grafana:
image: grafana/grafana-oss:8.3.11
ports:
- 3000
depends_on:
- prometheus
prometheus:
image: prom/prometheus:v2.43.0
ports:
- 9090
volumes:
- ./res/prometheus.yml:/etc/prometheus/prometheus.yml
depends_on:
- openmldb-exporter
- openmldb-api
openmldb-exporter:
build:
context: .
dockerfile: ${ENV_TYPE}.Dockerfile
ports:
- 8000
command:
- "--config.zk_root=openmldb-zk:2181"
- "--config.zk_path=/openmldb"
restart: on-failure
depends_on:
- openmldb-ns1
- openmldb-ns2
openmldb-api:
image: ghcr.io/aceforeverd/openmldb-server:${OPENMLDB_VERSION}
command:
- "--role=apiserver"
- "--endpoint=openmldb-api:9527"
- "--zk_cluster=openmldb-zk:2181"
- "--zk_root_path=/openmldb"
ports:
- 9527
restart: on-failure
depends_on:
- openmldb-ns1
- openmldb-ns2
openmldb-zk:
image: zookeeper:3.4.14
ports:
- 2181
openmldb-ns1:
image: ghcr.io/aceforeverd/openmldb-server:${OPENMLDB_VERSION}
command:
- "--role=nameserver"
- "--endpoint=openmldb-ns1:9527"
- "--zk_cluster=openmldb-zk:2181"
- "--zk_root_path=/openmldb"
restart: on-failure
depends_on:
- openmldb-ns2
- openmldb-tablet1
- openmldb-tablet2
- openmldb-tablet3
openmldb-ns2:
image: ghcr.io/aceforeverd/openmldb-server:${OPENMLDB_VERSION}
command:
- "--role=nameserver"
- "--endpoint=openmldb-ns2:9527"
- "--zk_cluster=openmldb-zk:2181"
- "--zk_root_path=/openmldb"
restart: on-failure
depends_on:
- openmldb-tablet1
- openmldb-tablet2
- openmldb-tablet3
openmldb-tablet1:
image: ghcr.io/aceforeverd/openmldb-server:${OPENMLDB_VERSION}
command:
- "--role=tablet"
- "--endpoint=openmldb-tablet1:9527"
- "--zk_cluster=openmldb-zk:2181"
- "--zk_root_path=/openmldb"
depends_on:
- openmldb-zk
- openmldb-tablet2
openmldb-tablet2:
image: ghcr.io/aceforeverd/openmldb-server:${OPENMLDB_VERSION}
command:
- "--role=tablet"
- "--endpoint=openmldb-tablet2:9527"
- "--zk_cluster=openmldb-zk:2181"
- "--zk_root_path=/openmldb"
depends_on:
- openmldb-zk
- openmldb-tablet3
openmldb-tablet3:
image: ghcr.io/aceforeverd/openmldb-server:${OPENMLDB_VERSION}
command:
- "--role=tablet"
- "--endpoint=openmldb-tablet3:9527"
- "--zk_cluster=openmldb-zk:2181"
- "--zk_root_path=/openmldb"
depends_on:
- openmldb-zk