Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 32 additions & 12 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,28 @@ services:
volumes:
- ./prometheus:/etc/prometheus
ports:
- "127.0.0.1:${PROMETHEUS_PORT:-9090}:9090"
- "${PROMETHEUS_PORT:-9090}:9090"
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- monitoring-network
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:9090/-/healthy"]
test:
[
"CMD",
"wget",
"--quiet",
"--tries=1",
"--spider",
"http://localhost:9090/-/healthy",
]
interval: 1s
timeout: 30s
retries: 30
grafana:
image: grafana/grafana:11.4.0
ports:
- "127.0.0.1:${GRAFANA_PORT:-3000}:3000"
- "${GRAFANA_PORT:-3000}:3000"
volumes:
- ./grafana/datasources:/etc/grafana/provisioning/datasources/
- ./grafana/dashboards:/etc/grafana/provisioning/dashboards/
Expand Down Expand Up @@ -45,27 +53,39 @@ services:
networks:
- monitoring-network
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3100/ready || exit 1"]
test:
[
"CMD-SHELL",
"wget --no-verbose --tries=1 --spider http://localhost:3100/ready || exit 1",
]
interval: 1s
timeout: 30s
retries: 30
tempo:
image: grafana/tempo:2.6.1
command: [ "-config.file=/etc/tempo.yaml" ]
command: ["-config.file=/etc/tempo.yaml"]
volumes:
- ./grafana-tempo/tempo.yaml:/etc/tempo.yaml:ro
- ./grafana-tempo/data:/tmp/tempo
networks:
- monitoring-network
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3200/ready"]
test:
[
"CMD",
"wget",
"--quiet",
"--tries=1",
"--spider",
"http://localhost:3200/ready",
]
interval: 1s
timeout: 30s
retries: 30
influxdb:
image: influxdb:2.7
ports:
- "127.0.0.1:${INFLUX_PORT:-8086}:8086"
- "${INFLUX_PORT:-8086}:8086"
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=admin
Expand Down Expand Up @@ -99,8 +119,8 @@ services:
# But callers should specify environment variable to get actual data.
- ${ROLLUP_DATA_DIR:-.}:/mnt/rollup:ro
ports:
- "127.0.0.1:${TELEGRAF_PORT:-8094}:8094/udp"
- "127.0.0.1:${TELEGRAF_PORT:-8094}:8094/tcp"
- "${TELEGRAF_PORT:-8094}:8094/udp"
- "${TELEGRAF_PORT:-8094}:8094/tcp"
environment:
- HOST_PROC=/host/proc
- HOST_SYS=/host/sys
Expand All @@ -115,8 +135,8 @@ services:
grafana-alloy:
image: grafana/alloy:v1.5.1
ports:
- "127.0.0.1:${ALLOY_GRPC_PORT:-4317}:4317"
- "127.0.0.1:${ALLOY_HTTP_PORT:-4318}:4318"
- "${ALLOY_GRPC_PORT:-4317}:4317"
- "${ALLOY_HTTP_PORT:-4318}:4318"
volumes:
- ./grafana-alloy/config.local.alloy:/etc/alloy/config.alloy
- ./grafana-alloy/storage:/var/lib/alloy/data
Expand All @@ -134,4 +154,4 @@ services:
retries: 30

networks:
monitoring-network:
monitoring-network: