How llnut/dnf works
This repository packages a DNF game server as container images, with single-container and separated-database deployment options. The main workflow is an operator starting a configured deployment, container initialization preparing its services, and a player using the login client to reach the game. The README also documents multi-channel and multi-region setups, Kubernetes deployment, scheduled maintenance, and database backup/restore. Runtime source excerpts were not provided, so service-level wiring beyond these documented relationships is not inferred.
Main entry points: dnf Container Deployment · scheduler Scheduled Maintenance · docker-compose Compose Modes · k8s-deploy Kubernetes Mode
Components 16
Deployment
- Container Deployment
deploy/dnf - Compose Modes
deploy/dnf/docker-compose - Kubernetes Mode
deploy/dnf/k8s-deploy
Server Runtime
- Startup Initialization
build/dnf_data/etc/s6-overlay/s6-rc.d/init-data - Environment Resolution
build/dnf_data/etc/s6-overlay/s6-rc.d/env-resolve - Game Services
build/dnf_data/etc/s6-overlay/s6-rc.d/game_template - Channel Services
build/dnf_data/etc/s6-overlay/s6-rc.d/channel - DP Plugins
plugin
Database Operations
- MySQL Database
build/dnf_data/etc/s6-overlay/s6-rc.d/mysql - Database Initialization
build/dnf_data/etc/s6-overlay/s6-rc.d/init-db - DB Entrypoint
build/dnf_data/db-entrypoint.sh - Scheduled Maintenance
build/dnf_data/etc/s6-overlay/s6-rc.d/scheduler - Backup and Restore
deploy/dnf
Player Access
- Login Gateway
build/dnf_data/etc/s6-overlay/s6-rc.d/llnut_gate
Other components
- Operator
- Game Client
Connections 9
- Operator → Container Deployment: starts
README.md - Container Deployment → Startup Initialization: initializes
README.md - Container Deployment → Compose Modes: supports modes
README.md - Container Deployment → Kubernetes Mode: supports mode
README.md - Game Client → Login Gateway: logs in
README.md - Game Client → Game Services: plays through
README.md - Scheduled Maintenance → MySQL Database: backs up
README.md - Scheduled Maintenance → Backup and Restore: runs backups
README.md - Operator → Backup and Restore: requests restore
README.md