提交 9ca7a64a 编写于 作者: zhouweidong's avatar zhouweidong

app补充portmap

上级 112c83a6
...@@ -10,6 +10,7 @@ TARGET=PSSYSAPP ...@@ -10,6 +10,7 @@ TARGET=PSSYSAPP
<#assign dbPassWord="123456"> <#assign dbPassWord="123456">
<#assign dbUrl="jdbc:mysql://127.0.0.1:3306/"+sys.name+"?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true"> <#assign dbUrl="jdbc:mysql://127.0.0.1:3306/"+sys.name+"?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true">
<#assign dbDriver="com.mysql.jdbc.Driver"> <#assign dbDriver="com.mysql.jdbc.Driver">
<#assign dockerPortMap="">
<#if sysrun?? && sysrun.getPSDevSlnMSDepApp()??> <#if sysrun?? && sysrun.getPSDevSlnMSDepApp()??>
<#assign depApp=sysrun.getPSDevSlnMSDepApp()> <#assign depApp=sysrun.getPSDevSlnMSDepApp()>
<#if depApp.getHttpPort()??> <#if depApp.getHttpPort()??>
...@@ -36,6 +37,11 @@ TARGET=PSSYSAPP ...@@ -36,6 +37,11 @@ TARGET=PSSYSAPP
<#elseif appPlatform.getUserParam("spring.redis.database","")?? && appPlatform.getUserParam("spring.redis.database","")!=""> <#elseif appPlatform.getUserParam("spring.redis.database","")?? && appPlatform.getUserParam("spring.redis.database","")!="">
<#assign redisDataBase = appPlatform.getUserParam("spring.redis.database","")> <#assign redisDataBase = appPlatform.getUserParam("spring.redis.database","")>
</#if> </#if>
<#if depApp.getUserParam("portmap","")?? && depApp.getUserParam("portmap","")!="">
<#assign dockerPortMap = depApp.getUserParam("portmap","")>
<#elseif appPlatform.getUserParam("portmap","")?? && appPlatform.getUserParam("portmap","")!="">
<#assign dockerPortMap = appPlatform.getUserParam("portmap","")>
</#if>
</#if> </#if>
</#if> </#if>
<#comment>数据库配置</#comment> <#comment>数据库配置</#comment>
...@@ -65,6 +71,9 @@ services: ...@@ -65,6 +71,9 @@ services:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/${pub.getCodeName()?lower_case}-app-${app.getPKGCodeName()?lower_case}:latest image: registry.cn-shanghai.aliyuncs.com/ibizsys/${pub.getCodeName()?lower_case}-app-${app.getPKGCodeName()?lower_case}:latest
ports: ports:
- "${httpPort}:${httpPort}" - "${httpPort}:${httpPort}"
<#if dockerPortMap!=''>
- "${dockerPortMap}"
</#if>
networks: networks:
- agent_network - agent_network
<#if sysrun?? && sysrun.getPSDevSlnMSDepApp()?? && sysrun.getPSDevSlnMSDepApp().getPSDCMSPlatformNode()??> <#if sysrun?? && sysrun.getPSDevSlnMSDepApp()?? && sysrun.getPSDevSlnMSDepApp().getPSDCMSPlatformNode()??>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册