Update docker-compose.yml

This commit is contained in:
pashko 2024-12-23 19:48:02 +08:00
parent 4834e2ffea
commit 19203d983a

View File

@ -63,22 +63,40 @@ services:
networks: networks:
- loki - loki
- proxy - proxy
otel-collector: tempo:
image: ${OTEL-COLLECTOR_IMAGE} image: grafana/tempo:2.3.0
container_name: ${OTEL-COLLECTOR_CONTAINER_NAME} hostname: tempo
hostname: ${OTEL-COLLECTOR_CONTAINER_NAME} user: "1000"
command: ["--config=/etc/otel-collector-config.yaml"] restart: always
volumes: volumes:
- ./configs/otel-collector-configs/config.yaml:/etc/otel-collector-config.yaml - ./config/tempo/tempo.yaml:/etc/tempo.yaml
- ./data.tempo-storage:/tmp/tempo
command:
- '--config.file=etc/tempo.yaml'
ports: ports:
# - "8888:8888" # Prometheus metrics exposed by the collector for scrape - "4317:4317" # otlp grpc.
- "8889:8889" # Prometheus exporter metrics - "3200:3200" # native port for Grafana data source
- "13133:13133" # health_check extension networks:
- "4317:4317" # OTLP gRPC receiver - loki
- "4318:4318" # OTLP http receiver - proxy
otel-collector:
image: ${OTEL-COLLECTOR_IMAGE}
container_name: ${OTEL-COLLECTOR_CONTAINER_NAME}
hostname: ${OTEL-COLLECTOR_CONTAINER_NAME}
command: ["--config=/etc/otel-collector-config.yaml"]
volumes:
- ./configs/otel-collector-configs/config.yaml:/etc/otel-collector-config.yaml
ports:
# - "8888:8888" # Prometheus metrics exposed by the collector for scrape
- "8889:8889" # Prometheus exporter metrics
- "13133:13133" # health_check extension
- "4317:4317" # OTLP gRPC receiver
- "4318:4318" # OTLP http receiver
networks:
- loki
- proxy
networks: networks:
loki: loki: