id: db-node name: State Node (PostgreSQL + Redis) description: High-availability State Pillar with PostgreSQL and Redis for shared caching version: 2.0 min_hetzner_plan: CX21 estimated_monthly_cost: 6.94 services: - id: postgresql name: PostgreSQL image: registry.gitlab.com/postgres-ai/postgresql-autobase/patroni:3.0.2 ports: ["5432:5432", "8008:8008"] - id: etcd name: etcd image: quay.io/coreos/etcd:v3.5.9 ports: ["2379:2379", "2380:2380"] - id: redis name: Redis image: redis:7-alpine ports: ["6379:6379"] command: redis-server --appendonly yes --maxmemory 256mb --maxmemory-policy allkeys-lru - id: haproxy name: HAProxy image: haproxy:2.8-alpine ports: ["5433:5433", "6379:6379", "7000:7000"] requirements: min_nodes: 3 max_nodes: 7 supports_ha: true