-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
88 lines (82 loc) · 1.94 KB
/
compose.dev.yaml
File metadata and controls
88 lines (82 loc) · 1.94 KB
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
name: mastra-extended-dev
services:
app:
build:
context: ./app
dockerfile: Dockerfile
ports:
- 3000:3000
environment:
DATABASE_URL: postgres://postgres:postgres@postgres:5432/postgres?sslmode=disable
REDIS_URL: redis://redis:6379
QUEUE_NAME: support-sync
LOCAL_FAST_DATA: "true"
MOCK_AGENT: "false"
OPENAI_API_KEY: defang
depends_on:
chat:
condition: service_started
embedding:
condition: service_started
postgres:
condition: service_healthy
redis:
condition: service_started
worker:
build:
context: ./app
dockerfile: Dockerfile
command: npm run worker
environment:
DATABASE_URL: postgres://postgres:postgres@postgres:5432/postgres?sslmode=disable
REDIS_URL: redis://redis:6379
QUEUE_NAME: support-sync
LOCAL_FAST_DATA: "true"
MOCK_AGENT: "false"
OPENAI_API_KEY: defang
depends_on:
chat:
condition: service_started
embedding:
condition: service_started
postgres:
condition: service_healthy
redis:
condition: service_started
postgres:
image: pgvector/pgvector:pg16
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
POSTGRES_USER: postgres
ports:
- 5432:5432
healthcheck:
test:
- CMD-SHELL
- pg_isready -U postgres -d postgres
interval: 10s
timeout: 5s
retries: 10
start_period: 10s
volumes:
- pgdata:/var/lib/postgresql/data
redis:
image: redis:6.2
command: redis-server --save 60 1 --loglevel warning --maxmemory-policy noeviction
ports:
- 6379:6379
chat:
provider:
type: model
options:
model: ai/qwen2.5:3B-Q4_K_M
x-defang-llm: true
embedding:
provider:
type: model
options:
model: ai/mxbai-embed-large
x-defang-llm: true
volumes:
pgdata: