-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (48 loc) · 1.25 KB
/
docker-compose.yml
File metadata and controls
51 lines (48 loc) · 1.25 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
version: '3.8'
services:
backend:
build:
context: .
dockerfile: Dockerfile.backend
container_name: finlens-backend
ports:
- "8000:8000"
volumes:
- ./Data:/Data # Data/{account}/{region}/ output
- ./config:/config:ro # profiles.yaml, regions.yaml, services.yaml
- ${HOME}/.aws:/root/.aws:ro # AWS credentials
environment:
- PYTHONPATH=/app
- PYTHONUNBUFFERED=1
networks:
- finlens-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/discovery"]
interval: 10s
timeout: 5s
retries: 30
start_period: 30s
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
container_name: finlens-frontend
ports:
- "5173:5173"
environment:
# Vite proxy forwards /api → this URL (inside Docker network)
- VITE_API_TARGET=http://backend:8000
depends_on:
backend:
condition: service_healthy
networks:
- finlens-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5173"]
interval: 10s
timeout: 5s
retries: 3
start_period: 5s
networks:
finlens-network:
driver: bridge