homelab-codex-ws/services/ai-cluster/service.yaml

38 lines
1 KiB
YAML
Raw Permalink Normal View History

service:
name: ai-cluster
owner_node: vps
exposure: tailscale-internal
dependencies:
- mosquitto
- redis
ports:
- container: 8000
host: 8000
protocol: tcp
service: openclaw
- container: 1883
host: 1883
protocol: tcp
bind: 100.95.58.48 # Tailscale only
service: mosquitto
healthcheck:
type: http
endpoint: http://localhost:8000/health
interval: 30s
timeout: 10s
retries: 3
restart_policy: unless-stopped
persistence:
paths:
- volume:mosquitto_config_bind # /home/dockeruser/docker/ai-cluster/mosquitto (bind, not volume)
runtime:
env_file: /opt/homelab/config/ai-cluster/.env
env_vars:
- MQTT_PASSWORD
- MQTT_USERNAME
- GATEWAY_BASE_URL
notes:
- "Local images (ai-cluster-*) must be built on VPS before deployment"
- "service-ops-worker mounts docker.sock and the compose file — needs post-migration path update"
- "Recommendation: move ai-cluster compute workloads to SOLARIA (GPU/compute node)"