You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor repository to follow 12-Factor App methodology for better deployment practices and environment consistency, while respecting the Torrust Tracker's architectural constraints.
Reference Documentation
See detailed plan in infrastructure/docs/refactoring/twelve-factor-refactor/
Key Changes
Configuration via environment: Move all config to environment variables
Dependency isolation: Explicit dependency declaration in Docker
Single-instance processes: Ensure tracker processes are properly isolated (Note: Torrust Tracker cannot be horizontally scaled due to in-memory peer data)
Port binding: Clean service port configuration
Logs as streams: Structured logging to stdout/stderr
Overview
This issue implements Phase 2 of the Hetzner migration plan: refactoring the repository to follow 12-Factor App methodology where applicable.
Parent Issue: #3 (Hetzner Migration Plan)
Objective
Refactor repository to follow 12-Factor App methodology for better deployment practices and environment consistency, while respecting the Torrust Tracker's architectural constraints.
Reference Documentation
See detailed plan in
infrastructure/docs/refactoring/twelve-factor-refactor/Key Changes
Tasks
Deliverable
12-Factor compliant repository structure (within architectural constraints)
Acceptance Criteria
Architectural Note
Important: The Torrust Tracker cannot be horizontally scaled because:
This refactoring focuses on other 12-Factor principles while maintaining single-instance deployment.
Dependencies