Skip to content

Commit f493571

Browse files
committed
Set container timezone defaults
1 parent 65949c5 commit f493571

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

deploy/.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ IMAGE_TAG=latest
66
# App runtime
77
APP_PORT=9000
88
SPRING_PROFILES_ACTIVE=default
9+
TZ=Asia/Seoul
10+
JAVA_OPTS=-Duser.timezone=Asia/Seoul
911

1012
# Database (MariaDB on Raspberry Pi 4B)
1113
SPRING_DATASOURCE_URL=jdbc:mysql://192.168.0.4:3306/algorithm_blog?serverTimezone=Asia/Seoul

deploy/docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ services:
1212
environment:
1313
SPRING_PROFILES_ACTIVE: ${SPRING_PROFILES_ACTIVE:-default}
1414
SERVER_PORT: "9000"
15+
TZ: ${TZ:-Asia/Seoul}
16+
JAVA_OPTS: ${JAVA_OPTS:-"-Duser.timezone=Asia/Seoul"}
1517
SPRING_DATASOURCE_URL: ${SPRING_DATASOURCE_URL}
1618
SPRING_DATASOURCE_USERNAME: ${DB_USERNAME}
1719
SPRING_DATASOURCE_PASSWORD: ${DB_PASSWORD}

0 commit comments

Comments
 (0)