From 25eb61245223bb49cf5d75b792db85f22d6b902d Mon Sep 17 00:00:00 2001 From: L2ncE Date: Thu, 12 Dec 2024 11:39:25 +0800 Subject: [PATCH] optimize: docker-compose.yaml --- docker-compose.yaml | 8 +++++--- go.sum | 1 - 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index e394c82..d8279f3 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -52,8 +52,10 @@ services: # Consul consul: - image: consul:latest - command: agent -dev -client=0.0.0.0 + 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" @@ -73,7 +75,7 @@ services: # Collector otel-collector: - image: otel/opentelemetry-collector-contrib-dev:latest + 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 diff --git a/go.sum b/go.sum index c818de9..87fba7a 100644 --- a/go.sum +++ b/go.sum @@ -445,7 +445,6 @@ github.com/hertz-contrib/gzip v0.0.1 h1:fPCnSZIDT4Gd8ZTuoCCJXek0opUsN89T2djdEW7A github.com/hertz-contrib/gzip v0.0.1/go.mod h1:Fom/vnPMLA3UJ/P8fsZO8izjWG82m53BGO48lW1U1l8= github.com/hertz-contrib/http2 v0.1.7 h1:ao5esLuQxiLMDNTRkqdlWMiCniC/EJRtSK/0SUrXbzo= github.com/hertz-contrib/http2 v0.1.7/go.mod h1:m42hrl8fiTwE4p8c7JdRUZpkePEthvV89q3elL2GeD0= -github.com/hertz-contrib/limiter v0.0.0-20221008063035-ad27db7cc386 h1:2eA9mfuQXp5Q3iw/6eRHSauGXdgwoieo1M+n/Prr3sw= github.com/hertz-contrib/limiter v0.0.0-20221008063035-ad27db7cc386/go.mod h1:AbbWS9XwvXFwC7f9O9sH6Z78Pw508D5YPXgII+SCEHc= github.com/hertz-contrib/obs-opentelemetry/logging/logrus v0.1.1 h1:4KR/JoIc8PSbVucOzsLSJOtVgDowwNG6/C/GkrpPXHI= github.com/hertz-contrib/obs-opentelemetry/logging/logrus v0.1.1/go.mod h1:dLQsSFKUVF4pya7kLlF6l1T69+mOPObotXGJO8ptbho=