[Sub-issue #80-E]: Docker Logging Configuration + Rotation #85

Closed
opened 2026-02-03 02:19:05 +00:00 by egullickson · 0 comments
Owner

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 services

Implementation Details

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"

Configuration Rationale

  • max-size: 10m - Each log file max 10MB
  • max-file: 3 - Keep 3 rotated files (30MB total per container)
  • json-file driver - Compatible with Promtail scraping
  • Total max storage: 6 containers × 30MB = 180MB (acceptable buffer)

Acceptance Criteria

  • All 6 services have logging configuration
  • Log rotation creates new files at 10MB
  • No more than 3 log files per container
  • No unbounded disk growth risk
  • Logs accessible via docker logs command

Dependencies

None - can be executed in parallel with #80-A and #80-C

Milestone

Milestone 1: Foundation

## 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 services ## Implementation Details Add to each service in docker-compose.yml: ```yaml 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" ``` ## Configuration Rationale - `max-size: 10m` - Each log file max 10MB - `max-file: 3` - Keep 3 rotated files (30MB total per container) - `json-file` driver - Compatible with Promtail scraping - Total max storage: 6 containers × 30MB = 180MB (acceptable buffer) ## Acceptance Criteria - [ ] All 6 services have logging configuration - [ ] Log rotation creates new files at 10MB - [ ] No more than 3 log files per container - [ ] No unbounded disk growth risk - [ ] Logs accessible via `docker logs` command ## Dependencies None - can be executed in parallel with #80-A and #80-C ## Milestone Milestone 1: Foundation
egullickson added the
status
backlog
type
chore
labels 2026-02-03 02:19:41 +00:00
egullickson added
status
in-progress
and removed
status
backlog
labels 2026-02-04 01:48:34 +00:00
egullickson added
status
review
and removed
status
in-progress
labels 2026-02-04 01:49:48 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: egullickson/motovaultpro#85