G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G
G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G
G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G
G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G
YOU HAVE REACHED PEAK GUSTAV PERFORMANCE
Senior Airborne Battery Management System Software Developer

> SYSTEM_INFO // RUNNING DOCKERIZED ENVIRONMENT

This web infrastructure is deployed inside a multi-container, fully automated Docker environment managed via docker-compose. It separates core networking, logical apps, and relational persistence into functional containerized blocks.

[1] Network Infrastructure

Utilizes a dual-tier strategy. Front-facing containers (Web server and Certbot) utilize the native Host Network subsystem to cleanly manage ports 80 and 443. Downstream dependencies communicate inside an isolated, private Docker Bridge Network (game_net).

[2] Nginx Web Server

Acts as a secure perimeter interface. It maps local static directories into memory, manages SSL offloading, routes encrypted certificate authentication maps, and serves as an inverse proxy targeting downstream microservices.

[3] Certbot Automation

Runs a daemon process checking certificate conditions every 12 hours. Upon identifying an expiration target under 30 days, it runs a background request cycle and explicitly hot-reloads the active web server without taking down connections.

[4] Python FastAPI Backend

A high-performance Python ASGI backend running within the isolated network. It exposes operational rest endpoints (/api/leaderboard) to process incoming score payloads, runs analytical validations, and applies real-time pruning mutations.

[5] PostgreSQL Database Engine

An isolated transactional database container processing persistent application state. It manages relational score schemas securely with zero external access exposure, safely backed by an externalized persistent volume mapping data to the host drive. Score timestamps are stored as timezone-aware instants and displayed in Europe/Berlin time.

[6] Automated Deployment Pipeline

Receives authenticated GitHub push webhooks, fetches the selected branch over SSH, and rebuilds the application containers automatically through Docker Compose while keeping the deployment service available.

[7] Leaderboard Reset

One-time setup: run docker-compose up --build -d deploy over SSH from the project directory. For each reset, change deploy/RESET_LEADERBOARD, then commit and push to the deployment branch; the GitHub webhook runs the reset automatically. For an immediate reset over SSH, run docker-compose exec -T db psql -U game_admin -d brick_breaker_db -v ON_ERROR_STOP=1 -c "TRUNCATE TABLE leaderboard RESTART IDENTITY;". Both methods clear all scores and keep the database schema intact.