-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.staging.yml
More file actions
54 lines (51 loc) · 1.31 KB
/
Copy pathdocker-compose.staging.yml
File metadata and controls
54 lines (51 loc) · 1.31 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
services:
staging-db:
image: pgvector/pgvector:pg16
container_name: staging-rag-db
ports:
# Host:Container. Access from your laptop via 5434, but internal network uses 5432
- "5434:5432"
env_file:
- .env.staging
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DB_NAME}
volumes:
- staging_db_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER} -d ${DB_NAME}"]
interval: 5s
timeout: 5s
retries: 5
backend-api:
build:
context: .
dockerfile: Dockerfile.backend
container_name: staging-rag-backend
ports:
- "8000:8000"
env_file:
- .env.staging
environment:
- APP_ENV=STAGING
- DB_HOST=staging-db # Overrides default 127.0.0.1 to use Docker network DNS
- DB_PORT=5432 # Uses standard internal port
volumes:
- ./data_sandbox:/app/data_sandbox
depends_on:
staging-db:
condition: service_healthy
frontend-ui:
build:
context: .
dockerfile: Dockerfile.frontend
container_name: staging-rag-frontend
ports:
- "8501:8501"
environment:
- BACKEND_API_URL=http://backend-api:8000
depends_on:
- backend-api
volumes:
staging_db_data: