-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (48 loc) · 1.65 KB
/
Copy pathdocker-compose.yml
File metadata and controls
52 lines (48 loc) · 1.65 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
version: '3.8'
# Define services for the project
services:
# Backend service for the FastAPI application
backend:
# Build the backend service from the Dockerfile in the "backend" directory
build:
context: ./backend
dockerfile: Dockerfile
# Map the container's internal port 8000 to the host's port 8000
ports:
- "8000:8000"
# Mount the local backend directory to the container for real-time code changes (development convenience)
volumes:
- ./backend:/app
# Define environment variables for sensitive data such as API keys
environment:
- ENV=production
- HUGGING_FACE_TOKEN=${HUGGING_FACE_TOKEN}
- QDRANT_HOST=qdrant
# Ensure the backend service starts after the Qdrant database is ready
depends_on:
- qdrant
# Frontend service for the Vue.js application
frontend:
# Build the frontend service from the Dockerfile in the "frontend" directory
build:
context: ./frontend
dockerfile: Dockerfile
# Map the container's internal port 8080 to the host's port 8080
ports:
- "8080:8080"
# Mount the local frontend directory to the container for real-time changes (development convenience)
volumes:
- ./frontend:/app
# Qdrant service for the vector database
qdrant:
# Use the official Qdrant Docker image
image: qdrant/qdrant:v1.2.2
# Map the container's internal port 6333 to the host's port 6333 for API access
ports:
- "6333:6333"
# Mount a volume to persist Qdrant data across container restarts
volumes:
- qdrant_data:/qdrant/storage
# Define volumes for persistent data storage
volumes:
qdrant_data: