Refs #80 - Unified Debug Logging System
Add logging driver configuration to all services in docker-compose.yml with rotation.
docker-compose.yml
Add to each service in docker-compose.yml:
services: mvp-traefik: # ... existing config ... logging: driver: json-file options: max-size: "10m" max-file: "3" mvp-frontend: # ... existing config ... logging: driver: json-file options: max-size: "10m" max-file: "3" mvp-backend: # ... existing config ... logging: driver: json-file options: max-size: "10m" max-file: "3" mvp-ocr: # ... existing config ... logging: driver: json-file options: max-size: "10m" max-file: "3" mvp-postgres: # ... existing config ... logging: driver: json-file options: max-size: "10m" max-file: "3" mvp-redis: # ... existing config ... logging: driver: json-file options: max-size: "10m" max-file: "3"
max-size: 10m
max-file: 3
json-file
docker logs
None - can be executed in parallel with #80-A and #80-C
Milestone 1: Foundation
No dependencies set.
The note is not visible to the blocked user.
Parent Issue
Refs #80 - Unified Debug Logging System
Scope
Add logging driver configuration to all services in docker-compose.yml with rotation.
Files to Modify
docker-compose.yml- Add logging blocks to all 6 servicesImplementation Details
Add to each service in docker-compose.yml:
Configuration Rationale
max-size: 10m- Each log file max 10MBmax-file: 3- Keep 3 rotated files (30MB total per container)json-filedriver - Compatible with Promtail scrapingAcceptance Criteria
docker logscommandDependencies
None - can be executed in parallel with #80-A and #80-C
Milestone
Milestone 1: Foundation