docker-compose.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. jeecg-boot-system:
  12. depends_on:
  13. - jeecg-boot-nacos
  14. build:
  15. context: ./jeecg-system-cloud-start
  16. container_name: jeecg-system-start
  17. hostname: jeecg-boot-system
  18. restart: on-failure
  19. environment:
  20. - TZ=Asia/Shanghai
  21. jeecg-boot-demo:
  22. depends_on:
  23. - jeecg-boot-nacos
  24. build:
  25. context: ./jeecg-demo-cloud-start
  26. container_name: jeecg-demo-start
  27. hostname: jeecg-boot-demo
  28. restart: on-failure
  29. environment:
  30. - TZ=Asia/Shanghai
  31. jeecg-boot-gateway:
  32. restart: on-failure
  33. build:
  34. context: ./jeecg-cloud-gateway
  35. ports:
  36. - 9999:9999
  37. depends_on:
  38. - jeecg-boot-nacos
  39. - jeecg-boot-system
  40. container_name: jeecg-boot-gateway
  41. hostname: jeecg-boot-gateway
  42. jeecg-boot-sentinel:
  43. restart: on-failure
  44. build:
  45. context: ./jeecg-cloud-sentinel
  46. ports:
  47. - 9000:9000
  48. depends_on:
  49. - jeecg-boot-nacos
  50. - jeecg-boot-demo
  51. - jeecg-boot-system
  52. - jeecg-boot-gateway
  53. container_name: jeecg-boot-sentinel
  54. hostname: jeecg-boot-sentinel
  55. # jeecg-boot-xxljob:
  56. # build:
  57. # context: ./jeecg-cloud-xxljob
  58. # ports:
  59. # - 9080:9080
  60. # container_name: jeecg-boot-xxljob
  61. # hostname: jeecg-boot-xxljob