docker-compose.yml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. version : '3.8'
  2. services:
  3. ruoyi-nacos:
  4. container_name: ruoyi-nacos
  5. image: nacos/nacos-server
  6. build:
  7. context: ./nacos
  8. environment:
  9. - MODE=standalone
  10. volumes:
  11. - ./nacos/logs/:/home/nacos/logs
  12. - ./nacos/conf/application.properties:/home/nacos/conf/application.properties
  13. ports:
  14. - "8848:8848"
  15. - "9848:9848"
  16. - "9849:9849"
  17. depends_on:
  18. - ruoyi-mysql
  19. ruoyi-mysql:
  20. container_name: ruoyi-mysql
  21. image: mysql:5.7
  22. build:
  23. context: ./mysql
  24. ports:
  25. - "3306:3306"
  26. volumes:
  27. - ./mysql/conf:/etc/mysql/conf.d
  28. - ./mysql/logs:/logs
  29. - ./mysql/data:/var/lib/mysql
  30. command: [
  31. 'mysqld',
  32. '--innodb-buffer-pool-size=80M',
  33. '--character-set-server=utf8mb4',
  34. '--collation-server=utf8mb4_unicode_ci',
  35. '--default-time-zone=+8:00',
  36. '--lower-case-table-names=1'
  37. ]
  38. environment:
  39. MYSQL_ROOT_PASSWORD: Root123!@#
  40. ruoyi-redis:
  41. container_name: ruoyi-redis
  42. image: redis
  43. build:
  44. context: ./redis
  45. ports:
  46. - "6379:6379"
  47. volumes:
  48. - ./redis/conf/redis.conf:/home/ruoyi/redis/redis.conf
  49. - ./redis/data:/data
  50. command: redis-server /home/ruoyi/redis/redis.conf
  51. ruoyi-nginx:
  52. container_name: ruoyi-nginx
  53. image: nginx
  54. build:
  55. context: ./nginx
  56. ports:
  57. - "80:80"
  58. volumes:
  59. - ./nginx/html/dist:/home/ruoyi/projects/ruoyi-ui
  60. - ./nginx/conf/nginx.conf:/etc/nginx/nginx.conf
  61. - ./nginx/logs:/var/log/nginx
  62. - ./nginx/conf.d:/etc/nginx/conf.d
  63. depends_on:
  64. - ruoyi-gateway
  65. links:
  66. - ruoyi-gateway
  67. environment:
  68. - TZ=Asia/Shanghai
  69. bidding-nginx:
  70. container_name: bidding-nginx
  71. image: nginx
  72. build:
  73. context: ./bidding
  74. ports:
  75. - "81:80"
  76. volumes:
  77. - ./bidding/html/dist:/home/ruoyi/projects/bidding-ui
  78. - ./bidding/conf/nginx.conf:/etc/nginx/nginx.conf
  79. - ./bidding/logs:/var/log/nginx
  80. - ./bidding/conf.d:/etc/nginx/conf.d
  81. depends_on:
  82. - ruoyi-gateway
  83. links:
  84. - ruoyi-gateway
  85. environment:
  86. - TZ=Asia/Shanghai
  87. ruoyi-gateway:
  88. container_name: ruoyi-gateway
  89. build:
  90. context: ./ruoyi/gateway
  91. dockerfile: dockerfile
  92. ports:
  93. - "8080:8080"
  94. - "8719:8719"
  95. depends_on:
  96. - ruoyi-redis
  97. links:
  98. - ruoyi-redis
  99. environment:
  100. - TZ=Asia/Shanghai
  101. ruoyi-sentinel:
  102. container_name: ruoyi-sentinel
  103. build:
  104. context: ./sentinel
  105. dockerfile: dockerfile
  106. ports:
  107. - "8718:8718"
  108. depends_on:
  109. - ruoyi-gateway
  110. links:
  111. - ruoyi-gateway
  112. ruoyi-auth:
  113. container_name: ruoyi-auth
  114. build:
  115. context: ./ruoyi/auth
  116. dockerfile: dockerfile
  117. ports:
  118. - "9200:9200"
  119. depends_on:
  120. - ruoyi-redis
  121. links:
  122. - ruoyi-redis
  123. environment:
  124. - TZ=Asia/Shanghai
  125. ruoyi-modules-system:
  126. container_name: ruoyi-modules-system
  127. build:
  128. context: ./ruoyi/modules/system
  129. dockerfile: dockerfile
  130. ports:
  131. - "9201:9201"
  132. depends_on:
  133. - ruoyi-redis
  134. - ruoyi-mysql
  135. links:
  136. - ruoyi-redis
  137. - ruoyi-mysql
  138. environment:
  139. - TZ=Asia/Shanghai
  140. ruoyi-modules-gen:
  141. container_name: ruoyi-modules-gen
  142. build:
  143. context: ./ruoyi/modules/gen
  144. dockerfile: dockerfile
  145. ports:
  146. - "9202:9202"
  147. depends_on:
  148. - ruoyi-mysql
  149. links:
  150. - ruoyi-mysql
  151. ruoyi-modules-job:
  152. container_name: ruoyi-modules-job
  153. build:
  154. context: ./ruoyi/modules/job
  155. dockerfile: dockerfile
  156. ports:
  157. - "9203:9203"
  158. environment:
  159. - TZ=Asia/Shanghai
  160. depends_on:
  161. - ruoyi-mysql
  162. links:
  163. - ruoyi-mysql
  164. ruoyi-modules-file:
  165. container_name: ruoyi-modules-file
  166. build:
  167. context: ./ruoyi/modules/file
  168. dockerfile: dockerfile
  169. ports:
  170. - "9610:9610"
  171. volumes:
  172. - ./ruoyi/uploadPath:/home/ruoyi/uploadPath
  173. environment:
  174. - TZ=Asia/Shanghai
  175. ruoyi-visual-monitor:
  176. container_name: ruoyi-visual-monitor
  177. build:
  178. context: ./ruoyi/visual/monitor
  179. dockerfile: dockerfile
  180. ports:
  181. - "9100:9100"
  182. hh-basic:
  183. container_name: hh-basic
  184. build:
  185. context: ./ruoyi/modules/basic
  186. dockerfile: dockerfile
  187. volumes:
  188. - ./ruoyi/modules/basic/jar/bootstrap.yml:/home/ruoyi/bootstrap.yml
  189. environment:
  190. - TZ=Asia/Shanghai
  191. ports:
  192. - "9999:9999"
  193. depends_on:
  194. - ruoyi-mysql
  195. links:
  196. - ruoyi-mysql
  197. hh-bidding:
  198. container_name: hh-bidding
  199. build:
  200. context: ./ruoyi/modules/bidding
  201. dockerfile: dockerfile
  202. volumes:
  203. - ./ruoyi/modules/bidding/jar/bootstrap.yml:/home/ruoyi/bootstrap.yml
  204. environment:
  205. - TZ=Asia/Shanghai
  206. ports:
  207. - "9209:9209"
  208. depends_on:
  209. - ruoyi-mysql
  210. links:
  211. - ruoyi-mysql
  212. hh-nonbidding:
  213. container_name: hh-nonbidding
  214. build:
  215. context: ./ruoyi/modules/nonbidding
  216. dockerfile: dockerfile
  217. volumes:
  218. - ./ruoyi/modules/nonbidding/jar/bootstrap.yml:/home/ruoyi/bootstrap.yml
  219. ports:
  220. - "9211:9211"
  221. depends_on:
  222. - ruoyi-mysql
  223. links:
  224. - ruoyi-mysql
  225. hh-procure:
  226. container_name: hh-procure
  227. build:
  228. context: ./ruoyi/modules/procure
  229. dockerfile: dockerfile
  230. volumes:
  231. - ./ruoyi/modules/procure/jar/bootstrap.yml:/home/ruoyi/bootstrap.yml
  232. environment:
  233. - TZ=Asia/Shanghai
  234. ports:
  235. - "9230:9230"
  236. depends_on:
  237. - ruoyi-mysql
  238. links:
  239. - ruoyi-mysql
  240. hh-mast:
  241. container_name: hh-mast
  242. build:
  243. context: ./ruoyi/modules/mast
  244. dockerfile: dockerfile
  245. volumes:
  246. - ./ruoyi/modules/mast/jar/bootstrap.yml:/home/ruoyi/bootstrap.yml
  247. environment:
  248. - TZ=Asia/Shanghai
  249. ports:
  250. - "9300:9300"
  251. depends_on:
  252. - ruoyi-mysql
  253. links:
  254. - ruoyi-mysql