-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
90 lines (86 loc) · 2.29 KB
/
Copy pathdocker-compose.yml
File metadata and controls
90 lines (86 loc) · 2.29 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
services:
compileo-api:
build:
context: .
dockerfile: Dockerfile.api
ports:
- "8000:8000"
volumes:
- compileo_storage:/app/storage
- compileo_plugins:/app/plugins
- compileo_hf_models:/app/src/compileo/features/ingestion/hf_models
environment:
- COMPILEO_API_KEYS=${COMPILEO_API_KEYS}
- CORS_ORIGINS=${CORS_ORIGINS}
- REDIS_URL=redis://redis:6379/0
- PYTHONPATH=/app:/home/compileo/.local/lib/python3.12/site-packages
- COMPILEO_REDIS_HOST=redis
- COMPILEO_REDIS_PORT=6379
- RATE_LIMIT_REQUESTS=${RATE_LIMIT_REQUESTS}
- RATE_LIMIT_WINDOW=${RATE_LIMIT_WINDOW}
- LOG_LEVEL=${LOG_LEVEL}
- NVIDIA_DISABLE_REQUIRE=true
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=compute,utility
- HF_HUB_DOWNLOAD_TIMEOUT=1000
- HF_HUB_ENABLE_HF_TRANSFER=0
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
privileged: true # Test privileged mode for GPU access
depends_on:
redis:
condition: service_healthy
networks:
- compileo-network
restart: unless-stopped
compileo-gui:
build:
context: .
dockerfile: Dockerfile.gui.light
ports:
- "8501:8501"
volumes:
- compileo_storage:/app/storage
- compileo_plugins:/app/plugins
environment:
- API_BASE_URL=${API_BASE_URL}
- COMPILEO_API_KEYS=${COMPILEO_API_KEYS}
- CORS_ORIGINS=${CORS_ORIGINS}
- LOG_LEVEL=${LOG_LEVEL}
- REDIS_URL=redis://redis:6379/0
- COMPILEO_REDIS_HOST=redis
- COMPILEO_REDIS_PORT=6379
- PYTHONPATH=/app:/home/compileo/.local/lib/python3.12/site-packages
depends_on:
- compileo-api
- redis
networks:
- compileo-network
restart: unless-stopped
redis:
image: redis:7-alpine
ports:
- "6380:6379"
volumes:
- redis_data:/data
networks:
- compileo-network
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
command: redis-server --appendonly yes
volumes:
compileo_storage:
compileo_plugins:
compileo_hf_models:
redis_data:
networks:
compileo-network:
driver: bridge