forked from DreamLab-AI/origin-logseq-AR
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathdocker-compose.production.yml
More file actions
63 lines (60 loc) · 1.88 KB
/
docker-compose.production.yml
File metadata and controls
63 lines (60 loc) · 1.88 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
services:
webxr:
container_name: logseq-spring-thing-webxr
build:
context: .
dockerfile: Dockerfile.production
args:
CUDA_ARCH: ${CUDA_ARCH:-89}
REBUILD_PTX: ${REBUILD_PTX:-false}
env_file:
- .env # Load all variables from .env file into the container
environment:
- NVIDIA_VISIBLE_DEVICES=${NVIDIA_VISIBLE_DEVICES:-0}
- NVIDIA_GPU_UUID=${NVIDIA_GPU_UUID:-0}
# RUST_LOG is now inherited from the .env file via env_file directive
- NODE_ENV=production
- GIT_HASH=${GIT_HASH:-production}
volumes:
# Only mount data directories, not code
- ./data/markdown:/app/data/markdown
- ./data/metadata:/app/data/metadata
- ./data/user_settings:/app/user_settings
- ./data/settings.yaml:/app/settings.yaml
deploy:
resources:
reservations:
devices:
- driver: nvidia
capabilities: [compute,utility]
device_ids: ['0']
ports:
- "4000:4000" # Expose API port
networks:
- docker_ragflow # Revert to simple network list item
restart: unless-stopped
healthcheck:
# Check root path which Nginx serves, indicating Nginx is up
test: ["CMD", "curl", "-f", "http://localhost:4000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
cloudflared:
container_name: cloudflared-tunnel
image: cloudflare/cloudflared:latest
command: tunnel --no-autoupdate run
environment:
# Use the standard variable name, expecting it from the .env file loaded by Compose
- TUNNEL_TOKEN=${CLOUDFLARE_TUNNEL_TOKEN}
volumes:
- ./config.yml:/etc/cloudflared/config.yml:ro
depends_on:
- webxr
networks:
- docker_ragflow
restart: unless-stopped
networks:
docker_ragflow:
external: true
# Removed duplicated cloudflared service definition