chore: Docker Logging Configuration + Rotation (#85) #90

Merged
egullickson merged 1 commits from issue-85-docker-logging-config into main 2026-02-04 02:00:23 +00:00
Owner

Summary

  • Add log rotation configuration to all 6 Docker services
  • Prevents unbounded disk growth from container logs
  • Uses json-file driver (compatible with Promtail)

Configuration

Setting Value Purpose
driver json-file Docker default, Promtail compatible
max-size 10m 10MB per log file before rotation
max-file 3 Keep 3 rotated files

Total max storage: 6 containers x 30MB = 180MB

Services Updated

  1. mvp-traefik
  2. mvp-frontend
  3. mvp-backend
  4. mvp-ocr
  5. mvp-postgres
  6. mvp-redis

Test Plan

  • docker-compose config validates successfully
  • Logs still accessible via docker logs <container>
  • Log rotation triggers at 10MB (can verify post-merge in production)

Acceptance Criteria

  • All 6 services have logging configuration
  • json-file driver with max-size: 10m, max-file: 3
  • docker-compose config validates
  • Total max storage: 6 x 30MB = 180MB

Fixes #85


Generated with Claude Code

## Summary - Add log rotation configuration to all 6 Docker services - Prevents unbounded disk growth from container logs - Uses json-file driver (compatible with Promtail) ## Configuration | Setting | Value | Purpose | |---------|-------|---------| | driver | json-file | Docker default, Promtail compatible | | max-size | 10m | 10MB per log file before rotation | | max-file | 3 | Keep 3 rotated files | **Total max storage**: 6 containers x 30MB = 180MB ## Services Updated 1. mvp-traefik 2. mvp-frontend 3. mvp-backend 4. mvp-ocr 5. mvp-postgres 6. mvp-redis ## Test Plan - [x] `docker-compose config` validates successfully - [ ] Logs still accessible via `docker logs <container>` - [ ] Log rotation triggers at 10MB (can verify post-merge in production) ## Acceptance Criteria - [x] All 6 services have logging configuration - [x] json-file driver with max-size: 10m, max-file: 3 - [x] docker-compose config validates - [x] Total max storage: 6 x 30MB = 180MB Fixes #85 --- Generated with [Claude Code](https://claude.com/claude-code)
egullickson added 1 commit 2026-02-04 01:49:47 +00:00
chore: add Docker log rotation to all services (refs #85)
All checks were successful
Deploy to Staging / Build Images (pull_request) Successful in 30s
Deploy to Staging / Deploy to Staging (pull_request) Successful in 31s
Deploy to Staging / Verify Staging (pull_request) Successful in 2m19s
Deploy to Staging / Notify Staging Ready (pull_request) Successful in 7s
Deploy to Staging / Notify Staging Failure (pull_request) Has been skipped
ceaabee7a0
Add logging configuration with json-file driver and rotation to all 6 services:
- mvp-traefik
- mvp-frontend
- mvp-backend
- mvp-ocr
- mvp-postgres
- mvp-redis

Configuration:
- max-size: 10m (10MB per log file)
- max-file: 3 (keep 3 rotated files)
- Total max storage: 6 x 30MB = 180MB

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
egullickson merged commit 3899cb3935 into main 2026-02-04 02:00:23 +00:00
egullickson deleted branch issue-85-docker-logging-config 2026-02-04 02:00:23 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: egullickson/motovaultpro#90