-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.distributed.example
More file actions
137 lines (112 loc) · 4.89 KB
/
env.distributed.example
File metadata and controls
137 lines (112 loc) · 4.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# PMOVES-DoX Distributed Deployment Configuration
# Copy to .env.distributed and configure for your network topology
#
# This configuration enables DoX to run independently on separate hardware
# and connect to other PMOVES submodules via local network, Tailscale, or VPS.
# =============================================================================
# NETWORK MODE
# =============================================================================
# Deployment mode: standalone | docked | distributed
DEPLOYMENT_MODE=distributed
# When true, enables cross-host service discovery via environment variables
# instead of Docker DNS (container names like 'nats', 'backend', etc.)
DISTRIBUTED_SERVICES=true
# =============================================================================
# SERVICE DISCOVERY
# =============================================================================
# Replace Docker DNS names with actual hostnames/IPs for distributed deployment.
# Use one of:
# - Local network IPs: 192.168.1.x
# - Tailscale IPs: 100.x.y.z
# - Tailscale hostnames: myhost.tailnet-name.ts.net
# - VPS hostnames: vps.example.com
# NATS Message Bus (required for geometry events, CHIT protocol)
NATS_HOST=localhost
NATS_PORT=4222
NATS_URL=nats://${NATS_HOST}:${NATS_PORT}
NATS_TLS_ENABLED=true
NATS_TLS_CA=/app/nats-certs/ca.crt
# DoX Backend (this service when running standalone, remote when docked)
DOX_HOST=localhost
DOX_PORT=8484
DOX_BACKEND_URL=http://${DOX_HOST}:${DOX_PORT}
# DoX Frontend
DOX_FRONTEND_HOST=localhost
DOX_FRONTEND_PORT=3001
# =============================================================================
# PARENT PMOVES.AI SERVICES (for docked/distributed modes)
# =============================================================================
# Set these when connecting to parent PMOVES.AI infrastructure
# TensorZero LLM Gateway
TENSORZERO_HOST=localhost
TENSORZERO_PORT=3030
TENSORZERO_URL=http://${TENSORZERO_HOST}:${TENSORZERO_PORT}
# Hi-RAG Knowledge Retrieval
HIRAG_HOST=localhost
HIRAG_PORT=8086
HIRAG_URL=http://${HIRAG_HOST}:${HIRAG_PORT}
# Supabase Database
SUPABASE_HOST=localhost
SUPABASE_PORT=54321
SUPABASE_URL=http://${SUPABASE_HOST}:${SUPABASE_PORT}
# Qdrant Vector Store
QDRANT_HOST=localhost
QDRANT_PORT=6333
QDRANT_URL=http://${QDRANT_HOST}:${QDRANT_PORT}
# Neo4j Knowledge Graph (parent shared instance)
NEO4J_PARENT_HOST=localhost
NEO4J_PARENT_BOLT_PORT=7687
NEO4J_PARENT_URI=bolt://${NEO4J_PARENT_HOST}:${NEO4J_PARENT_BOLT_PORT}
# =============================================================================
# SIBLING SUBMODULE SERVICES
# =============================================================================
# Set these to connect to BoTZ and Tokenism on other hosts
# PMOVES-BoTZ MCP Gateway
BOTZ_HOST=localhost
BOTZ_GATEWAY_PORT=2091
BOTZ_GATEWAY_URL=http://${BOTZ_HOST}:${BOTZ_GATEWAY_PORT}
# PMOVES-Tokenism
TOKENISM_HOST=localhost
TOKENISM_PORT=5000
TOKENISM_URL=http://${TOKENISM_HOST}:${TOKENISM_PORT}
# =============================================================================
# OLLAMA (Local or Remote)
# =============================================================================
# When using host.docker.internal, set to http://host.docker.internal:11434
# For remote Ollama, use the actual host IP/hostname
OLLAMA_HOST=localhost
OLLAMA_PORT=11434
OLLAMA_BASE_URL=http://${OLLAMA_HOST}:${OLLAMA_PORT}
EMBEDDING_OLLAMA_URL=http://${OLLAMA_HOST}:${OLLAMA_PORT}
# =============================================================================
# TAILSCALE INTEGRATION
# =============================================================================
# Enable Tailscale sidecar container for VPN mesh networking
TAILSCALE_ENABLED=false
TAILSCALE_AUTHKEY=
TAILSCALE_HOSTNAME=pmoves-dox
# Advertise local Docker networks to Tailscale mesh
TAILSCALE_ADVERTISE_ROUTES=172.31.0.0/16
# Connect to parent Headscale control plane (optional)
# Leave blank for managed Tailscale cloud service
# Set to parent Headscale URL for self-hosted mesh
TAILSCALE_LOGIN_SERVER=${HEADSCALE_URL:-}
# Example: TAILSCALE_LOGIN_SERVER=https://headscale.pmoves.local:8096
# =============================================================================
# SECURITY (Required for distributed deployments)
# =============================================================================
# JWT secret for inter-service authentication
SUPABASE_JWT_SECRET=your-jwt-secret-here
# Agent Zero MCP token for BoTZ integration
AGENT_ZERO_MCP_TOKEN=your-mcp-token-here
# =============================================================================
# HARDWARE-SPECIFIC SETTINGS
# =============================================================================
# Detected automatically by Glancer, but can be overridden
# Device selection: cpu | cuda | mps | auto
DEFAULT_DEVICE=auto
SEARCH_DEVICE=${DEFAULT_DEVICE}
DOCLING_DEVICE=${DEFAULT_DEVICE}
# For Jetson devices, override with specific settings:
# DEFAULT_DEVICE=cuda
# DOCLING_NUM_THREADS=4