-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (62 loc) · 1.27 KB
/
docker-compose.yml
File metadata and controls
68 lines (62 loc) · 1.27 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
version: '3.8'
services:
# Frontend - React Application
frontend:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:80"
environment:
- NODE_ENV=production
depends_on:
- ml-service
networks:
- autobudget-network
restart: unless-stopped
# ML Service - Python FastAPI
ml-service:
build:
context: ./ml-service
dockerfile: Dockerfile
ports:
- "8000:8000"
environment:
- PYTHONUNBUFFERED=1
networks:
- autobudget-network
restart: unless-stopped
volumes:
- ml-models:/app/models
# Redis - Caching Layer
redis:
image: redis:alpine
ports:
- "6379:6379"
networks:
- autobudget-network
restart: unless-stopped
volumes:
- redis-data:/data
command: redis-server --appendonly yes
# Nginx - Reverse Proxy (optional, for production-like setup)
nginx:
image: nginx:alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/ssl:/etc/nginx/ssl:ro
depends_on:
- frontend
- ml-service
networks:
- autobudget-network
restart: unless-stopped
networks:
autobudget-network:
driver: bridge
volumes:
redis-data:
ml-models: