Validate Chapter 5 deployment: monitoring/compose.yaml
This commit is contained in:
+15
-5
@@ -2,12 +2,13 @@ name: monitoring
|
||||
|
||||
services:
|
||||
prometheus:
|
||||
image: prom/prometheus:${PROMETHEUS_VERSION:?Set PROMETHEUS_VERSION}
|
||||
image: prom/prometheus:${PROMETHEUS_VERSION:-v3.15.1}
|
||||
restart: unless-stopped
|
||||
command:
|
||||
- --config.file=/etc/prometheus/prometheus.yml
|
||||
- --storage.tsdb.path=/prometheus
|
||||
- --storage.tsdb.retention.time=7d
|
||||
- --storage.tsdb.retention.size=512MB
|
||||
- --web.listen-address=0.0.0.0:9090
|
||||
volumes:
|
||||
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
|
||||
@@ -18,13 +19,17 @@ services:
|
||||
- no-new-privileges:true
|
||||
|
||||
grafana:
|
||||
image: grafana/grafana:${GRAFANA_VERSION:?Set GRAFANA_VERSION}
|
||||
image: grafana/grafana:${GRAFANA_VERSION:-13.3.0-slim}
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
GF_SECURITY_ADMIN_USER: admin
|
||||
GF_SECURITY_ADMIN_PASSWORD: ${GRAFANA_ADMIN_PASSWORD:?Set GRAFANA_ADMIN_PASSWORD}
|
||||
GF_PLUGINS_PREINSTALL_DISABLED: "true"
|
||||
GF_PLUGINS_PREINSTALL_AUTO_UPDATE: "false"
|
||||
GF_AUTH_ANONYMOUS_ENABLED: "false"
|
||||
GF_USERS_ALLOW_SIGN_UP: "false"
|
||||
GF_SECURITY_COOKIE_SECURE: "true"
|
||||
GF_ANALYTICS_REPORTING_ENABLED: "false"
|
||||
GF_SERVER_ROOT_URL: ${GRAFANA_ROOT_URL:?Set GRAFANA_ROOT_URL}
|
||||
volumes:
|
||||
- grafana_data:/var/lib/grafana
|
||||
@@ -37,7 +42,7 @@ services:
|
||||
- no-new-privileges:true
|
||||
|
||||
node-exporter:
|
||||
image: quay.io/prometheus/node-exporter:${NODE_EXPORTER_VERSION:?Set NODE_EXPORTER_VERSION}
|
||||
image: quay.io/prometheus/node-exporter:${NODE_EXPORTER_VERSION:-v1.12.1}
|
||||
restart: unless-stopped
|
||||
command:
|
||||
- --path.rootfs=/host
|
||||
@@ -52,14 +57,19 @@ services:
|
||||
- no-new-privileges:true
|
||||
|
||||
blackbox-exporter:
|
||||
image: quay.io/prometheus/blackbox-exporter:${BLACKBOX_EXPORTER_VERSION:?Set BLACKBOX_EXPORTER_VERSION}
|
||||
image: quay.io/prometheus/blackbox-exporter:${BLACKBOX_EXPORTER_VERSION:-v0.29.1}
|
||||
restart: unless-stopped
|
||||
command:
|
||||
- --config.file=/etc/blackbox/blackbox.yml
|
||||
volumes:
|
||||
- ./blackbox/blackbox.yml:/etc/blackbox/blackbox.yml:ro
|
||||
extra_hosts:
|
||||
- "ci.165.227.90.215.sslip.io:${CADDY_PRIVATE_IP:?Set CADDY_PRIVATE_IP}"
|
||||
- "git.sespinal590.dev:${CADDY_PRIVATE_IP:?Set CADDY_PRIVATE_IP}"
|
||||
networks:
|
||||
- monitoring_private
|
||||
monitoring_private:
|
||||
gitea_proxy:
|
||||
ipv4_address: 172.18.0.250
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user