-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (33 loc) · 897 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (33 loc) · 897 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
services:
backend:
build:
context: ./beautirag-app/src/backend
dockerfile: Dockerfile
container_name: beautirag-backend
env_file:
- ./beautirag-app/.env
# Mount the data directory as a volume to persist the FAISS index and processed files
volumes:
- ./beautirag-app/src/backend/data:/app_root/backend/data
ports:
- "8000:8000"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/"]
interval: 300s
timeout: 10s
retries: 3
start_period: 30s
restart: unless-stopped
frontend:
build:
context: ./beautirag-app
dockerfile: Dockerfile
container_name: beautirag-frontend
ports:
- "3000:3000"
depends_on:
backend:
condition: service_healthy
environment:
- NEXT_PUBLIC_BACKEND_URL=http://backend:8000
restart: unless-stopped