Files
timmy-home/infrastructure/timmy-bridge/relay/docker-compose.yml
Allegro 3148ded347 Complete Timmy Bridge Epic - Local Timmy Sovereign Infrastructure
This PR delivers the complete communication bridge enabling Local Timmy
(Mac/MLX) to connect to the Wizardly Council via sovereign Nostr relay.

Closes #59 - Nostr relay deployment
- Docker Compose configuration for strfry relay
- Running on ws://167.99.126.228:3334
- Supports NIPs: 1, 4, 11, 40, 42, 70, 86, 9, 45

Closes #60 - Monitoring system
- SQLite database schema for metrics
- Python monitor service (timmy_monitor.py)
- Tracks heartbeats, artifacts, latency
- Auto-reconnect WebSocket listener

Closes #61 - Mac heartbeat client
- timmy_client.py for Local Timmy
- 5-minute heartbeat cycle
- Git artifact creation in ~/timmy-artifacts/
- Auto-reconnect with exponential backoff

Closes #62 - MLX integration
- mlx_integration.py module
- Local inference with MLX models
- Self-reflection generation
- Response time tracking

Closes #63 - Retrospective reports
- generate_report.py for daily analysis
- Markdown and JSON output
- Automated recommendations
- Uptime/latency/artifact metrics

Closes #64 - Agent dispatch protocol
- DISPATCH_PROTOCOL.md specification
- Group channel definitions
- @mention command format
- Key management guidelines

Testing:
- Relay verified running on port 3334
- Monitor logging to SQLite
- All acceptance criteria met

Breaking Changes: None
Dependencies: Docker, Python 3.10+, websockets
2026-03-30 01:49:21 +00:00

36 lines
797 B
YAML

version: '3.8'
services:
timmy-relay:
image: hoytech/strfry:latest
container_name: timmy-relay
restart: unless-stopped
ports:
- "3334:7777"
volumes:
- ./strfry.conf:/etc/strfry.conf:ro
- ./data:/app/data
environment:
- TZ=UTC
command: ["relay"]
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
# Alternative: Use khatru if strfry unavailable
timmy-relay-khatru:
image: fiatjaf/khatru:latest
container_name: timmy-relay-khatru
restart: unless-stopped
ports:
- "3334:3334"
volumes:
- ./khatru-data:/data
environment:
- RELAY_NAME=Timmy Foundation Relay
- RELAY_DESCRIPTION=Sovereign Nostr relay for Local Timmy
profiles:
- khatru