-
Notifications
You must be signed in to change notification settings - Fork 114
/
docker-compose.dev.yml
67 lines (62 loc) · 1.28 KB
/
docker-compose.dev.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
56
57
58
59
60
61
62
63
64
65
66
67
name: tidb-ai-build
services:
backend:
build:
context: backend
dockerfile: Dockerfile
args:
BUILDKIT_INLINE_CACHE: 1
ports:
- "8006:80"
env_file:
- .env
volumes:
- ./data:/shared/data
depends_on:
- redis
frontend:
build:
context: .
dockerfile: ./frontend/Dockerfile
args:
BUILDKIT_INLINE_CACHE: 1
ports:
- "3001:3000"
environment:
BASE_URL: http://backend
depends_on:
- backend
background:
build:
context: backend
dockerfile: Dockerfile
args:
BUILDKIT_INLINE_CACHE: 1
ports:
- "5556:5555"
env_file:
- .env
volumes:
- ./data:/shared/data
command: /usr/bin/supervisord
depends_on:
- redis
local-embedding-reranker:
build:
context: backend/local_embedding_reranker
dockerfile: Dockerfile
args:
BUILDKIT_INLINE_CACHE: 1
ports:
- "5002:5001"
environment:
- PRE_LOAD_DEFAULT_EMBEDDING_MODEL=true
- PRE_LOAD_DEFAULT_RERANKER_MODEL=false
- TRANSFORMERS_OFFLINE=1
profiles:
- local-embedding-reranker
redis:
image: redis:6.0.16
volumes:
- ./redis-data:/data
command: ["redis-server", "--loglevel", "warning"]