-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yaml
95 lines (88 loc) · 2.14 KB
/
docker-compose.yaml
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
91
92
93
94
95
version: '3.8'
services:
qdrant:
image: qdrant/qdrant:latest
container_name: qdrant
ports:
- 6333:6333
- 6334:6334
networks:
- ragsaas-network
mongodb:
image: mongo:latest
container_name: mongodb
ports:
- 27017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: password
networks:
- ragsaas-network
volumes:
- mongodb_data:/data/db
arizephoenix:
image: arizephoenix/phoenix:latest
container_name: arizephoenix
ports:
- '6006:6006'
- '4317:4317'
networks:
- ragsaas-network
backend:
build:
context: ./backend
dockerfile: Dockerfile
image: ragsaas/backend:latest
container_name: backend
ports:
- '8000:8000'
environment:
# MongoDB Configuration
MONGODB_NAME: RAGSAAS
MONGODB_URI: mongodb://admin:password@mongodb:27017/
# Qdrant Configuration
QDRANT_COLLECTION: default
QDRANT_URL: http://qdrant:6333
# QDRANT_API_KEY:
OPENAI_API_KEY:
# Backend Application Configuration
MODEL_PROVIDER: openai
MODEL: gpt-4o-mini
EMBEDDING_MODEL: text-embedding-3-small
EMBEDDING_DIM: 1536
FILESERVER_URL_PREFIX: http://backend:8000/api/files
SYSTEM_PROMPT: 'You are a helpful assistant who helps users with their questions.'
APP_HOST: 0.0.0.0
APP_PORT: 8000
ADMIN_EMAIL: [email protected]
ADMIN_PASSWORD: ragsaas
JWT_SECRET_KEY:
JWT_REFRESH_SECRET_KEY:
ARIZE_PHOENIX_ENDPOINT: http://arizephoenix:6006
depends_on:
- qdrant
- mongodb
- arizephoenix
networks:
- ragsaas-network
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
image: ragsaas/frontend:latest
container_name: frontend
ports:
- '3000:3000'
environment:
NEXT_PUBLIC_SERVER_URL: http://backend:8000
NEXT_PUBLIC_CHAT_API: http://backend:8000/api/chat
depends_on:
- backend
networks:
- ragsaas-network
networks:
ragsaas-network:
name: ragsaas-network
driver: bridge
volumes:
mongodb_data: