docker-compose.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. version: '2'
  2. services:
  3. jeecg-boot-nacos:
  4. restart: always
  5. build:
  6. context: ./jeecg-cloud-nacos
  7. ports:
  8. - 8848:8848
  9. container_name: jeecg-boot-nacos
  10. hostname: jeecg-boot-nacos
  11. networks:
  12. - jeecg-boot
  13. jeecg-boot-system:
  14. depends_on:
  15. - jeecg-boot-nacos
  16. build:
  17. context: ./jeecg-system-cloud-start
  18. container_name: jeecg-system-start
  19. hostname: jeecg-boot-system
  20. restart: on-failure
  21. environment:
  22. - TZ=Asia/Shanghai
  23. networks:
  24. - jeecg-boot
  25. jeecg-boot-demo:
  26. depends_on:
  27. - jeecg-boot-nacos
  28. build:
  29. context: ./jeecg-demo-cloud-start
  30. container_name: jeecg-demo-start
  31. hostname: jeecg-boot-demo
  32. restart: on-failure
  33. environment:
  34. - TZ=Asia/Shanghai
  35. networks:
  36. - jeecg-boot
  37. jeecg-boot-gateway:
  38. restart: on-failure
  39. build:
  40. context: ./jeecg-cloud-gateway
  41. ports:
  42. - 9999:9999
  43. depends_on:
  44. - jeecg-boot-nacos
  45. - jeecg-boot-system
  46. container_name: jeecg-boot-gateway
  47. hostname: jeecg-boot-gateway
  48. networks:
  49. - jeecg-boot
  50. # jeecg-boot-sentinel:
  51. # restart: on-failure
  52. # build:
  53. # context: ./jeecg-visual/jeecg-cloud-sentinel
  54. # ports:
  55. # - 9000:9000
  56. # depends_on:
  57. # - jeecg-boot-nacos
  58. # - jeecg-boot-demo
  59. # - jeecg-boot-system
  60. # - jeecg-boot-gateway
  61. # container_name: jeecg-boot-sentinel
  62. # hostname: jeecg-boot-sentinel
  63. # networks:
  64. # - jeecg-boot
  65. # jeecg-boot-xxljob:
  66. # build:
  67. # context: ./jeecg-visual/jeecg-cloud-xxljob
  68. # ports:
  69. # - 9080:9080
  70. # container_name: jeecg-boot-xxljob
  71. # hostname: jeecg-boot-xxljob
  72. # networks:
  73. # - jeecg-boot
  74. networks:
  75. jeecg-boot:
  76. name: jeecg_boot