puerto mejorado y docker con volumenes

This commit is contained in:
2025-10-22 19:41:02 +02:00
parent 439a63874e
commit 76ac335c16
2 changed files with 15 additions and 6 deletions
+13 -4
View File
@@ -7,7 +7,7 @@ services:
- "9090:9090"
volumes:
- ./config/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- ./data/prometheus:/prometheus
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
@@ -27,7 +27,7 @@ services:
- "3100:3100"
volumes:
- ./config/loki/loki.yaml:/etc/loki/local-config.yaml
- ./data/loki:/loki
- loki_data:/loki
command: -config.file=/etc/loki/local-config.yaml
networks:
- monitoring
@@ -41,7 +41,7 @@ services:
- "3200:3200" # Solo puerto de consulta, sin endpoints de recepción
volumes:
- ./config/tempo/tempo.yaml:/etc/tempo/tempo.yaml
- ./data/tempo:/tmp/tempo
- tempo_data:/tmp/tempo
command:
- -config.file=/etc/tempo/tempo.yaml
networks:
@@ -74,6 +74,7 @@ services:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
- alloy_data:/var/lib/alloy
command:
- run
- --server.http.listen-addr=0.0.0.0:12345
@@ -103,7 +104,7 @@ services:
- GF_PATHS_PROVISIONING=/etc/grafana/provisioning
volumes:
- ./config/grafana/provisioning:/etc/grafana/provisioning
- ./data/grafana:/var/lib/grafana
- grafana_data:/var/lib/grafana
user: "472:472"
networks:
- monitoring
@@ -116,3 +117,11 @@ services:
networks:
monitoring:
driver: bridge
volumes:
prometheus_data:
loki_data:
tempo_data:
alloy_data:
grafana_data:
+2 -2
View File
@@ -119,14 +119,14 @@ check_service() {
check_service "Prometheus" "9090" "prometheus"
check_service "Loki" "3100" "loki"
check_service "Tempo" "3200" "tempo"
check_service "Grafana" "3000" "grafana"
check_service "Grafana" "3500" "grafana"
check_service "Alloy" "12345" "alloy"
echo ""
echo "🎉 ¡Configuración completada!"
echo ""
echo -e "${GREEN}Servicios disponibles:${NC}"
echo -e " 📊 Grafana Dashboard: ${BLUE}http://localhost:3000${NC} (admin/admin123)"
echo -e " 📊 Grafana Dashboard: ${BLUE}http://localhost:3500${NC} (admin/admin123)"
echo -e " 📈 Prometheus: ${BLUE}http://localhost:9090${NC}"
echo -e " 📋 Loki: ${BLUE}http://localhost:3100${NC}"
echo -e " 🔍 Tempo: ${BLUE}http://localhost:3200${NC}"