docker-compose.yml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. version: '3.8'
  2. services:
  3. happy-cloud-gateway:
  4. build:
  5. context: /mnt/product/cloud/jar/happy-cloud-gateway
  6. restart: always
  7. ports:
  8. - 9999:9999
  9. container_name: happy-cloud-gateway
  10. hostname: happy-cloud-gateway
  11. image: happy-cloud-gateway
  12. env_file:
  13. - /mnt/product/cloud/happycloud/java_opts.env #指定配置文件启动
  14. volumes:
  15. - /mnt/product/cloud/jar/happy-cloud-gateway/log:/cloud/logs/happy-cloud-gateway #挂载logback日志
  16. environment:
  17. - "TZ=Asia/Shanghai"
  18. networks:
  19. - custom_net
  20. happy-cloud-system:
  21. build:
  22. context: /mnt/product/cloud/jar/happy-cloud-system-biz
  23. restart: always
  24. container_name: happy-cloud-system
  25. hostname: happy-cloud-system
  26. image: happy-cloud-system
  27. env_file:
  28. - /mnt/product/cloud/happycloud/java_opts.env #指定配置文件启动
  29. volumes:
  30. - /mnt/product/cloud/jar/happy-cloud-system-biz/log:/cloud/logs/happy-cloud-system-biz #挂载logback日志
  31. environment:
  32. - "TZ=Asia/Shanghai"
  33. networks:
  34. - custom_net
  35. happy-cloud-wisdom:
  36. build:
  37. context: /mnt/product/cloud/jar/happy-cloud-wisdom-biz
  38. restart: always
  39. container_name: happy-cloud-wisdom
  40. hostname: happy-cloud-wisdom
  41. image: happy-cloud-wisdom
  42. env_file:
  43. - /mnt/product/cloud/happycloud/java_opts.env #指定配置文件启动
  44. volumes:
  45. - /mnt/product/cloud/jar/happy-cloud-wisdom-biz/log:/cloud/logs/happy-cloud-wisdom-biz
  46. environment:
  47. - "TZ=Asia/Shanghai"
  48. networks:
  49. - custom_net
  50. #分布式定时任务
  51. happy-cloud-xxl-job:
  52. build:
  53. context: /mnt/product/cloud/jar/happy-cloud-xxl-job
  54. restart: always
  55. ports:
  56. - 9004:8004
  57. container_name: happy-cloud-xxl-job
  58. hostname: happy-cloud-xxl-job
  59. image: happy-cloud-xxl-job
  60. env_file:
  61. - /mnt/product/cloud/happycloud/java_opts.env #指定配置文件启动
  62. volumes:
  63. - /mnt/product/cloud/jar/happy-cloud-xxl-job/log:/cloud/logs/happy-cloud-xxl-job
  64. environment:
  65. - "TZ=Asia/Shanghai"
  66. networks:
  67. - custom_net
  68. happy-cloud-auth:
  69. build:
  70. context: /mnt/product/cloud/jar/happy-cloud-auth
  71. restart: always
  72. container_name: happy-cloud-auth
  73. hostname: happy-cloud-auth
  74. image: happy-cloud-auth
  75. env_file:
  76. - /mnt/product/cloud/happycloud/java_opts.env #指定配置文件启动
  77. volumes:
  78. - /mnt/product/cloud/jar/happy-cloud-auth/log:/cloud/logs/happy-cloud-auth
  79. environment:
  80. - "TZ=Asia/Shanghai"
  81. networks:
  82. - custom_net
  83. #sentinel限流
  84. happy-cloud-sentinel:
  85. build:
  86. context: /mnt/product/cloud/jar/happy-cloud-sentinel
  87. restart: always
  88. ports:
  89. - 8888:8888
  90. env_file:
  91. - /mnt/product/cloud/sentinel/env/sentinel.env #指定配置文件启动
  92. volumes:
  93. - /mnt/product/cloud/jar/happy-cloud-sentinel/log:/root/logs/csp #日志挂载
  94. container_name: happy-cloud-sentinel
  95. hostname: happy-cloud-sentinel
  96. image: happy-cloud-sentinel
  97. networks:
  98. - custom_net
  99. happy-cloud-monitor:
  100. build:
  101. context: /mnt/product/cloud/jar/happy-cloud-monitor
  102. restart: always
  103. ports:
  104. - 9111:9111
  105. container_name: happy-cloud-monitor
  106. hostname: happy-cloud-monitor
  107. image: happy-cloud-monitor
  108. env_file:
  109. - /mnt/product/cloud/happycloud/java_opts.env #指定配置文件启动
  110. volumes:
  111. - /mnt/product/cloud/jar/happy-cloud-monitor/log:/cloud/logs/happy-cloud-monitor
  112. environment:
  113. - "TZ=Asia/Shanghai"
  114. networks:
  115. - custom_net
  116. networks:
  117. custom_net:
  118. external:
  119. name: app_net