docker-compose-app.yml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. version: '3.1'
  2. services:
  3. consul:
  4. hostname: consul
  5. restart: always
  6. container_name: consul
  7. image: consul:1.5
  8. privileged: true
  9. ports:
  10. - 38500:8500
  11. entrypoint: ["docker-entrypoint.sh"]
  12. command: ["agent", "-dev", "-ui", "-client", "0.0.0.0"]
  13. zuul:
  14. hostname: zuul
  15. restart: always
  16. container_name: zuul
  17. image: tools.bpmhome.cn:18082/zuul:latest
  18. privileged: true
  19. env_file:
  20. - ./env/ibps.sw.env
  21. - ./env/zuul.docker.env
  22. - ./env/provider.docker.env
  23. ports:
  24. - 35100:5100
  25. depends_on:
  26. - "consul"
  27. volumes:
  28. - ./agent:/opt/lc/ibps/v3/agent
  29. - ./log/zuul:/tmp/ibps/v3/logs
  30. oauth2server:
  31. hostname: oauth2server
  32. restart: always
  33. container_name: oauth2server
  34. image: tools.bpmhome.cn:18082/oauth2server:latest
  35. privileged: true
  36. env_file:
  37. - ./env/ibps.sw.env
  38. - ./env/oauth.docker.env
  39. - ./env/provider.docker.env
  40. ports:
  41. - 35200:5200
  42. depends_on:
  43. - "consul"
  44. volumes:
  45. - ./agent:/opt/lc/ibps/v3/agent
  46. - ./log/oauth2server:/opt/lc/ibps/v3/oauth2server/logs
  47. - ./datasource/datasource-mysql-platform.xml:/opt/lc/ibps/v3/oauth2server/conf/dataSource-prod.xml
  48. - ./license/ibpsVfy.lic:/opt/lc/ibps/v3/oauth2server/conf/ibpsVfy.lic
  49. - ./license/ibpsPublic.store:/opt/lc/ibps/v3/oauth2server/conf/ibpsPublic.store
  50. - ./license/license.passwd:/opt/lc/ibps/v3/oauth2server/conf/license.passwd
  51. platform:
  52. hostname: platform
  53. restart: always
  54. container_name: platform
  55. image: tools.bpmhome.cn:18082/platform:latest
  56. privileged: true
  57. env_file:
  58. - ./env/ibps.sw.env
  59. - ./env/platform.docker.env
  60. - ./env/provider.docker.env
  61. ports:
  62. - 35300:5300
  63. - 35888:5888
  64. depends_on:
  65. - "consul"
  66. volumes:
  67. - ./agent:/opt/lc/ibps/v3/agent
  68. - ./log/platform:/opt/lc/ibps/v3/platform/logs
  69. - ./datasource/datasource-mysql-platform.xml:/opt/lc/ibps/v3/platform/conf/dataSource-prod.xml
  70. - ./license/ibpsVfy.lic:/opt/lc/ibps/v3/platform/conf/ibpsVfy.lic
  71. - ./license/ibpsPublic.store:/opt/lc/ibps/v3/platform/conf/ibpsPublic.store
  72. - ./license/license.passwd:/opt/lc/ibps/v3/platform/conf/license.passwd
  73. business:
  74. hostname: business
  75. restart: always
  76. container_name: business
  77. image: tools.bpmhome.cn:18082/business:latest
  78. privileged: true
  79. env_file:
  80. - ./env/ibps.sw.env
  81. - ./env/business.docker.env
  82. - ./env/provider.docker.env
  83. ports:
  84. - 35305:5305
  85. depends_on:
  86. - "consul"
  87. volumes:
  88. - ./agent:/opt/lc/ibps/v3/agent
  89. - ./log/business:/opt/lc/ibps/v3/business/logs
  90. - ./datasource/datasource-mysql-business.xml:/opt/lc/ibps/v3/business/conf/dataSource-prod.xml
  91. - ./license/ibpsVfy.lic:/opt/lc/ibps/v3/business/conf/ibpsVfy.lic
  92. - ./license/ibpsPublic.store:/opt/lc/ibps/v3/business/conf/ibpsPublic.store
  93. - ./license/license.passwd:/opt/lc/ibps/v3/business/conf/license.passwd
  94. nginx:
  95. hostname: nginx
  96. restart: always
  97. container_name: nginx
  98. image: nginx:1.16-alpine
  99. privileged: true
  100. ports:
  101. - 380:80
  102. depends_on:
  103. - "zuul"
  104. volumes:
  105. - ./conf/nginx.conf:/etc/nginx/nginx.conf
  106. - ./ui:/etc/nginx/html
  107. - ./app-ui:/etc/nginx/html/app