docker-compose.yml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. container_name: happy-cloud-xxl-job
  50. hostname: happy-cloud-xxl-job
  51. image: happy-cloud-xxl-job
  52. volumes:
  53. - /mnt/product/cloud/jar/happy-cloud-xxl-job/log:/cloud/logs/happy-cloud-xxl-job
  54. environment:
  55. - "TZ=Asia/Shanghai"
  56. networks:
  57. - custom_net
  58. # happy-cloud-auth:
  59. # build:
  60. # context: /mnt/product/cloud/jar/happy-cloud-auth
  61. # restart: always
  62. # container_name: happy-cloud-auth
  63. # hostname: happy-cloud-auth
  64. # image: happy-cloud-auth
  65. # volumes:
  66. # - /mnt/product/cloud/jar/happy-cloud-auth/log:/cloud/logs/happy-cloud-auth
  67. # environment:
  68. # - "TZ=Asia/Shanghai"
  69. # networks:
  70. # - custom_net
  71. #
  72. # #sentinel限流
  73. # happy-cloud-sentinel:
  74. # build:
  75. # context: /mnt/product/cloud/jar/happy-cloud-sentinel
  76. # restart: always
  77. # ports:
  78. # - 8888:8888
  79. # env_file:
  80. # - /mnt/product/cloud/sentinel/env/sentinel.env #指定配置文件启动
  81. # volumes:
  82. # - /mnt/product/cloud/jar/happy-cloud-sentinel/log:/root/logs/csp #日志挂载
  83. # container_name: happy-cloud-sentinel
  84. # hostname: happy-cloud-sentinel
  85. # image: happy-cloud-sentinel
  86. # networks:
  87. # - custom_net
  88. #
  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