-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (66 loc) · 1.51 KB
/
docker-compose.yml
File metadata and controls
72 lines (66 loc) · 1.51 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
72
version: '3.8'
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "5173:80"
depends_on:
- backend
environment:
- VITE_API_URL=http://localhost:8001
networks:
- finance-bro-network
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "8001:8000"
environment:
- PYTHONUNBUFFERED=1
- NIXTLA_API_KEY=${NIXTLA_API_KEY:-}
- ALPHA_VANTAGE_API_KEY=${ALPHA_VANTAGE_API_KEY:-}
- NEWS_API_KEY=${NEWS_API_KEY:-}
- USE_IBKR=${USE_IBKR:-false}
- IBKR_HOST=${IBKR_HOST:-127.0.0.1}
- IBKR_PORT=${IBKR_PORT:-7497}
- IBKR_CLIENT_ID=${IBKR_CLIENT_ID:-1}
volumes:
- ./backend:/app
- backend_data:/app/data
networks:
- finance-bro-network
restart: unless-stopped
# Optional: Redis for caching
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
networks:
- finance-bro-network
restart: unless-stopped
# Optional: PostgreSQL for persistent data
postgres:
image: postgres:15-alpine
environment:
- POSTGRES_DB=finance_bro
- POSTGRES_USER=finance_bro
- POSTGRES_PASSWORD=finance_bro_password
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- finance-bro-network
restart: unless-stopped
volumes:
backend_data:
redis_data:
postgres_data:
networks:
finance-bro-network:
driver: bridge