-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (60 loc) · 1.48 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
56
57
58
59
60
services:
database:
image: pgvector/pgvector:pg16
restart: always
expose:
- 5432
ports:
- "5432:5432"
volumes:
- dbdata:/var/lib/postgresql/data
- ./../docprocai_service/pg-init-scripts:/docker-entrypoint-initdb.d
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
- POSTGRES_CREATE_DB_DOCPROCAI_SERVICE=docprocai_service
app-docprocai:
build:
context: ./../docprocai_service
dockerfile: Dockerfile
restart: always
container_name: docprocai_service
volumes:
- "./../docprocai_service/llm_data:/app/llm_data"
ports:
- "9900:9900"
- "9901:9901"
depends_on:
- database
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [ gpu ]
dapr-docprocai:
image: "daprio/daprd"
command: [
"./daprd",
"--app-id", "docprocai_service",
"--app-port", "9901",
"--dapr-http-port", "9900",
"--resources-path", "./components"
]
volumes:
- "./../docprocai_service/components/:/components" # Mount our components folder for the runtime to use. The mounted location must match the --resources-path argument.
depends_on:
- app-docprocai
- redis
network_mode: "service:app-docprocai"
redis:
image: "redis:alpine"
expose:
- "6379"
volumes:
dbdata:
networks:
default:
name: dapr-network
external: true