Skip to content

Conversation

@Polliog
Copy link
Collaborator

@Polliog Polliog commented Dec 10, 2025

This pull request introduces significant improvements to the Docker deployment and configuration for LogWard, with a focus on enabling horizontal scaling, simplifying environment variable management, and supporting reverse proxy setups (such as Traefik). It adds new Docker Compose files for advanced deployment scenarios, updates documentation for clarity and best practices, and enhances backend code to support scalable, production-grade deployments.

Key changes include:


Docker Compose & Horizontal Scaling Enhancements:

  • Added docker/docker-compose.traefik.yml for advanced deployments with Traefik reverse proxy, enabling horizontal scaling, load balancing, and automatic service discovery. It includes configuration for scaling backend, worker, and frontend services, and sets up Traefik as a single entry point.
  • Updated docker/docker-compose.yml to remove custom networks, simplify service definitions, and ensure compatibility with scaling and reverse proxy setups. Health checks are improved, and environment variable defaults are set for easier configuration. [1] [2] [3] [4] [5]
  • Introduced docker/.env.example as a clear template for environment variables, separating required and optional settings, and providing guidance for production deployments and scaling.

Backend & Frontend Configuration Improvements:

  • Added TRUST_PROXY environment variable (and config support) to enable correct client IP detection when running behind a reverse proxy, ensuring accurate rate limiting and logging. Backend code now uses this flag to trust proxy headers. [1] [2] [3]
  • Enhanced rate limiting in the backend to use Redis as a shared store, allowing limits to be enforced across all backend instances in a horizontally scaled setup.
  • Updated frontend logic so that if PUBLIC_API_URL is empty, it uses relative URLs, which is ideal for reverse proxy setups and simplifies multi-instance deployments. [1] [2]

Documentation & Usability:

  • Revamped README.md with simplified setup instructions: users now download pre-made configuration files instead of writing their own, and are guided to edit .env for secrets and settings. Documentation now clearly distinguishes between development and production setups, and links to horizontal scaling documentation. [1] [2]
  • Added detailed comments and instructions in .env.example and compose files to guide users through configuration, scaling, and best practices for secure and stable deployments. [1] [2] [3]

These changes make LogWard easier to deploy in both single-instance and production-scale environments, improve security and reliability, and provide clear guidance for new users and advanced operators alike.

@Polliog Polliog merged commit f628ff7 into 0.3.0 Dec 10, 2025
Polliog added a commit that referenced this pull request Dec 11, 2025
* Siem (#36)

* 20 infrastructure horizontal scaling support (#37)

* feat: Add C# / .NET SDK section and PDF export functionality to SIEM dashboard

* feat: Update version numbers to 0.3.0 in environment variables, README, and related files
@Polliog Polliog deleted the 20-infrastructure-horizontal-scaling-support branch February 6, 2026 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant