-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
50 lines (48 loc) · 1.09 KB
/
docker-compose.dev.yml
File metadata and controls
50 lines (48 loc) · 1.09 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
services:
backend:
build:
context: .
dockerfile: Dockerfile.backend
ports:
- "8080:8080"
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
- API_TOKEN=${API_TOKEN}
- CHAT_MODEL=gpt-4o-mini
- EMBEDDING_MODEL=text-embedding-3-large
- DATA_DIR=/var/data
- INDEX_DIR=/var/data/index
volumes:
- ./data:/var/data
- ./app:/app/app
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/healthz"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
ports:
- "3000:3000"
environment:
- VITE_API_URL=http://localhost:8080
volumes:
- ./frontend/src:/app/src
- ./frontend/public:/app/public
depends_on:
- backend
restart: unless-stopped
nginx:
image: nginx:alpine
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
depends_on:
- backend
- frontend
restart: unless-stopped