:rocket:修改配置文件,支持Docker部署

This commit is contained in:
hello-hao
2023-03-21 21:15:31 +08:00
parent c3e91f3593
commit 733ec3e6f9
3 changed files with 4 additions and 8 deletions
+3 -6
View File
@@ -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"]
@@ -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
+1 -1
View File
@@ -5,7 +5,7 @@
\/ /_/ \___|_|_|\___/|_| |_|\__,_|\___/
__________________________________________
HellohaoBloghttp://www.hellohao.cn
Hellohao图像托管https://www.hellohao.cn
__________________________________________
//