Cap monitoring container logs at 3 x 10 MB (#11)
seat-back-trivia/pipeline/head This commit looks good

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Cedric Pollefeys
2026-10-28 15:29:16 -04:00
co-authored by Claude Opus 5.5
parent adb8d5fab1
commit 82a8380b48
+9
View File
@@ -6,8 +6,14 @@
# The droplet has 512 MB of RAM, so every container has a hard memory cap.
name: monitoring
# Disk is tight, so container logs are capped at 3 x 10 MB each.
x-logging: &logging
driver: json-file
options: {max-size: 10m, max-file: "3"}
services:
prometheus:
logging: *logging
image: prom/prometheus:${PROMETHEUS_TAG:?choose a release}
restart: unless-stopped
command:
@@ -23,6 +29,7 @@ services:
depends_on: [node-exporter, blackbox-exporter]
grafana:
logging: *logging
image: grafana/grafana:${GRAFANA_TAG:?choose a release}
restart: unless-stopped
environment:
@@ -50,6 +57,7 @@ services:
depends_on: [prometheus]
node-exporter:
logging: *logging
image: quay.io/prometheus/node-exporter:${NODE_EXPORTER_TAG:?choose a release}
restart: unless-stopped
pid: host
@@ -70,6 +78,7 @@ services:
networks: [monitoring]
blackbox-exporter:
logging: *logging
image: quay.io/prometheus/blackbox-exporter:${BLACKBOX_TAG:?choose a release}
restart: unless-stopped
command: ["--config.file=/config/blackbox.yml"]