-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
95 lines (87 loc) · 2.04 KB
/
docker-compose.yml
File metadata and controls
95 lines (87 loc) · 2.04 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
version: '3.8'
services:
# Nginx - Reverse Proxy (Port 80 → Services)
nginx:
image: nginx:alpine
container_name: oddiya-nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./ssl:/etc/nginx/ssl:ro
depends_on:
- api-gateway
restart: unless-stopped
networks:
- oddiya-network
# API Gateway - Frontend & Routing (Port 8080)
api-gateway:
build:
context: ./services/api-gateway
dockerfile: Dockerfile
container_name: oddiya-api-gateway
ports:
- "8080:8080"
environment:
- SPRING_PROFILES_ACTIVE=prod
restart: unless-stopped
networks:
- oddiya-network
# Plan Service - Travel Plan API (Port 8083)
plan-service:
build:
context: ./services/plan-service
dockerfile: Dockerfile
container_name: oddiya-plan-service
ports:
- "8083:8083"
environment:
- SPRING_PROFILES_ACTIVE=prod
- LLM_AGENT_URL=http://llm-agent:8000
depends_on:
- llm-agent
restart: unless-stopped
networks:
- oddiya-network
# LLM Agent - AI Plan Generation (Python FastAPI, Port 8000)
llm-agent:
build:
context: ./services/llm-agent
dockerfile: Dockerfile
container_name: oddiya-llm-agent
ports:
- "8000:8000"
environment:
- LLM_PROVIDER=gemini
- GOOGLE_API_KEY=${GOOGLE_API_KEY}
- GEMINI_MODEL=gemini-2.0-flash-exp
- REDIS_HOST=redis
- REDIS_PORT=6379
depends_on:
- redis
restart: unless-stopped
networks:
- oddiya-network
# Redis 7.4 - Cache for LLM responses
redis:
image: redis:7.4-alpine
container_name: oddiya-redis
command: redis-server --appendonly yes
ports:
- "6379:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
restart: unless-stopped
networks:
- oddiya-network
volumes:
redis_data:
networks:
oddiya-network:
driver: bridge