docker-compose.yml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. # 使用说明 V2.1.0
  2. # 1. 使用docker-compose 宿主机不需要配置host来发现
  3. # 2. 无需修改源码,根目录 docker-compose up 即可
  4. # 3. 静静等待服务启动
  5. version: '2'
  6. services:
  7. pigx-mysql:
  8. build:
  9. context: ./
  10. dockerfile: ./db/Dockerfile
  11. environment:
  12. MYSQL_ROOT_PASSWORD: root
  13. restart: always
  14. container_name: pigx-mysql
  15. image: pigx-mysql
  16. ports:
  17. - 3306:3306
  18. pigx-zookeeper:
  19. image: zookeeper:3.4.13
  20. restart: always
  21. pigx-redis:
  22. image: redis:4.0.10
  23. restart: always
  24. container_name: pigx-redis
  25. pigx-eureka:
  26. build:
  27. context: ./
  28. dockerfile: ./pigx-eureka/Dockerfile
  29. restart: always
  30. container_name: pigx-eureka
  31. image: pigx-eureka
  32. ports:
  33. - 8761:8761
  34. pigx-config:
  35. build:
  36. context: ./
  37. dockerfile: ./pigx-config/Dockerfile
  38. restart: always
  39. container_name: pigx-config
  40. image: pigx-config
  41. pigx-gateway:
  42. build:
  43. context: ./
  44. dockerfile: ./pigx-gateway/Dockerfile
  45. restart: always
  46. container_name: pigx-gateway
  47. image: pigx-gateway
  48. ports:
  49. - 9999:9999
  50. pigx-auth:
  51. build:
  52. context: ./
  53. dockerfile: ./pigx-auth/Dockerfile
  54. restart: always
  55. container_name: pigx-auth
  56. image: pigx-auth
  57. pigx-upms:
  58. build:
  59. context: ./
  60. dockerfile: ./pigx-upms/pigx-upms-biz/Dockerfile
  61. restart: always
  62. container_name: pigx-upms
  63. image: pigx-upms
  64. pigx-monitor:
  65. build:
  66. context: ./
  67. dockerfile: ./pigx-visual/pigx-monitor/Dockerfile
  68. restart: always
  69. image: pigx-monitor
  70. container_name: pigx-monitor
  71. ports:
  72. - 5001:5001
  73. pigx-zipkin:
  74. build:
  75. context: ./
  76. dockerfile: ./pigx-visual/pigx-zipkin/Dockerfile
  77. restart: always
  78. image: pigx-zipkin
  79. container_name: pigx-zipkin
  80. ports:
  81. - 5006:5006
  82. pigx-daemon:
  83. build:
  84. context: ./
  85. dockerfile: ./pigx-visual/pigx-daemon/Dockerfile
  86. restart: always
  87. image: pigx-daemon
  88. container_name: pigx-daemon
  89. pigx-codegen:
  90. build:
  91. context: ./
  92. dockerfile: ./pigx-visual/pigx-codegen/Dockerfile
  93. restart: always
  94. image: pigx-codegen
  95. container_name: pigx-codegen
  96. pigx-activiti:
  97. build:
  98. context: ./
  99. dockerfile: ./pigx-visual/pigx-activiti/Dockerfile
  100. restart: always
  101. image: pigx-activiti
  102. container_name: pigx-activiti
  103. pigx-tx-manager:
  104. build:
  105. context: ./
  106. dockerfile: ./pigx-visual/pigx-tx-manager/Dockerfile
  107. restart: always
  108. image: pigx-tx-manager
  109. container_name: pigx-tx-manager
  110. ports:
  111. - 5004:5004
  112. - 9998:9998