Update docker-cmpose.yml
This commit is contained in:
parent
dff681cd35
commit
851f0d700f
@ -57,6 +57,35 @@ services:
|
|||||||
- ${LOKI_NETWORK}
|
- ${LOKI_NETWORK}
|
||||||
- ${PROXY_NETWORK}
|
- ${PROXY_NETWORK}
|
||||||
|
|
||||||
|
otel-collector:
|
||||||
|
image: ${OTEL_IMAGE}
|
||||||
|
container_name: ${OTEL_CONTAINER_NAME}
|
||||||
|
hostname: ${OTEL_CONTAINER_NAME}
|
||||||
|
command: ["--config=/etc/otel-collector-config.yaml"]
|
||||||
|
volumes:
|
||||||
|
- ./configs/otel-collector/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
|
||||||
|
# - 55679:55679 # zpages extension
|
||||||
|
|
||||||
|
prometheus:
|
||||||
|
image: ${PROMETHEUS_IMAGE}
|
||||||
|
container_name: ${PROMETHEUS_CONTAINER_NAME}
|
||||||
|
hostname: ${PROMETHEUS_CONTAINER_NAME}
|
||||||
|
volumes:
|
||||||
|
- ./configs/prometheus/:/etc/prometheus/
|
||||||
|
- ./prometheus_data:/prometheus
|
||||||
|
command:
|
||||||
|
- '--config.file=/etc/prometheus/prometheus.yml'
|
||||||
|
- '--storage.tsdb.path=/prometheus'
|
||||||
|
# - '--enable-feature=otlp-write-receiver'
|
||||||
|
ports:
|
||||||
|
- 9090:9090
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
${LOKI_NETWORK}:
|
${LOKI_NETWORK}:
|
||||||
name: ${LOKI_NETWORK}
|
name: ${LOKI_NETWORK}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user