docker-compose-bak.yml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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_DATABASE: 'ry-cloud'
  40. MYSQL_ROOT_PASSWORD: Dzx123!@#
  41. ruoyi-redis:
  42. container_name: ruoyi-redis
  43. image: redis
  44. build:
  45. context: ./redis
  46. ports:
  47. - "6379:6379"
  48. volumes:
  49. - ./redis/conf/redis.conf:/home/ruoyi/redis/redis.conf
  50. - ./redis/data:/data
  51. command: redis-server /home/ruoyi/redis/redis.conf
  52. ruoyi-nginx:
  53. container_name: ruoyi-nginx
  54. image: nginx
  55. build:
  56. context: ./nginx
  57. ports:
  58. - "80:80"
  59. volumes:
  60. - ./nginx/html/dist:/home/ruoyi/projects/ruoyi-ui
  61. - ./nginx/conf/nginx.conf:/etc/nginx/nginx.conf
  62. - ./nginx/logs:/var/log/nginx
  63. - ./nginx/conf.d:/etc/nginx/conf.d
  64. depends_on:
  65. - ruoyi-gateway
  66. links:
  67. - ruoyi-gateway
  68. ruoyi-gateway:
  69. container_name: ruoyi-gateway
  70. build:
  71. context: ./ruoyi/gateway
  72. dockerfile: dockerfile
  73. ports:
  74. - "8080:8080"
  75. depends_on:
  76. - ruoyi-redis
  77. links:
  78. - ruoyi-redis
  79. ruoyi-auth:
  80. container_name: ruoyi-auth
  81. build:
  82. context: ./ruoyi/auth
  83. dockerfile: dockerfile
  84. ports:
  85. - "9200:9200"
  86. depends_on:
  87. - ruoyi-redis
  88. links:
  89. - ruoyi-redis
  90. ruoyi-modules-system:
  91. container_name: ruoyi-modules-system
  92. build:
  93. context: ./ruoyi/modules/system
  94. dockerfile: dockerfile
  95. ports:
  96. - "9201:9201"
  97. depends_on:
  98. - ruoyi-redis
  99. - ruoyi-mysql
  100. links:
  101. - ruoyi-redis
  102. - ruoyi-mysql
  103. ruoyi-modules-gen:
  104. container_name: ruoyi-modules-gen
  105. build:
  106. context: ./ruoyi/modules/gen
  107. dockerfile: dockerfile
  108. ports:
  109. - "9202:9202"
  110. depends_on:
  111. - ruoyi-mysql
  112. links:
  113. - ruoyi-mysql
  114. ruoyi-modules-job:
  115. container_name: ruoyi-modules-job
  116. build:
  117. context: ./ruoyi/modules/job
  118. dockerfile: dockerfile
  119. ports:
  120. - "9203:9203"
  121. depends_on:
  122. - ruoyi-mysql
  123. links:
  124. - ruoyi-mysql
  125. ruoyi-modules-file:
  126. container_name: ruoyi-modules-file
  127. build:
  128. context: ./ruoyi/modules/file
  129. dockerfile: dockerfile
  130. ports:
  131. - "9300:9300"
  132. volumes:
  133. - ./ruoyi/uploadPath:/home/ruoyi/uploadPath
  134. ruoyi-visual-monitor:
  135. container_name: ruoyi-visual-monitor
  136. build:
  137. context: ./ruoyi/visual/monitor
  138. dockerfile: dockerfile
  139. ports:
  140. - "9100:9100"