-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
113 lines (112 loc) · 2.9 KB
/
Copy pathdocker-compose.yml
File metadata and controls
113 lines (112 loc) · 2.9 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
services:
postgres:
image: postgres:15-alpine
container_name: tellmach_db
restart: always
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
ports:
- "5433:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- tellmach_network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER} -d ${DB_NAME}"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
qdrant:
image: qdrant/qdrant:latest
container_name: tellmach_vector
restart: always
ports:
- "6333:6333"
- "6334:6334"
volumes:
- qdrant_storage:/qdrant/storage
networks:
- tellmach_network
healthcheck:
test: ["CMD-SHELL", "timeout 1 bash -c 'cat < /dev/null > /dev/tcp/127.0.0.1/6333' || exit 1"]
interval: 10s
timeout: 5s
retries: 5
start_period: 20s
backend:
build: ./backend
container_name: tellmach_app_backend
dns:
- 8.8.8.8
- 8.8.4.4
ports:
- "8000:8000"
volumes:
- ./backend:/app
- hf_cache:/root/.cache/huggingface
environment:
- DATABASE_URL=postgresql://${DB_USER}:${DB_PASSWORD}@postgres:5432/${DB_NAME}
- HF_TOKEN=${HF_TOKEN}
- EMBEDDING_MODEL=${EMBEDDING_MODEL}
- EMBEDDING_DIM=${EMBEDDING_DIM}
- QDRANT_HOST=${QDRANT_HOST}
- QDRANT_PORT=${QDRANT_PORT}
- QDRANT_COLLECTION=${QDRANT_COLLECTION}
- QDRANT_DISTANCE=${QDRANT_DISTANCE}
- SECRET_KEY=tellmach-super-secret-jwt-key-change-in-production
- ENCRYPTION_KEY=LyIFaP_p1qkxGLd_6JctZzYhvvnSG5-K1mKJVCZLJdk=
- CORS_ORIGINS=http://localhost:5173,http://127.0.0.1:5173
- N8N_WEBHOOK_URL=${N8N_WEBHOOK_URL:-}
depends_on:
postgres:
condition: service_healthy
qdrant:
condition: service_healthy
networks:
- tellmach_network
healthcheck:
test: ["CMD-SHELL", "timeout 1 bash -c 'cat < /dev/null > /dev/tcp/127.0.0.1/8000' || exit 1"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
frontend:
build: ./frontend
container_name: tellmach_ui
ports:
- "5173:5173"
volumes:
- ./frontend:/app
- /app/node_modules
depends_on:
backend:
condition: service_healthy
networks:
- tellmach_network
n8n:
image: docker.n8n.io/n8nio/n8n
container_name: tellmach_n8n
restart: unless-stopped
ports:
- "5679:5678"
environment:
- N8N_HOST=localhost
- N8N_PORT=5678
- N8N_PROTOCOL=http
- GENERIC_TIMEZONE=Europe/Warsaw
- N8N_USER_MANAGEMENT_JWT_SECRET=${N8N_JWT_SECRET:-tellmach-n8n-jwt-secret-change-me}
volumes:
- n8n_data:/home/node/.n8n
networks:
- tellmach_network
networks:
tellmach_network:
driver: bridge
volumes:
postgres_data:
qdrant_storage:
n8n_data:
hf_cache: