<#ibiztemplate> TARGET=PSSYSTEM </#ibiztemplate> <#assign dbUserName="root"> <#assign bflag=false> <#if sys.getAllPSDevSlnMSDepAPIs()??> <#list sys.getAllPSDevSlnMSDepAPIs() as depSysApi> <#if depSysApi.getPSDBDevInst()??> <#assign sysApiDBInst=depSysApi.getPSDBDevInst()> <#assign dbUserName=sysApiDBInst.getUserName()> <#if (sysApiDBInst.getDBType()=='POSTGRESQL')> <#assign bflag=true> </#if> <#break> </#if> </#list> </#if> <#if bflag==true> version: "3.2" services: ${sys.name}-postgresql: container_name: postgres image: postgres restart: always environment: POSTGRES_DB: ${dbUserName} POSTGRES_USER: ${dbUserName} POSTGRES_PASSWORD: root ports: - 5432:5432 volumes: - $PWD/../../../../volumes/postgresql/:/var/lib/postgresql/data networks: - agent_network networks: agent_network: attachable: true </#if>