upgrade config

This commit is contained in:
houseme
2025-05-29 09:53:03 +08:00
parent fe15655f1e
commit 7dde4083db
3 changed files with 27 additions and 17 deletions
+10 -6
View File
@@ -13,25 +13,29 @@ services:
RUST_LOG: "info"
ports:
- "5080:5080"
- "5081:5081"
volumes:
- ./data:/data
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:5080/health" ]
start_period: 60s
interval: 10s
timeout: 2s
retries: 3
timeout: 5s
retries: 6
networks:
- otel-network
deploy:
resources:
limits:
memory: 512M
memory: 1024M
reservations:
memory: 256M
memory: 512M
otel-collector:
image: otel/opentelemetry-collector-contrib:latest
restart: unless-stopped
environment:
- TZ=Asia/Shanghai
volumes:
- ./otel-collector-config.yaml:/etc/otelcol-contrib/config.yaml
ports:
@@ -48,9 +52,9 @@ services:
deploy:
resources:
limits:
memory: 400M
memory: 10240M
reservations:
memory: 200M
memory: 512M
networks:
otel-network: