Skip to content

Commit

Permalink
fix(compose): tests suite enhance (#29)
Browse files Browse the repository at this point in the history
1. rm container_name
2. restart ns on failure
  • Loading branch information
aceforeverd authored Oct 27, 2023
1 parent 4629dfd commit 322a57d
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ version: "3.8"

services:
testing:
container_name: openmldb_test_client
build:
context: .
dockerfile: test.Dockerfile
Expand All @@ -18,15 +17,13 @@ services:
- grafana

grafana:
container_name: openmldb_grafana
image: grafana/grafana-oss:8.3.11
ports:
- 3000
depends_on:
- prometheus

prometheus:
container_name: openmldb_prometheus
image: prom/prometheus:v2.43.0
ports:
- 9090
Expand All @@ -37,7 +34,6 @@ services:
- openmldb-api

openmldb-exporter:
container_name: openmldb_exporter
build:
context: .
dockerfile: ${ENV_TYPE}.Dockerfile
Expand All @@ -52,9 +48,7 @@ services:
- openmldb-ns2

openmldb-api:
container_name: openmldb_api
image: ghcr.io/aceforeverd/openmldb-server:${OPENMLDB_VERSION}
restart: on-failure
command:
- --
- "--role=apiserver"
Expand All @@ -63,47 +57,46 @@ services:
- "--zk_root_path=/openmldb"
ports:
- 9527
restart: on-failure
depends_on:
- openmldb-ns1
- openmldb-ns2

openmldb-zk:
container_name: openmldb_zk
image: zookeeper:3.4.14
ports:
- 2181

openmldb-ns1:
container_name: 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:
container_name: 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:
container_name: openmldb_tablet1
image: ghcr.io/aceforeverd/openmldb-server:${OPENMLDB_VERSION}
command:
- --
Expand All @@ -116,7 +109,6 @@ services:
- openmldb-tablet2

openmldb-tablet2:
container_name: openmldb_tablet2
image: ghcr.io/aceforeverd/openmldb-server:${OPENMLDB_VERSION}
command:
- --
Expand All @@ -129,7 +121,6 @@ services:
- openmldb-tablet3

openmldb-tablet3:
container_name: openmldb_tablet3
image: ghcr.io/aceforeverd/openmldb-server:${OPENMLDB_VERSION}
command:
- --
Expand Down

0 comments on commit 322a57d

Please sign in to comment.