mirror of
https://github.com/Hello-hao/Tbed.git
synced 2024-04-21 12:32:10 +00:00
:rocket:修改配置文件,支持Docker部署
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
\/ /_/ \___|_|_|\___/|_| |_|\__,_|\___/
|
||||
|
||||
__________________________________________
|
||||
HellohaoBlog:http://www.hellohao.cn
|
||||
Hellohao图像托管:https://www.hellohao.cn
|
||||
__________________________________________
|
||||
|
||||
//
|
||||
Reference in New Issue
Block a user