VPS infrastructure
The shared VPS profile, the Docker service map with resource controls, the on-disk layout, segmented networks and the host-hardening baseline.
Clawlas runs on a single self-hosted VPS shared with other projects. The profile prioritizes RAM, fast NVMe storage, a stable network, predictable CPU and snapshot capability.
A shared, already-owned host
Clawlas runs on an existing Hostinger KVM 4 shared with other projects, on its own domain clawlas.com (one subdomain per service). There is therefore no new VPS or domain cash cost at launch — but Clawlas still records an allocated share of CPU, memory, disk and network in shared_infrastructure_allocations so profitability is not overstated.
Docker services
Docker Compose isolates at least:
- reverse-proxy (Traefik · existing)
- frontend
- convex-backend
- convex-dashboard
- api (FastAPI)
- redis
- prometheus · grafana · loki
- portainer
- backup (restic)
Resource controls
- CPU & memory limits per service
- reserved headroom for execution & reconciliation
- disk-space alerts
- memory-pressure alerts
- load-average alerts
- queue-depth alerts
- process restart limits
- priority classes: trading-critical vs non-critical
Sizing
Capacity depends on the number of collectors, market-data volume, local model hosting and backtesting frequency, and is measured rather than assumed. Local LLM hosting may need a separate GPU server and is not assumed for the initial VPS.
Filesystem layout
/opt/clawlas/ ├── compose/ ├── config/ ├── secrets/ ├── data/ │ ├── convex/ memory/ lake/ duckdb/ │ ├── redis/ prometheus/ grafana/ loki/ ├── backups/ └── scripts/
Host hardening
- non-root user
- SSH keys only
- password login disabled
- firewall
- only required ports
- auto security updates
- Fail2ban
- Docker socket not exposed
- disk-usage alerts
- encrypted backups
Networks (most restrictive last)
- public — the existing Traefik network (root_default); only public-facing services join it.
- application — frontend, Convex, FastAPI, agent workers.
- data — storage services, Redis, analytical workers.
- execution — execution engine and approved services only.
- monitoring — Prometheus, Grafana, Loki.