docker-compose.yml 3.1 KB

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