forked from DreamLab-AI/origin-logseq-AR
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
164 lines (160 loc) · 5.15 KB
/
docker-compose.yml
File metadata and controls
164 lines (160 loc) · 5.15 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
services:
# Development configuration
webxr:
profiles: ["dev"]
container_name: visionflow_container
hostname: webxr
build:
context: .
dockerfile: Dockerfile.dev
args:
CUDA_ARCH: ${CUDA_ARCH:-86}
volumes:
# Fully baked image - ALL code and config inside container
# Only internal Docker volumes for data persistence and caching
- visionflow-data:/app/data # Internal volume for databases and markdown
- ./data/pages:/app/data/pages:rw # Mount local pages directory for persistent baseline
- visionflow-logs:/app/logs # Internal volume for application logs
- /var/run/docker.sock:/var/run/docker.sock:ro # Docker socket for controlled access
- npm-cache:/root/.npm
- cargo-cache:/root/.cargo/registry
- cargo-git-cache:/root/.cargo/git
- cargo-target-cache:/app/target
env_file:
- .env
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=0
- NVIDIA_DRIVER_CAPABILITIES=compute,utility
- VITE_DEBUG=${DEBUG_ENABLED:-true}
- NODE_ENV=development
- VITE_DEV_SERVER_PORT=5173
- VITE_API_PORT=4000
- VITE_HMR_PORT=24678
- RUST_LOG_REDIRECT=true
- SYSTEM_NETWORK_PORT=4000
- CLAUDE_FLOW_HOST=agentic-workstation
- MCP_HOST=agentic-workstation
- MCP_TCP_PORT=9500
- MCP_TRANSPORT=tcp
- MCP_RECONNECT_ATTEMPTS=3
- MCP_RECONNECT_DELAY=1000
- MCP_CONNECTION_TIMEOUT=30000
- ORCHESTRATOR_WS_URL=ws://mcp-orchestrator:9001/ws
- MCP_RELAY_FALLBACK_TO_MOCK=true
- BOTS_ORCHESTRATOR_URL=ws://agentic-workstation:3002
- SETTINGS_AUTH_BYPASS=true
- MANAGEMENT_API_HOST=agentic-workstation
- MANAGEMENT_API_PORT=9090
- FORCE_FULL_SYNC=0
ports:
- "3001:3001" # Nginx entry point for dev
- "4000:4000" # API port for direct access
networks:
docker_ragflow:
aliases:
- webxr
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3001/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# DISABLED: Production configuration - use dev container only for now
# webxr-prod:
# profiles: ["production", "prod"]
# container_name: visionflow_prod_container
# build:
# context: .
# dockerfile: Dockerfile.dev
# args:
# CUDA_ARCH: ${CUDA_ARCH:-86}
# entrypoint: ["/app/prod-entrypoint.sh"]
# env_file:
# - .env
# environment:
# - NVIDIA_VISIBLE_DEVICES=0
# - NVIDIA_DRIVER_CAPABILITIES=compute,utility
# - NODE_ENV=production
# - RUST_LOG=warn
# - SYSTEM_NETWORK_PORT=4001
# - CLAUDE_FLOW_HOST=agentic-workstation
# - MCP_HOST=agentic-workstation
# - MCP_TCP_PORT=9500
# - MCP_TRANSPORT=tcp
# - MCP_RECONNECT_ATTEMPTS=3
# - MCP_RECONNECT_DELAY=1000
# - MCP_CONNECTION_TIMEOUT=30000
# - ORCHESTRATOR_WS_URL=ws://mcp-orchestrator:9001/ws
# - MCP_RELAY_FALLBACK_TO_MOCK=true
# - BOTS_ORCHESTRATOR_URL=ws://agentic-workstation:3002
# - MANAGEMENT_API_HOST=agentic-workstation
# - MANAGEMENT_API_PORT=9090
# volumes:
# - ./client:/app/client
# - ./src:/app/src
# - ./Cargo.toml:/app/Cargo.toml
# - ./Cargo.lock:/app/Cargo.lock
# - ./data/markdown:/app/data/markdown
# - ./data/metadata:/app/data/metadata
# - ./data/user_settings:/app/user_settings
# - ./data/settings.yaml:/app/settings.yaml
# - ./nginx.production.conf:/etc/nginx/nginx.conf:ro
# - ./logs/nginx:/var/log/nginx
# - ./logs:/app/logs
# - ./scripts/prod-entrypoint.sh:/app/prod-entrypoint.sh:ro
# - ./supervisord.production.conf:/app/supervisord.production.conf:ro
# - cargo-target-cache:/app/target
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# capabilities: [compute,utility]
# device_ids: ['0']
# ports:
# - "4000:4000" # API port for production
# networks:
# - docker_ragflow
# restart: unless-stopped
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:4000/"]
# interval: 30s
# timeout: 10s
# retries: 3
# start_period: 40s
# Cloudflare tunnel - now works with dev profile
cloudflared:
profiles: ["dev"]
container_name: cloudflared-tunnel
image: cloudflare/cloudflared:latest
command: tunnel --no-autoupdate run
environment:
- TUNNEL_TOKEN=${CLOUDFLARE_TUNNEL_TOKEN}
volumes:
- ./config.yml:/etc/cloudflared/config.yml:ro
depends_on:
webxr:
condition: service_started
required: false
networks:
- docker_ragflow
restart: unless-stopped
networks:
docker_ragflow:
external: true
volumes:
visionflow-data: # Persistent data volume (databases, markdown, metadata, user_settings)
visionflow-logs: # Log files volume
npm-cache:
cargo-cache:
cargo-git-cache:
cargo-target-cache: