-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (36 loc) · 845 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
40 lines (36 loc) · 845 Bytes
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
services:
backend:
build: ./backend
ports:
- "${BACKEND_PORT:-8000}:8000"
environment:
- LLM_PROVIDER=${LLM_PROVIDER}
- OLLAMA_BASE_URL=${OLLAMA_BASE_URL}
- OLLAMA_MODEL=${OLLAMA_MODEL}
- API_KEY=${API_KEY}
- API_BASE_URL=${API_BASE_URL}
- API_MODEL=${API_MODEL}
- REDIS_URL=redis://redis:6379
depends_on:
- redis
extra_hosts:
- "host.docker.internal:host-gateway"
restart: unless-stopped
frontend:
build: ./frontend
ports:
- "3000:3000"
environment:
- NEXT_PUBLIC_BACKEND_URL=http://localhost:${BACKEND_PORT:-8000}
depends_on:
- backend
restart: unless-stopped
redis:
image: redis:alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
restart: unless-stopped
volumes:
redis_data: