-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (44 loc) · 1.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
version: '3.8'
services:
flowise:
image: flowiseai/flowise
restart: always
depends_on:
- ollama
- redis
environment:
- PORT=${FLOWISE_PORT}
- FLOWISE_USERNAME=${FLOWISE_USERNAME}
- FLOWISE_PASSWORD=${FLOWISE_PASSWORD}
- DATABASE_PATH=/root/.flowise
- APIKEY_PATH=/root/.flowise
- LOG_PATH=/root/.flowise/logs
- SECRETKEY_PATH=/root/.flowise
- BLOB_STORAGE_PATH=/root/.flowise/storage
volumes:
- "./flowise_data:/root/.flowise:z"
ports:
- '${FLOWISE_PORT}:${FLOWISE_PORT}'
command: /bin/sh -c "sleep 3; flowise start"
ollama:
container_name: ollama
image: ollama/ollama:latest
restart: always
volumes:
- "./ollama_data:/root/.ollama:z"
ports:
- 11434:11434
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
redis:
image: redis:latest
restart: always
ports:
- "6379:6379"
volumes:
- "./redis_data:/data:z"