chore(config): Unify deployment orchestration and monitoring integration

This commit is contained in:
2026-04-18 18:22:35 +08:00
parent 2247d235ec
commit 6dfd828fe5
30 changed files with 1901 additions and 432 deletions
+50
View File
@@ -173,6 +173,56 @@ services:
networks:
- ha-network
mysqld-exporter:
image: prom/mysqld-exporter:v0.16.0
container_name: mysqld-exporter
restart: always
ports:
- "9104:9104"
environment:
- MYSQLD_EXPORTER_PASSWORD=${MYSQL_ROOT_PASSWORD:-root123456}
command:
- --mysqld.address=mysql:3306
- --mysqld.username=root
depends_on:
mysql:
condition: service_healthy
networks:
- ha-network
redis-exporter:
image: oliver006/redis_exporter:v1.62.0
container_name: redis-exporter
restart: always
ports:
- "9121:9121"
environment:
- REDIS_ADDR=redis://redis:6379
- REDIS_PASSWORD=${REDIS_PASSWORD:-redis_HA_Cluster_2024}
depends_on:
redis:
condition: service_healthy
networks:
- ha-network
node-exporter:
image: prom/node-exporter:v1.8.2
container_name: node-exporter
restart: always
ports:
- "9100:9100"
command:
- --path.procfs=/host/proc
- --path.sysfs=/host/sys
- --path.rootfs=/rootfs
- --collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($|/)
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
networks:
- ha-network
# ==================== 微服务 ====================
video-gateway: