docker-compose.yml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. # 使用说明 V3.7.0
  2. # 1. 使用docker-compose 宿主机不需要配置host来发现
  3. # 2. 无需修改源码,根目录 docker-compose up 即可
  4. # 3. 静静等待服务启动
  5. version: '2'
  6. services:
  7. pigx-mysql:
  8. build:
  9. context: ./db
  10. environment:
  11. MYSQL_ROOT_PASSWORD: root
  12. restart: always
  13. container_name: pigx-mysql
  14. image: pigx-mysql
  15. ports:
  16. - 3306:3306
  17. volumes:
  18. - ./pigx-mysql:/var/lib/mysql
  19. command: --lower_case_table_names=1
  20. pigx-zookeeper:
  21. container_name: pigx-zookeeper
  22. image: zookeeper:3.4.13
  23. restart: always
  24. pigx-xxl:
  25. container_name: pigx-xxl
  26. image: pig4cloud/xxl-job-admin:2.1.1
  27. restart: always
  28. environment:
  29. PARAMS: "--server.port=9080 --spring.datasource.url=jdbc:mysql://pigx-mysql:3306/pigxx_job?Unicode=true&characterEncoding=UTF-8 --spring.datasource.username=root --spring.datasource.password=root"
  30. ports:
  31. - 9080:9080
  32. pigx-redis:
  33. container_name: pigx-redis
  34. image: redis:5.0.7
  35. restart: always
  36. ports:
  37. - 6379:6379
  38. pigx-minio:
  39. container_name: pigx-minio
  40. image: minio/minio
  41. command: server /data
  42. ports:
  43. - 9000:9000
  44. volumes:
  45. - ./data:/data
  46. - ./config:/root/.minio
  47. environment:
  48. - MINIO_DOMAIN=pigx-minio
  49. - MINIO_ACCESS_KEY=lengleng
  50. - MINIO_SECRET_KEY=lengleng
  51. pigx-register:
  52. build:
  53. context: ./pigx-register
  54. restart: always
  55. container_name: pigx-register
  56. image: pigx-register
  57. ports:
  58. - 8848:8848
  59. pigx-gateway:
  60. build:
  61. context: ./pigx-gateway
  62. restart: always
  63. container_name: pigx-gateway
  64. image: pigx-gateway
  65. ports:
  66. - 9999:9999
  67. pigx-auth:
  68. build:
  69. context: ./pigx-auth
  70. restart: always
  71. container_name: pigx-auth
  72. image: pigx-auth
  73. pigx-upms:
  74. build:
  75. context: ./pigx-upms/pigx-upms-biz
  76. restart: always
  77. container_name: pigx-upms
  78. image: pigx-upms
  79. pigx-inventory:
  80. build:
  81. context: ./pigx-inventory/pigx-inventory-biz
  82. restart: always
  83. container_name: pigx-inventory
  84. image: pigx-inventory
  85. pigx-monitor:
  86. build:
  87. context: ./pigx-visual/pigx-monitor
  88. restart: always
  89. image: pigx-monitor
  90. container_name: pigx-monitor
  91. ports:
  92. - 5001:5001
  93. pigx-daemon-quartz:
  94. build:
  95. context: ./pigx-visual/pigx-daemon-quartz
  96. restart: always
  97. image: pigx-daemon-quartz
  98. container_name: pigx-daemon-quartz
  99. pigx-daemon-elastic-job:
  100. build:
  101. context: ./pigx-visual/pigx-daemon-elastic-job
  102. restart: always
  103. image: pigx-daemon-elastic-job
  104. container_name: pigx-daemon-elastic-job
  105. pigx-codegen:
  106. build:
  107. context: ./pigx-visual/pigx-codegen
  108. restart: always
  109. image: pigx-codegen
  110. container_name: pigx-codegen
  111. pigx-mp-platform:
  112. build:
  113. context: ./pigx-visual/pigx-mp-platform
  114. restart: always
  115. image: pigx-mp-platform
  116. container_name: pigx-mp-platform
  117. pigx-pay-platform:
  118. build:
  119. context: ./pigx-visual/pigx-pay-platform
  120. restart: always
  121. image: pigx-pay-platform
  122. container_name: pigx-pay-platform
  123. pigx-oa-platform:
  124. build:
  125. context: ./pigx-visual/pigx-oa-platform
  126. restart: always
  127. image: pigx-oa-platform
  128. container_name: pigx-oa-platform
  129. pigx-tx-manager:
  130. build:
  131. context: ./pigx-visual/pigx-tx-manager
  132. restart: always
  133. image: pigx-tx-manager
  134. container_name: pigx-tx-manager
  135. ports:
  136. - 5004:5004
  137. - 9998:9998
  138. pigx-sentinel:
  139. build:
  140. context: ./pigx-visual/pigx-sentinel-dashboard
  141. restart: always
  142. image: pigx-sentinel
  143. container_name: pigx-sentinel
  144. ports:
  145. - 5020:5020