docker-compose.yml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. version: '3.8'
  2. services:
  3. happy-cloud-gateway:
  4. build:
  5. context: ../../../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. - ../../../doc/happycloud/java_opts.env #指定配置文件启动
  14. environment:
  15. - "TZ=Asia/Shanghai"
  16. networks:
  17. - custom_net
  18. happy-cloud-system:
  19. build:
  20. context: ../../../happy-cloud-system/happy-cloud-system-biz
  21. restart: always
  22. container_name: happy-cloud-system
  23. hostname: happy-cloud-system
  24. image: happy-cloud-system
  25. env_file:
  26. - ../../../doc/happycloud/java_opts.env #指定配置文件启动
  27. environment:
  28. - "TZ=Asia/Shanghai"
  29. networks:
  30. - custom_net
  31. happy-cloud-wisdom:
  32. build:
  33. context: ../../../happy-cloud-wisdom/happy-cloud-wisdom-biz
  34. restart: always
  35. container_name: happy-cloud-wisdom
  36. hostname: happy-cloud-wisdom
  37. image: happy-cloud-wisdom
  38. env_file:
  39. - ../../../doc/happycloud/java_opts.env #指定配置文件启动
  40. environment:
  41. - "TZ=Asia/Shanghai"
  42. networks:
  43. - custom_net
  44. #分布式定时任务
  45. happy-cloud-xxl-job:
  46. build:
  47. context: ../../../happy-cloud-xxl-job/happy-cloud-xxl-job-admin
  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. env_file:
  55. - ../../../doc/happycloud/java_opts.env #指定配置文件启动
  56. environment:
  57. - "TZ=Asia/Shanghai"
  58. networks:
  59. - custom_net
  60. happy-cloud-auth:
  61. build:
  62. context: ../../../happy-cloud-auth
  63. restart: always
  64. container_name: happy-cloud-auth
  65. hostname: happy-cloud-auth
  66. image: happy-cloud-auth
  67. env_file:
  68. - ../../../doc/happycloud/java_opts.env #指定配置文件启动
  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. #
  90. # happy-cloud-monitor:
  91. # build:
  92. # context: /mnt/product/cloud/jar/happy-cloud-monitor
  93. # restart: always
  94. # ports:
  95. # - 9111:9111
  96. # container_name: happy-cloud-monitor
  97. # hostname: happy-cloud-monitor
  98. # image: happy-cloud-monitor
  99. # env_file:
  100. # - /mnt/product/cloud/happycloud/java_opts.env #指定配置文件启动
  101. # volumes:
  102. # - /mnt/product/cloud/jar/happy-cloud-monitor/log:/cloud/logs/happy-cloud-monitor
  103. # environment:
  104. # - "TZ=Asia/Shanghai"
  105. # networks:
  106. # - custom_net
  107. networks:
  108. custom_net:
  109. external:
  110. name: app_net