add docker_init.sh

mysql
wenfei 6 months ago
parent f217888815
commit f126157420

@ -5,9 +5,11 @@
</component>
<component name="ChangeListManager">
<list default="true" id="eacd3dd8-1e95-428c-a6af-1aadb9921989" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/misc.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/Shanghai" afterDir="false" />
<change afterPath="$PROJECT_DIR$/docker_init.sh" afterDir="false" />
<change afterPath="$PROJECT_DIR$/timezone" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/pom.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/resources/application.yml" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/application.yml" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -54,7 +56,7 @@
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="last_opened_file_path" value="$USER_HOME$/Documents/admin-client-temperature" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
<property name="nodejs_package_manager_path" value="npm" />
<property name="project.structure.last.edited" value="SDKs" />
<property name="project.structure.proportion" value="0.0" />
@ -63,6 +65,7 @@
</component>
<component name="RecentsManager">
<key name="CopyFile.RECENT_KEYS">
<recent name="$PROJECT_DIR$" />
<recent name="C:\Users\Administrator\IdeaProjects\admin-client-temperature" />
<recent name="$PROJECT_DIR$/src/main/resources" />
<recent name="$PROJECT_DIR$/src/main/resources/ssl" />
@ -183,6 +186,8 @@
<workItem from="1749707870843" duration="78000" />
<workItem from="1749707980132" duration="12000" />
<workItem from="1749707998868" duration="62000" />
<workItem from="1750390677429" duration="260000" />
<workItem from="1750390947511" duration="101000" />
</task>
<servers />
</component>

Binary file not shown.

@ -0,0 +1,23 @@
#docker init
#docker desktop 以 docket compose 单机卓面的方式运行
#maven环境初始化,如果项目根目录下没有.mvn文件夹需要执行此命令如果有了就不用执行些命令
mvn wrapper:wrapper
#初始化
docker init
#会有如下提示
#? What application platform does your project use? Java
#? What's the relative directory (with a leading .) for your app? ./src
#? What version of Java do you want to use? 17
#? What port does your server listen on? 8080
#编译springboot项目、打包成docker镜像并运行
docker compose up --build -d
#停止容器
docker compose down
#COPY ./Shanghai /etc/localtime
#COPY ./timezone /etc/timezone

@ -15,7 +15,7 @@ spring:
# username: sa
# password: Skyinno251,
#url: jdbc:mysql://192.168.3.29:3306/appserver?useUnicode=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true
#url: jdbc:mysql://127.0.0.1:3306/appserver?useUnicode=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true
url: jdbc:mysql://127.0.0.1:3306/appserver?useUnicode=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true
#url: jdbc:mysql://192.168.2.18:3306/appserver?useUnicode=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true
#url: jdbc:mysql://192.168.1.92:3306/appserver?useUnicode=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true
#url: jdbc:mysql://192.168.3.7:3306/appserver?useUnicode=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true
@ -24,7 +24,7 @@ spring:
#url: jdbc:mysql://192.168.3.24:3306/appserver?useUnicode=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true
#url: jdbc:mysql://192.168.1.24:3306/appserver?useUnicode=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true
#url: jdbc:mysql://47.242.184.139:3306/appserver?useUnicode=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true
url: jdbc:mysql://192.168.3.9:3306/appserver?useUnicode=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true
#url: jdbc:mysql://192.168.3.9:3306/appserver?useUnicode=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true
driverClassName: com.mysql.cj.jdbc.Driver #com.mysql.cj.jdbc.Driver com.mysql.jdbc.Driver
username: root
password: Skyinno251,

@ -0,0 +1 @@
Asia/Shanghai
Loading…
Cancel
Save