File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,8 +7,12 @@ services:
77 - .env
88 environment :
99 - SPRING_PROFILES_ACTIVE=prod
10+ - TZ=Asia/Seoul
11+ volumes :
12+ - /etc/localtime:/etc/localtime:ro
13+ - /etc/timezone:/etc/timezone:ro
1014 command :
11- - java -Dspring.profiles.active=${SPRING_PROFILES_ACTIVE} -jar app.jar
15+ - java -Duser.timezone=Asia/Seoul - Dspring.profiles.active=${SPRING_PROFILES_ACTIVE} -jar app.jar
1216 # ์คํ ๋ช
๋ น์ด: jar ํ์ผ์ ์คํํ๋ฉด์ Spring ํ๋กํ ํ์ฑํ
1317 depends_on :
1418 - mysql # ์ด ์๋น์ค๊ฐ mysql์ด ๋จผ์ ์คํ๋ ํ ์์๋๋๋ก
@@ -25,15 +29,19 @@ services:
2529 - MYSQL_PASSWORD=cesco07
2630 - MYSQL_ROOT_PASSWORD=1234 # ๋ฃจํธ ๊ณ์ ์ ๋น๋ฐ๋ฒํธ
2731 - TZ=Asia/Seoul
32+ - JAVA_OPTS=-Duser.timezone=Asia/Seoul
2833 command :
2934 - --character-set-server=utf8mb4
3035 - --collation-server=utf8mb4_unicode_ci
3136 - --default-authentication-plugin=mysql_native_password
3237 - --init-connect=SET NAMES utf8mb4
38+ - --default-time-zone=+09:00
3339 volumes :
3440 - mysql-data:/var/lib/mysql
3541 # MySQL์ ๋ฐ์ดํฐ ํ์ผ์ ํธ์คํธ์ ๋ณผ๋ฅจ์ผ๋ก ์๊ตฌ ์ ์ฅ
3642 # ์ปจํ
์ด๋๊ฐ ์ญ์ ๋ผ๋ DB ๋ด์ฉ์ ์ ์ง๋จ
43+ - /etc/localtime:/etc/localtime:ro #
44+ - /etc/timezone:/etc/timezone:ro
3745 networks :
3846 - cesco-network # Spring๊ณผ ๊ฐ์ ๋คํธ์ํฌ ์์ ์์ด์ mysql์ด๋ผ๋ ํธ์คํธ ์ด๋ฆ์ผ๋ก ์ ๊ทผ ๊ฐ๋ฅ
3947
You canโt perform that action at this time.
0 commit comments