-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (66 loc) · 1.8 KB
/
docker-compose.yml
File metadata and controls
70 lines (66 loc) · 1.8 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
services:
postgres:
image: postgres:16-alpine
container_name: "postgres"
environment:
POSTGRES_USER: ${POSTGRES_USER:-orassistant}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password}
POSTGRES_DB: ${POSTGRES_DB:-orassistant_db}
ports:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- orassistant-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-orassistant} -d ${POSTGRES_DB:-orassistant_db}"]
interval: 10s
timeout: 5s
retries: 5
backend:
build:
context: ./backend
container_name: "backend"
env_file:
- ./backend/.env
environment:
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
POSTGRES_USER: ${POSTGRES_USER:-orassistant}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password}
POSTGRES_DB: ${POSTGRES_DB:-orassistant_db}
MCP_SERVER_URL: ${MCP_SERVER_URL:-http://host.docker.internal:3001/mcp/}
ports:
- "8000:8000"
depends_on:
postgres:
condition: service_healthy
volumes:
- faiss_data:/ORAssistant-backend/faiss_db
networks:
- orassistant-network
healthcheck:
test: "curl -f http://localhost:8000/healthcheck || exit 1"
interval: ${HEALTHCHECK_INTERVAL:-30s}
timeout: ${HEALTHCHECK_TIMEOUT:-10s}
retries: ${HEALTHCHECK_RETRIES:-5}
start_period: ${HEALTHCHECK_START_PERIOD:-1200s}
frontend:
build:
context: ./frontend/nextjs-frontend
depends_on:
backend:
condition: service_healthy
container_name: "frontend"
ports:
- "3000:3000"
networks:
- orassistant-network
networks:
orassistant-network:
driver: bridge
volumes:
postgres_data:
driver: local
faiss_data:
driver: local