Skip to content
Geprüft83%
Vollständigkeit:
85%
Korrektheit:
80%
✓ Geprüft von Peter König am 29. November 2025

Server Architecture

The p2d2 infrastructure is based on Proxmox VE 9.x and uses a hybrid architecture of LXC containers for microservices and VMs for complex network and tile server tasks. The virtualization runs on modern Intel hardware (13th Gen, 14 Cores, 64 GB RAM).

Architecture Overview

TODO: Insert graphic

Component Overview

ComponentTypeRoleRAMDiskOS
OPNSenseVMFirewall + Reverse Proxy4 GB25 GBFreeBSD 14.x
PostgreSQLLXCGeodatabase + PostGIS2 GB15 GBDebian 13
GeoServerLXCWFS/WMS Server6 GB12 GBDebian 13
MapProxyLXCTile Cache + Proxy4 GB38 GBDebian 13
OSM-TilerVMTile Rendering6 GB65 GBDebian 13
FrontendLXCAstroJS + VitePress4 GB25 GBDebian 13
Ory IAM (planned)LXCIdentity Management2 GB10 GBDebian 13

Design Principles

Service Isolation

Each service runs in its own LXC container or VM. This allows for:

  • Independent updates without downtime for other services
  • Resource isolation and performance tuning per service
  • Rollback of individual components in case of problems

Network Segmentation

  • DMZ Principle: Frontend container has no direct database write access
  • Firewall-First: All external requests go through OPNSense
  • Internal LAN: Dedicated private network for service-to-service communication
  • Management VLAN: Separate network for administrative access

Security Features

  • Proxmox Firewall: Enabled at the host level
  • OPNSense: Stateful Packet Inspection, NAT rules
  • Caddy TLS: Automatic Let's Encrypt certificates
  • VPN-Only Admin: Administrative access only via VPN

Backup Strategy

Proxmox Backup Server (PBS) creates incremental snapshots of all containers and VMs:

  • Daily Backups: Critical components (DB, Frontend, Firewall)
  • Weekly Backups: GDI middleware (GeoServer, MapProxy)
  • Monthly Backups: Tile server (large data volumes)
  • Automatic Retention: PBS policies for old backups

Details: Backup Strategy

Further Documentation