-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
58 lines (56 loc) · 2 KB
/
docker-compose.dev.yml
File metadata and controls
58 lines (56 loc) · 2 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
services:
webxr:
container_name: logseq_spring_thing_webxr
build:
context: .
dockerfile: Dockerfile.dev
args:
CUDA_ARCH: ${CUDA_ARCH:-86}
volumes:
- ./client:/app/client
- ./data/markdown:/app/data/markdown
- ./data/metadata:/app/data/metadata
- ./data/user_settings:/app/user_settings
- ./data/settings.yaml:/app/settings.yaml
- ./nginx.dev.conf:/etc/nginx/nginx.conf:ro # Mount dev Nginx config (read-only)
- ./logs/nginx:/var/log/nginx # Mount nginx logs to host
- ./scripts/logs:/app/logs
- npm-cache:/root/.npm
- cargo-cache:/root/.cargo/registry
- cargo-git-cache:/root/.cargo/git
- cargo-target-cache:/app/target # Cache Rust build artifacts
env_file:
- .env
environment:
- NVIDIA_VISIBLE_DEVICES=GPU-553dc306-dab3-32e2-c69b-28175a6f4da6
- NVIDIA_GPU_UUID=GPU-553dc306-dab3-32e2-c69b-28175a6f4da6
- RUST_LOG=warn,webxr=warn,actix_web=warn
- NODE_ENV=development
- VITE_DEV_SERVER_PORT=5173 # Internal Vite port, accessed via Nginx
- VITE_API_PORT=4000
- VITE_HMR_PORT=24678 # Internal HMR port, accessed via Nginx
- RUST_LOG_REDIRECT=true
# Override the port from settings.yaml for development environment
# Ensure Rust backend listens on 4000, which Vite proxies to.
- SYSTEM_NETWORK_PORT=4000
deploy: # Indentation: 4 spaces
resources:
reservations:
devices:
- driver: nvidia
capabilities: [compute,utility]
device_ids: ['0']
ports: # Indentation: 4 spaces
# Expose only Nginx port 3001 to the host.
# Other services (Vite 5173, Rust 4000, HMR 24678) are accessed via Nginx proxy.
- "3001:3001" # Nginx entry point
networks: # Indentation: 4 spaces
- docker_ragflow
networks: # Indentation: 2 spaces
docker_ragflow:
external: true
volumes: # Indentation: 2 spaces
npm-cache:
cargo-cache:
cargo-git-cache:
cargo-target-cache: