docker-compose.yml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. version: "3"
  2. services:
  3. eureka1:
  4. image: 192.168.2.236:5000/diagbotcloud/eureka-server:0.0.1-SNAPSHOT
  5. hostname: eureka1
  6. ports:
  7. - "8761:8761"
  8. volumes:
  9. - "/etc/localtime:/etc/localtime:ro"
  10. # - "data/diagbotcloud/logs:/logs"
  11. environment:
  12. - spring.profiles.active=dev
  13. restart: always
  14. config1:
  15. image: 192.168.2.236:5000/diagbotcloud/config-server:0.0.1-SNAPSHOT
  16. hostname: config1
  17. # ports:
  18. # - "8769:8769"
  19. volumes:
  20. - "/etc/localtime:/etc/localtime:ro"
  21. # - "data/diagbotcloud/logs:/logs"
  22. environment:
  23. - myuri=eureka1
  24. # - spring.rabbitmq.host=192.168.2.236
  25. # - spring.rabbitmq.username=lantone
  26. # - spring.rabbitmq.password=lantone
  27. depends_on:
  28. - eureka1
  29. restart: always
  30. uaa-service:
  31. image: 192.168.2.236:5000/diagbotcloud/uaa-service:0.0.1-SNAPSHOT
  32. depends_on:
  33. # - config1
  34. - eureka1
  35. volumes:
  36. - "/etc/localtime:/etc/localtime:ro"
  37. # - "data/diagbotcloud/logs:/logs"
  38. environment:
  39. - spring.profiles.active=dev
  40. - myuri=eureka1
  41. restart: always
  42. user-service:
  43. image: 192.168.2.236:5000/diagbotcloud/user-service:0.0.1-SNAPSHOT
  44. depends_on:
  45. # - config1
  46. - eureka1
  47. volumes:
  48. - "/etc/localtime:/etc/localtime:ro"
  49. # - "data/diagbotcloud/logs:/logs"
  50. environment:
  51. - spring.profiles.active=dev
  52. - myuri=eureka1
  53. restart: always
  54. diagbotman-service:
  55. image: 192.168.2.236:5000/diagbotcloud/diagbotman-service:0.0.1-SNAPSHOT
  56. depends_on:
  57. # - config1
  58. - eureka1
  59. volumes:
  60. - "/etc/localtime:/etc/localtime:ro"
  61. # - "data/diagbotcloud/logs:/logs"
  62. environment:
  63. - spring.profiles.active=dev
  64. - myuri=eureka1
  65. restart: always
  66. log-service:
  67. image: 192.168.2.236:5000/diagbotcloud/log-service:0.0.1-SNAPSHOT
  68. depends_on:
  69. # - config1
  70. - eureka1
  71. volumes:
  72. - "/etc/localtime:/etc/localtime:ro"
  73. # - "data/diagbotcloud/logs:/logs"
  74. environment:
  75. - spring.profiles.active=dev
  76. - myuri=eureka1
  77. restart: always
  78. monitor-service:
  79. image: 192.168.2.236:5000/diagbotcloud/monitor-service:0.0.1-SNAPSHOT
  80. depends_on:
  81. # - config1
  82. - eureka1
  83. # - user-service
  84. # - log-service
  85. volumes:
  86. - "/etc/localtime:/etc/localtime:ro"
  87. # - "data/diagbotcloud/logs:/logs"
  88. ports:
  89. - "8766:8766"
  90. environment:
  91. - spring.profiles.active=dev
  92. - myuri=eureka1
  93. restart: always
  94. admin-service:
  95. image: 192.168.2.236:5000/diagbotcloud/admin-service:0.0.1-SNAPSHOT
  96. depends_on:
  97. # - config1
  98. - eureka1
  99. volumes:
  100. - "/etc/localtime:/etc/localtime:ro"
  101. # - "data/diagbotcloud/logs:/logs"
  102. ports:
  103. - "9998:9998"
  104. environment:
  105. - spring.profiles.active=dev
  106. - myuri=eureka1
  107. restart: always
  108. gateway-service:
  109. image: 192.168.2.236:5000/diagbotcloud/gateway-service:0.0.1-SNAPSHOT
  110. # depends_on:
  111. # - config1
  112. # - user-service
  113. # - log-service
  114. volumes:
  115. - "/etc/localtime:/etc/localtime:ro"
  116. # - "data/diagbotcloud/logs:/logs"
  117. ports:
  118. - "5050:5050"
  119. environment:
  120. - spring.profiles.active=dev
  121. - myuri=eureka1
  122. restart: always
  123. triage-service:
  124. image: 192.168.2.236:5000/diagbotcloud/triage-service:0.0.1-SNAPSHOT
  125. depends_on:
  126. # - config1
  127. - eureka1
  128. volumes:
  129. - "/etc/localtime:/etc/localtime:ro"
  130. # - "data/diagbotcloud/logs:/logs"
  131. environment:
  132. - spring.profiles.active=dev
  133. - myuri=eureka1
  134. restart: always