forked from Team4-Kitcha/Kitcha
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
180 lines (171 loc) · 4.37 KB
/
docker-compose.yaml
File metadata and controls
180 lines (171 loc) · 4.37 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
services:
mysql:
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
container_name: mysql
volumes:
- mysql_data:/var/lib/mysql
- /sys/fs/cgroup
networks:
- kitcha_network
healthcheck:
test: [ "CMD", "mysqladmin", "-u", "${MYSQL_USER}","-p${MYSQL_PASSWORD}", "ping", "-h", "localhost" ]
interval: 10s
timeout: 5s
retries: 3
ports:
- "3308:3306"
restart: on-failure
config-server:
image: wdd1016/config
build:
context: https://github.com/Team4-Kitcha/Kitcha-BE.git
dockerfile: Config-server/Dockerfile
container_name: config-server
networks:
- kitcha_network
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8071/actuator/health" ]
interval: 10s
timeout: 5s
retries: 3
expose:
- "8071"
depends_on:
mysql:
condition: service_started
restart: on-failure
eureka:
image: wdd1016/eureka
build:
context: https://github.com/Team4-Kitcha/Kitcha-BE.git
dockerfile: eureka/Dockerfile
container_name: eureka
networks:
- kitcha_network
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8761/actuator/health" ]
interval: 10s
timeout: 5s
retries: 3
ports:
- "8761:8761"
depends_on:
config-server:
condition: service_healthy
restart: on-failure
gateway-server:
image: wdd1016/gateway
build:
context: https://github.com/Team4-Kitcha/Kitcha-BE.git
dockerfile: API-Gateway/Dockerfile
environment:
TOKEN_SECRET: ${TOKEN_SECRET}
FRONTEND_SERVER: ${FRONTEND_SERVER}
container_name: gateway-server
networks:
- kitcha_network
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8072/actuator/health" ]
interval: 10s
timeout: 5s
retries: 3
ports:
- "8072:8072"
depends_on:
config-server:
condition: service_healthy
restart: on-failure
auth:
image: wdd1016/auth
build:
context: https://github.com/Team4-Kitcha/Kitcha-Authentication.git
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
TOKEN_SECRET: ${TOKEN_SECRET}
TOKEN_EXPIRATION_TIME: ${TOKEN_EXPIRATION_TIME}
TEST_USER_PASSWORD: ${TEST_USER_PASSWORD}
TEST_ADMIN_PASSWORD: ${TEST_ADMIN_PASSWORD}
container_name: auth
networks:
- kitcha_network
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8091/actuator/health" ]
interval: 10s
timeout: 5s
retries: 3
expose:
- "8091"
depends_on:
mysql:
condition: service_healthy
eureka:
condition: service_healthy
gateway-server:
condition: service_healthy
restart: on-failure
article:
image: wdd1016/article
build:
context: https://github.com/Team4-Kitcha/Kitcha-Article.git
environment:
NAVER_CLIENT_ID: ${NAVER_CLIENT_ID}
NAVER_CLIENT_SECRET: ${NAVER_CLIENT_SECRET}
GROQ_API_KEY: ${GROQ_API_KEY}
container_name: article
networks:
- kitcha_network
expose:
- "8080"
depends_on:
mysql:
condition: service_healthy
eureka:
condition: service_healthy
gateway-server:
condition: service_healthy
restart: on-failure
board:
image: wdd1016/board
build:
context: https://github.com/Team4-Kitcha/Kitcha-Board.git
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
container_name: board
networks:
- kitcha_network
expose:
- "8080"
depends_on:
mysql:
condition: service_healthy
eureka:
condition: service_healthy
gateway-server:
condition: service_healthy
restart: on-failure
frontend:
image: wdd1016/frontend
build:
context: https://github.com/Team4-Kitcha/Kitcha-FE.git
args:
VITE_API_BASE_URL: ${VITE_API_BASE_URL}
container_name: frontend
ports:
- "3000:80"
depends_on:
auth:
condition: service_healthy
restart: on-failure
volumes:
mysql_data:
networks:
kitcha_network: