docker-compose.yml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. version: '3.1'
  2. services:
  3. rabbit:
  4. hostname: rabbitmq
  5. restart: always
  6. container_name: rabbitmq
  7. image: rabbitmq:3-management
  8. ports:
  9. - '5672:5672'
  10. - '15672:15672'
  11. expose:
  12. - 5672
  13. - 15672
  14. privileged: true
  15. volumes:
  16. - ./data/rabbitmq:/var/lib/rabbitmq
  17. command:
  18. - /bin/bash
  19. - -c
  20. - |
  21. (sleep 10;\
  22. rabbitmqctl add_vhost "/ibps";\
  23. rabbitmqctl add_user "ibps" "ibps@123";\
  24. rabbitmqctl set_user_tags "ibps" "administrator";\
  25. rabbitmqctl set_permissions -p "/ibps" "ibps" ".*" ".*" ".*";\
  26. rabbitmqctl add_vhost "/lc";\
  27. rabbitmqctl add_user "lcdatasoft" "lc@123";\
  28. rabbitmqctl set_user_tags "lcdatasoft" "administrator";\
  29. rabbitmqctl set_permissions -p "/lc" "lcdatasoft" ".*" ".*" ".*")&
  30. rabbitmq-server
  31. redis:
  32. hostname: redis
  33. restart: always
  34. container_name: redis
  35. image: redis:4
  36. ports:
  37. - '6379:6379'
  38. expose:
  39. - 6379
  40. privileged: true
  41. volumes:
  42. - ./conf/redis.conf:/usr/local/etc/redis/redis.conf
  43. - ./data/redis:/data/redis
  44. command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
  45. mysql:
  46. hostname: mysql
  47. restart: always
  48. container_name: mysql
  49. image: mysql:5.7
  50. environment:
  51. - MYSQL_ROOT_PASSWORD=root
  52. ports:
  53. - '3306:3306'
  54. expose:
  55. - 3306
  56. privileged: true
  57. volumes:
  58. - ./conf/mysqld.cnf:/etc/mysql/mysql.conf.d/mysqld.cnf
  59. - ./data/mysql:/var/lib/mysql
  60. - ./init/mysql:/docker-entrypoint-initdb.d
  61. fastdfs:
  62. hostname: fastdfs
  63. restart: always
  64. container_name: fastdfs
  65. image: tools.bpmhome.cn:18082/fastdfs
  66. environment:
  67. # 需要替换为实际IP
  68. - IP=192.168.3.230
  69. ports:
  70. - '22122:22122'
  71. - '6666:6666'
  72. - '23000:23000'
  73. - '8888:8888'
  74. expose:
  75. - 22122
  76. - 6666
  77. - 23000
  78. - 8888
  79. privileged: true
  80. volumes:
  81. - ./data/fastdfs:/var/local/fdfs
  82. consul:
  83. hostname: consul
  84. restart: always
  85. container_name: consul
  86. image: consul:1.5
  87. privileged: true
  88. ports:
  89. - 8500:8500
  90. entrypoint: ["docker-entrypoint.sh"]
  91. command: ["agent", "-dev", "-ui", "-client", "0.0.0.0"]
  92. # eureka:
  93. # hostname: eureka
  94. # restart: always
  95. # container_name: eureka
  96. # image: tools.bpmhome.cn:18082/eureka:latest
  97. # env_file:
  98. # - ./env/eureka.docker.env
  99. # ports:
  100. # - 5000:5000
  101. zuul:
  102. hostname: zuul
  103. restart: always
  104. container_name: zuul
  105. image: tools.bpmhome.cn:18082/zuul:latest
  106. env_file:
  107. - ./env/zuul.docker.env
  108. - ./env/provider.docker.env
  109. ports:
  110. - 5100:5100
  111. depends_on:
  112. - "consul"
  113. oauth2server:
  114. hostname: oauth2server
  115. restart: always
  116. container_name: oauth2server
  117. image: tools.bpmhome.cn:18082/oauth2server:latest
  118. env_file:
  119. - ./env/oauth.docker.env
  120. - ./env/provider.docker.env
  121. ports:
  122. - 5200:5200
  123. depends_on:
  124. - "consul"
  125. volumes:
  126. - ./datasource/datasource-platform.xml:/opt/lc/ibps/v3/oauth2server/conf/dataSource-prod.xml
  127. - ./license/ibpsVfy.lic:/opt/lc/ibps/v3/oauth2server/conf/ibpsVfy.lic
  128. - ./license/ibpsPublic.store:/opt/lc/ibps/v3/oauth2server/conf/ibpsPublic.store
  129. - ./license/license.passwd:/opt/lc/ibps/v3/oauth2server/conf/license.passwd
  130. platform:
  131. hostname: platform
  132. restart: always
  133. container_name: platform
  134. image: tools.bpmhome.cn:18082/platform:latest
  135. env_file:
  136. - ./env/platform.docker.env
  137. - ./env/provider.docker.env
  138. ports:
  139. - 5300:5300
  140. depends_on:
  141. - "consul"
  142. volumes:
  143. - ./datasource/datasource-platform.xml:/opt/lc/ibps/v3/platform/conf/dataSource-prod.xml
  144. - ./license/ibpsVfy.lic:/opt/lc/ibps/v3/platform/conf/ibpsVfy.lic
  145. - ./license/ibpsPublic.store:/opt/lc/ibps/v3/platform/conf/ibpsPublic.store
  146. - ./license/license.passwd:/opt/lc/ibps/v3/platform/conf/license.passwd
  147. business:
  148. hostname: business
  149. restart: always
  150. container_name: business
  151. image: tools.bpmhome.cn:18082/business:latest
  152. env_file:
  153. - ./env/business.docker.env
  154. - ./env/provider.docker.env
  155. ports:
  156. - 5305:5305
  157. depends_on:
  158. - "consul"
  159. volumes:
  160. - ./datasource/datasource-business.xml:/opt/lc/ibps/v3/business/conf/dataSource-prod.xml
  161. - ./license/ibpsVfy.lic:/opt/lc/ibps/v3/business/conf/ibpsVfy.lic
  162. - ./license/ibpsPublic.store:/opt/lc/ibps/v3/business/conf/ibpsPublic.store
  163. - ./license/license.passwd:/opt/lc/ibps/v3/business/conf/license.passwd
  164. # from:
  165. # hostname: form
  166. # restart: always
  167. # container_name: from
  168. # image: tools.bpmhome.cn:18082/from:latest
  169. # env_file:
  170. # - ./env/from.docker.env
  171. # - ./env/provider.docker.env
  172. # ports:
  173. # - 5303:5303
  174. # depends_on:
  175. # - "consul"
  176. # volumes:
  177. # - ./datasource/datasource-form.xml:/opt/lc/ibps/v3/form/conf/dataSource-prod.xml
  178. # - ./license/ibpsVfy.lic:/opt/lc/ibps/v3/form/conf/ibpsVfy.lic
  179. # - ./license/ibpsPublic.store:/opt/lc/ibps/v3/form/conf/ibpsPublic.store
  180. # bpmn:
  181. # hostname: bpmn
  182. # restart: always
  183. # container_name: bpmn
  184. # image: tools.bpmhome.cn:18082/bpmn:latest
  185. # env_file:
  186. # - ./env/bpmn.docker.env
  187. # - ./env/provider.docker.env
  188. # ports:
  189. # - 5304:5304
  190. # depends_on:
  191. # - "consul"
  192. # volumes:
  193. # - ./datasource/datasource-bpmn.xml:/opt/lc/ibps/v3/bpmn/conf/dataSource-prod.xml
  194. # - ./license/ibpsVfy.lic:/opt/lc/ibps/v3/bpmn/conf/ibpsVfy.lic
  195. # - ./license/ibpsPublic.store:/opt/lc/ibps/v3/bpmn/conf/ibpsPublic.store
  196. nginx:
  197. hostname: nginx
  198. restart: always
  199. container_name: nginx
  200. image: nginx:1.16-alpine
  201. ports:
  202. - 80:80
  203. depends_on:
  204. - "zuul"
  205. volumes:
  206. - ./conf/nginx.conf:/etc/nginx/nginx.conf
  207. - ./ui:/etc/nginx/html