From 733ec3e6f9d08b523050241fb4d7f2d32ae9230b Mon Sep 17 00:00:00 2001 From: hello-hao Date: Tue, 21 Mar 2023 21:15:31 +0800 Subject: [PATCH] =?UTF-8?q?:rocket:=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6=EF=BC=8C=E6=94=AF=E6=8C=81Docker=E9=83=A8?= =?UTF-8?q?=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/Dockerfile-tbed | 9 +++------ src/main/resources/application.properties | 1 - src/main/resources/banner.txt | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/docker/Dockerfile-tbed b/docker/Dockerfile-tbed index d1cc0a0..1e280b9 100644 --- a/docker/Dockerfile-tbed +++ b/docker/Dockerfile-tbed @@ -2,19 +2,16 @@ FROM openjdk:8 MAINTAINER 923453645@qq.com -ARG JAR_FILE -#ADD target/${JAR_FILE} /usr/share/docker-springboot.jar - ADD hellohaotbed/ /hellohaotbed + COPY appstart.sh /appstart.sh COPY application.properties /application.properties -#COPY hellohao /hellohao + COPY Tbed.jar /Tbed.jar EXPOSE 10088 + EXPOSE 10089 CMD ["/bin/bash","/appstart.sh"] -#ENTRYPOINT["/start.sh"] -#ENTRYPOINT ["java","-jar", "./Tbed.jar"] \ No newline at end of file diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index de7de56..5051862 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -8,7 +8,6 @@ spring.datasource.username=root #数据库密码test spring.datasource.password=${MYSQL_PASS:root} #数据库链接地址 -#spring.datasource.url=jdbc:mysql://file.tdo.ink:3306/tbed?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8 spring.datasource.url=${MYSQL_URL:jdbc:mysql://127.0.0.1:3306/tbed?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8} #MySQL Driver 无需修改 spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver diff --git a/src/main/resources/banner.txt b/src/main/resources/banner.txt index 7657e70..1a992db 100644 --- a/src/main/resources/banner.txt +++ b/src/main/resources/banner.txt @@ -5,7 +5,7 @@ \/ /_/ \___|_|_|\___/|_| |_|\__,_|\___/ __________________________________________ - HellohaoBlog:http://www.hellohao.cn + Hellohao图像托管:https://www.hellohao.cn __________________________________________ // \ No newline at end of file