-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
61 lines (55 loc) · 1.38 KB
/
docker-compose.yml
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
version: '3.8'
services:
# PostgreSQL Database Service
db:
image: postgres:14
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./code/db/db_init.sql:/docker-entrypoint-initdb.d/db_init.sql
environment:
POSTGRES_DB: chatbot_db
POSTGRES_USER: groupone
POSTGRES_PASSWORD: groupOneRocks
# AI Service (FastAPI)
ai-service:
build:
context: ./code/ai-service/fast-api
dockerfile: Dockerfile
ports:
- "9080:9080"
volumes:
- ./code/ai-service/fast-api:/app
env_file:
- .env
command: ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "9080"]
# Backend (Spring Boot)
course-builder-chatbot-ms:
build:
context: ./code/backend/course-builder-chatbot-ms
dockerfile: Dockerfile
ports:
- "8080:8080"
depends_on:
- ai-service
- db
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/chatbot_db
SPRING_DATASOURCE_USERNAME: groupone
SPRING_DATASOURCE_PASSWORD: groupOneRocks
AI_SERVICE_URL: http://ai-service:9080
# Frontend (React + Vite)
frontend:
build:
context: ./code/frontend
dockerfile: Dockerfile
ports:
- "3000:80"
depends_on:
- course-builder-chatbot-ms
volumes:
postgres_data:
networks:
default:
name: seprojects-cs673olf24team1_default