You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clean up AGENTS.md: remove deployment examples and private topology
Remove Docker Compose example, environment variables table,
worker topology with IPs, and docker run command with hardcoded
API key. These belong in operator docs (README), not AGENTS.md.
| `CASHPILOT_API_KEY` | -- | Shared API key for worker↔UI auth (required in multi-server) |
462
-
| `CASHPILOT_WORKER_NAME` | hostname | Human-readable worker name shown in UI fleet view |
463
-
464
415
### Current Deployment
465
416
466
417
3-server fleet: 1 UI instance + 2 workers. Workers send heartbeats to UI every 60s.
@@ -502,26 +453,6 @@ CashPilot stores earnings in each service's **native currency** (USD, MYST, GRAS
502
453
503
454
**Always use the dedicated worker image** (`drumsergio/cashpilot-worker`), never the UI image for workers. The worker image runs `app.worker_api:app` on port 8081.
504
455
505
-
**Topology:**
506
-
- **watchtower**: `drumsergio/cashpilot` (UI, port 8085→8080) + `drumsergio/cashpilot-worker` (worker, port 8081). UI collects all earnings, worker manages local containers.
507
-
- **geiserback** (192.168.10.110): `drumsergio/cashpilot-worker`. Port 8081. Same subnet as watchtower — uses direct IP for `CASHPILOT_UI_URL`.
508
-
- **geiserct** (192.168.20.5, user `geiser`): `drumsergio/cashpilot-worker`. Port 8081. Different subnet — **must use Tailscale MagicDNS** (`watchtower.mango-alpha.ts.net`) for `CASHPILOT_UI_URL`.
509
-
510
-
```bash
511
-
# Worker deployment (geiserback or geiserct)
512
-
docker run -d --name cashpilot-worker --restart unless-stopped \
**Important**: The `entrypoint.sh` does NOT switch modes — it only sets up Docker socket permissions. Mode is determined by which Docker image runs (`Dockerfile` → `app.main:app`, `Dockerfile.worker` → `app.worker_api:app`).
526
457
527
458
---
@@ -544,7 +475,7 @@ Docker socket must be accessible for container management.
544
475
1. Create `services/{category}/{slug}.yml` following `_schema.yml`
545
476
2.**Include a `cashout` section** in the YAML — every service must define how users can cash out (API endpoint, redirect URL, or manual instructions). This is mandatory, not optional.
546
477
3. Run `python scripts/generate_docs.py` to regenerate README + guides
547
-
4. Optionally add a collector in `app/collectors/{slug}.py` and register it in `__init__.py`
478
+
4.Add a collector in `app/collectors/{slug}.py` and register it in `__init__.py`
0 commit comments