-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (39 loc) · 976 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
41 lines (39 loc) · 976 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
35
36
37
38
39
40
41
version: '3.8'
services:
rag-system:
build:
context: .
dockerfile: Dockerfile
container_name: financial-rag
image: financial-rag:latest
volumes:
# Mount data directory
- ./data:/app/data
# Mount outputs
- ./outputs:/app/outputs
# Optional: mount code for development
# - ./app:/app/app
environment:
- PYTHONUNBUFFERED=1
# For interactive mode
stdin_open: true
tty: true
# Uncomment for API mode
# ports:
# - "8000:8000"
# command: uvicorn app.api:app --host 0.0.0.0 --port 8000
# Optional: Add a notebook service for experimentation
jupyter:
build:
context: .
dockerfile: Dockerfile
container_name: financial-rag-notebook
volumes:
- ./:/app
ports:
- "8888:8888"
command: >
bash -c "pip install jupyter &&
jupyter notebook --ip=0.0.0.0 --port=8888 --no-browser --allow-root"
profiles:
- dev