-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
81 lines (76 loc) · 1.99 KB
/
Copy pathdocker-compose.yml
File metadata and controls
81 lines (76 loc) · 1.99 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
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "${BACKEND_PORT:-4700}:8000"
env_file: .env
environment:
- REDIS_URL=redis://:${REDIS_PASSWORD}@redis:6379/0
- CHROMADB_URL=http://chromadb:8000
- MONGODB_URL=mongodb://${MONGO_USER}:${MONGO_PASSWORD}@mongodb:27017/${MONGO_DB}?authSource=admin
- OLLAMA_BASE_URL=${OLLAMA_BASE_URL:-http://host.docker.internal:11434}
- SKILLS_DIR=/skills
depends_on:
redis:
condition: service_healthy
mongodb:
condition: service_healthy
volumes:
- ./backend/app:/app/app
- ./skills:/skills
extra_hosts:
- "host.docker.internal:host-gateway"
restart: unless-stopped
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "${FRONTEND_PORT:-4200}:4200"
environment:
- VITE_API_URL=http://localhost:${BACKEND_PORT:-4700}
depends_on:
- backend
restart: unless-stopped
redis:
image: redis:7-alpine
ports:
- "${REDIS_PORT:-4379}:6379"
command: redis-server --requirepass ${REDIS_PASSWORD}
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "-a", "${REDIS_PASSWORD}", "ping"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
chromadb:
image: chromadb/chroma:latest
ports:
- "${CHROMADB_PORT:-4800}:8000"
volumes:
- chromadb_data:/chroma/chroma
restart: unless-stopped
mongodb:
image: mongo:7
ports:
- "${MONGO_PORT:-4717}:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD}
MONGO_INITDB_DATABASE: ${MONGO_DB}
volumes:
- mongodb_data:/data/db
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
redis_data:
chromadb_data:
mongodb_data: