docker-compose.yml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. # 使用说明 V3.8.0
  2. # 1. 使用docker-compose 宿主机不需要配置host来发现
  3. # 2. 无需修改源码,根目录 docker-compose up 即可
  4. # 3. 静静等待服务启动
  5. version: '2'
  6. services:
  7. hnqz-register:
  8. build:
  9. context: ./hnqz-register
  10. restart: always
  11. container_name: hnqz-register
  12. image: hnqz-register
  13. ports:
  14. - 8848:8848
  15. extra_hosts:
  16. - "hnqz-register:172.21.0.7"
  17. - "hnqz-gateway:172.21.0.7"
  18. - "hnqz-redis:172.21.0.7"
  19. - "hnqz-zookeeper:172.21.0.7"
  20. - "hnqz-xxl:172.21.0.7"
  21. - "hnqz-mysql:172.21.0.7"
  22. - "hnqz-sentinel:172.21.0.71"
  23. hnqz-gateway:
  24. build:
  25. context: ./hnqz-gateway
  26. restart: always
  27. container_name: hnqz-gateway
  28. image: hnqz-gateway
  29. ports:
  30. - 9999:9999
  31. extra_hosts:
  32. - "hnqz-register:172.21.0.7"
  33. - "hnqz-gateway:172.21.0.7"
  34. - "hnqz-redis:172.21.0.7"
  35. - "hnqz-zookeeper:172.21.0.7"
  36. - "hnqz-xxl:172.21.0.7"
  37. - "hnqz-mysql:172.21.0.7"
  38. - "hnqz-sentinel:172.21.0.71"
  39. hnqz-auth:
  40. build:
  41. context: ./hnqz-auth
  42. restart: always
  43. container_name: hnqz-auth
  44. image: hnqz-auth
  45. extra_hosts:
  46. - "hnqz-register:172.21.0.7"
  47. - "hnqz-gateway:172.21.0.7"
  48. - "hnqz-redis:172.21.0.7"
  49. - "hnqz-zookeeper:172.21.0.7"
  50. - "hnqz-xxl:172.21.0.7"
  51. - "hnqz-mysql:172.21.0.7"
  52. - "hnqz-sentinel:172.21.0.71"
  53. hnqz-daemon-quartz:
  54. build:
  55. context: ./hnqz-visual/hnqz-daemon-quartz
  56. restart: always
  57. image: hnqz-daemon-quartz
  58. container_name: hnqz-daemon-quartz
  59. extra_hosts:
  60. - "hnqz-register:172.21.0.7"
  61. - "hnqz-gateway:172.21.0.7"
  62. - "hnqz-redis:172.21.0.7"
  63. - "hnqz-zookeeper:172.21.0.7"
  64. - "hnqz-xxl:172.21.0.7"
  65. - "hnqz-mysql:172.21.0.7"
  66. - "hnqz-sentinel:172.21.0.71"
  67. hnqz-upms:
  68. build:
  69. context: ./hnqz-upms/hnqz-upms-biz
  70. restart: always
  71. container_name: hnqz-upms
  72. image: hnqz-upms
  73. extra_hosts:
  74. - "hnqz-register:172.21.0.7"
  75. - "hnqz-gateway:172.21.0.7"
  76. - "hnqz-redis:172.21.0.7"
  77. - "hnqz-zookeeper:172.21.0.7"
  78. - "hnqz-xxl:172.21.0.7"
  79. - "hnqz-mysql:172.21.0.7"
  80. - "hnqz-sentinel:172.21.0.71"
  81. # hnqz-monitor:
  82. # build:
  83. # context: ./hnqz-visual/hnqz-monitor
  84. # restart: always
  85. # image: hnqz-monitor
  86. # container_name: hnqz-monitor
  87. # ports:
  88. # - 5001:5001
  89. #
  90. # hnqz-daemon-elastic-job:
  91. # build:
  92. # context: ./hnqz-visual/hnqz-daemon-elastic-job
  93. # restart: always
  94. # image: hnqz-daemon-elastic-job
  95. # container_name: hnqz-daemon-elastic-job
  96. # hnqz-codegen:
  97. # build:
  98. # context: ./hnqz-visual/hnqz-codegen
  99. # restart: always
  100. # image: hnqz-codegen
  101. # container_name: hnqz-codegen
  102. # hnqz-mp-platform:
  103. # build:
  104. # context: ./hnqz-visual/hnqz-mp-platform
  105. # restart: always
  106. # image: hnqz-mp-platform
  107. # container_name: hnqz-mp-platform
  108. #
  109. # hnqz-pay-platform:
  110. # build:
  111. # context: ./hnqz-visual/hnqz-pay-platform
  112. # restart: always
  113. # image: hnqz-pay-platform
  114. # container_name: hnqz-pay-platform
  115. #
  116. # hnqz-oa-platform:
  117. # build:
  118. # context: ./hnqz-visual/hnqz-oa-platform
  119. # restart: always
  120. # image: hnqz-oa-platform
  121. # container_name: hnqz-oa-platform
  122. #
  123. # hnqz-tx-manager:
  124. # build:
  125. # context: ./hnqz-visual/hnqz-tx-manager
  126. # restart: always
  127. # image: hnqz-tx-manager
  128. # container_name: hnqz-tx-manager
  129. # ports:
  130. # - 5004:5004
  131. # - 9998:9998
  132. #
  133. # hnqz-sentinel:
  134. # build:
  135. # context: ./hnqz-visual/hnqz-sentinel-dashboard
  136. # restart: always
  137. # image: hnqz-sentinel
  138. # container_name: hnqz-sentinel
  139. # ports:
  140. # - 5020:5020