Skip to content

Commit 9d58c2a

Browse files
authored
perf(jvm): 取消docker硬性设置, 改成compose环境变量配置 (#13)
1 parent 1e7e7eb commit 9d58c2a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

jtt808/compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ services:
1515
- "/data/jtt808:/data/jtt808"
1616
- "/data/logs/jtt808:/logs"
1717
environment:
18+
- JAVA_TOOL_OPTIONS=-Xms1024m -Xmx2048m
1819
# 监听端口
1920
- gateway_ip=${JTT808_IP:?required}
2021
- gateway_port=${JTT808_PORT}

maintain/compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ services:
1010
ports:
1111
- ${MAINTAIN_PORT:-8080}:8080
1212
environment:
13+
- JAVA_TOOL_OPTIONS=-Xms1024m -Xmx2048m
1314
# DB
1415
- SPRING_DATASOURCE_URL=jdbc:mysql://${MYSQL_HOST:-mysql8}:${MYSQL_PORT:-3306}/maintain?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
1516
- SPRING_DATASOURCE_USERNAME=${MYSQL_USERNAME:-root}

0 commit comments

Comments
 (0)