Lokale Instanz
Für Anlässe ohne stabile Internetverbindung kann eine lokale Instanz auf einem Raspberry Pi betrieben werden.
Vorteile
- Offline-fähig: Funktioniert ohne Internet
- Schneller: Keine Latenz zur Cloud
- Direkter Druckerzugriff: Drucker im lokalen Netzwerk
- Automatische Sync: Synchronisation mit Cloud wenn online
Hardware
Empfohlene Konfiguration
- Raspberry Pi 4 (4GB RAM)
- SD-Karte (32GB+)
- Ethernet-Anschluss
- Netzteil 5V/3A
Netzwerk
- Lokaler Router/Switch
- Statische IP für Pi empfohlen
- Drucker im gleichen Netzwerk
Installation
Docker-Compose
Die lokale Instanz nutzt docker-compose.local.yml:
services:
postgres:
image: postgres:15-alpine
order-backend:
environment:
- CLOUD_SYNC_ENABLED=true
- CLOUD_API_URL=https://order.fwv-raura.ch/api
order-frontend:
# Kasse unter kasse.local
order-kitchen:
# Kitchen Display unter kitchen.local
inventory-backend:
# Inventar-API
inventory-frontend:
# Inventar unter inventar.local
nginx:
# Routing für alle Services
Lokale Domains
Konfiguriere im Router oder /etc/hosts:
kasse.local→ Raspberry Pi IPkitchen.local→ Raspberry Pi IPinventar.local→ Raspberry Pi IP