-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
71 lines (60 loc) · 1.7 KB
/
docker-compose.yml
File metadata and controls
71 lines (60 loc) · 1.7 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
71
# FinGPT Docker Compose Configuration
# Quick start: docker compose up
services:
api:
build: ./Main/backend
ports:
- "8000:8000"
env_file:
- ./Main/backend/.env # API keys and configuration
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8000/health/" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 1m
restart: unless-stopped
develop:
watch:
- action: sync
path: ./Main/backend
target: /app
ignore:
- .venv/
- node_modules/
- __pycache__/
- "*.log"
- embeddings.pkl
- fine_tuning_data.pkl
- action: rebuild
path: ./Main/backend/pyproject.toml
- action: rebuild
path: ./Main/backend/uv.lock
# Optional: Mount for live development (read-only for safety)
volumes:
- ./Main/backend/api:/app/api
- ./Main/backend/datascraper:/app/datascraper
- ./Main/backend/mcp_client:/app/mcp_client
- ./Main/backend/mcp_server:/app/mcp_server
- ./Main/backend/django_config:/app/django_config
- session_cache:/tmp/fingpt_cache
networks:
- fingpt_network
frontend:
# Frontend extension build service (optional, for development)
# Uncomment to build extension alongside backend
# build: ./Main/frontend
# command: bun run watch
# volumes:
# - ./Main/frontend/src:/app/src:ro
# - ./Main/frontend/dist:/app/dist:rw
# networks:
# - fingpt_network
profiles:
- dev # Only runs with: docker compose --profile dev up
volumes:
session_cache:
driver: local
networks:
fingpt_network:
driver: bridge