forked from KTB-19/movie_chatbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (60 loc) · 1.32 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
version: '3.8'
services:
db:
image: prunsoli/ktb-19-db:1.2
container_name: movie-db-test
restart: always
ports:
- "3306:3306"
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
environment:
- LC_ALL=C.UTF-8 # LC_ALL 환경 변수 추가
networks:
- app-network
web:
image: eddykim3396/ai:latest
container_name: ktb-19-ai
restart: always
ports:
- "8000:8000"
environment:
- PROJECT_NAME=ParseAI
- DATABASE_URL=mysql+aiomysql://root:qlalfqjsgh486@db:3306/moviedatabase
depends_on:
- db
networks:
- app-network
working_dir: /app
# frontend:
# image: ktb19_frontend:latest
# container_name: ktb19-frontend
# restart: always
# ports:
# - "3000:3000"
# networks:
# - app-network
# crawling:
# image: ktb19-crawling:latest
# container_name: ktb19-crawling
# restart: always
# networks:
# - app-network
backend:
image: yohanii/ktb_backend:latest
container_name: ktb19-backend
depends_on:
- db
ports:
- '8080:8080'
environment:
- SPRING_DATASOURCE_URL=jdbc:mysql://db:3306/moviedatabase?serverTimezone=Asia/Seoul
- SPRING_DATASOURCE_USERNAME=root
- SPRING_DATASOURCE_PASSWORD=qlalfqjsgh486
- AI_SERVICE_URL=http://ktb-19-ai:8000/api/v1
networks:
- app-network
networks:
app-network:
driver: bridge