-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (45 loc) · 1 KB
/
docker-compose.yml
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
services:
download_models:
image: aria2:latest
container_name: model_download
build:
context: .
dockerfile: Dockerfile
volumes:
- "./models:/models"
flowise:
image: flowiseai/flowise
container_name: flowise
restart: always
env_file:
- .env
ports:
- '${PORT}:${PORT}'
volumes:
- ./data:/root/.flowise
command: /bin/sh -c "sleep 3; flowise start"
llama:
depends_on:
download_models:
condition: service_completed_successfully
container_name: llama_python
image: llama.cpp:python
build:
context: llama/docker/cuda_simple
dockerfile: Dockerfile
environment:
- MODEL=/models/${MODEL_NAME}
- N_GPU_LAYERS=50
- N_CTX=16384
- USE_MLOCK=1
volumes:
- "./models:/models"
ports:
- "4096:8000"
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [ gpu ]