trading-system-docs/infrastructure-handbook.md

51 lines
2.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Infrastruktur & Betriebs-Handbuch — Trading-System VPS
> Stand: 20.08.2026 · VPS: `187.124.31.123`
## Multi-Agent-Architektur (Resident-Evil-Theme)
| Agent | Plattform | Rolle | Port |
|-------|-----------|-------|------|
| **Alice** | OpenClaw (primary) | Hauptagent, Protagonistin | 55163 |
| **Matt Addison** | OpenClaw (backup) | Backup/Support | 54524 |
| **Rain Ocampo** | Hermes (support) | Technischer Support | 32776 (UI) |
Notation in Notion/Forgejo bei JEDER Änderung:
```
Geändert von: [Alice | Rain Ocampo]
Datum: DD.MM.YYYY HH:MM
Grund: …
```
## Container-Verwaltung (via SSH)
```bash
ssh root@187.124.31.123
docker compose -f /opt/trading-modules/docker-compose.yml ps
docker compose -f /opt/trading-modules/docker-compose.yml up -d <service>
docker compose -f /opt/trading-modules/docker-compose.yml build <service>
docker compose -f /opt/trading-modules/docker-compose.yml down # nur bei explizitem Wunsch
```
## Trading-Module (17 Container)
- Compose: `/opt/trading-modules/docker-compose.yml`
- Container-Namen exakt: `Modul-01-PostgreSQL``Modul-17-Hermes-Agent`
- Netzwerk: `trading-modules`
- Modul-01 = PostgreSQL 16-alpine (Host 55432)
- Modul-02 = RabbitMQ 3-management (Host 55672/15672, vhost `trading`)
- Modul-03 = Market-Data (FastAPI, Port 55003 intern, **nicht öffentlich**)
- Modul-0417 = alpine-Platzhalter (bis ausgebaut)
## Wichtige Hinweise
- **Coolify überschreibt Container-Configs bei Neustart.** Config-Änderungen an OpenClaw ausschließlich über Config-Dateien (nicht UI).
- **Hot-Reload** OpenClaw: `kill -HUP 1` im Container.
- **Ollama** braucht `OLLAMA_API_KEY`; interner Hostname `ollama-nb6d-ollama-1:11434`.
- VPS-Authentifizierung: **nur Public-Key-Auth**.
## Deleted Resources (VPS-Aufräumung 20.08.2026)
Folgendes wurde entfernt (~25 GB freigegeben): Chronos/Kronos (kronos-api, chronos-service, chronos-tradelog), trading-bridge, llm-trade-manager, deepseek-bot, MetaTrader-5, t212-pilot, mehrere redundante Hermes-Container/Volumes/Netzwerke. **Bleibt:** n8n, forgejo, paperclip, Tolaria, PostgreSQL, RabbitMQ, Ollama, Traefik, Coolify-Suite.
---
```
Geändert von: Rain Ocampo
Datum: 20.08.2026
Grund: Infrastruktur-Handbuch für das Trading-System dokumentiert.
```