docker-compose.yml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. - "/etc/timezone:/etc/timezone:ro"
  11. # - "data/diagbotcloud/logs:/logs"
  12. environment:
  13. - spring.profiles.active=dev
  14. restart: always
  15. config1:
  16. image: 192.168.2.236:5000/diagbotcloud/config-server:0.0.1-SNAPSHOT
  17. hostname: config1
  18. ports:
  19. - "8769:8769"
  20. volumes:
  21. - "/etc/localtime:/etc/localtime:ro"
  22. - "/etc/timezone:/etc/timezone:ro"
  23. # - "data/diagbotcloud/logs:/logs"
  24. environment:
  25. - myuri=eureka1
  26. - spring.rabbitmq.host=192.168.2.236
  27. - spring.rabbitmq.username=lantone
  28. - spring.rabbitmq.password=lantone
  29. depends_on:
  30. - eureka1
  31. restart: always
  32. uaa-service:
  33. image: 192.168.2.236:5000/diagbotcloud/uaa-service:0.0.1-SNAPSHOT
  34. depends_on:
  35. - config1
  36. - eureka1
  37. volumes:
  38. - "/etc/localtime:/etc/localtime:ro"
  39. - "/etc/timezone:/etc/timezone:ro"
  40. # - "data/diagbotcloud/logs:/logs"
  41. environment:
  42. - spring.profiles.active=dev
  43. - myuri=config1
  44. restart: always
  45. user-service:
  46. image: 192.168.2.236:5000/diagbotcloud/user-service:0.0.1-SNAPSHOT
  47. depends_on:
  48. - config1
  49. - eureka1
  50. volumes:
  51. - "/etc/localtime:/etc/localtime:ro"
  52. - "/etc/timezone:/etc/timezone:ro"
  53. # - "data/diagbotcloud/logs:/logs"
  54. environment:
  55. - spring.profiles.active=dev
  56. - myuri=config1
  57. restart: always
  58. log-service:
  59. image: 192.168.2.236:5000/diagbotcloud/log-service:0.0.1-SNAPSHOT
  60. depends_on:
  61. - config1
  62. - eureka1
  63. volumes:
  64. - "/etc/localtime:/etc/localtime:ro"
  65. - "/etc/timezone:/etc/timezone:ro"
  66. # - "data/diagbotcloud/logs:/logs"
  67. environment:
  68. - spring.profiles.active=dev
  69. - myuri=config1
  70. restart: always
  71. monitor-service:
  72. image: 192.168.2.236:5000/diagbotcloud/monitor-service:0.0.1-SNAPSHOT
  73. depends_on:
  74. - config1
  75. - eureka1
  76. # - user-service
  77. # - log-service
  78. volumes:
  79. - "/etc/localtime:/etc/localtime:ro"
  80. - "/etc/timezone:/etc/timezone:ro"
  81. # - "data/diagbotcloud/logs:/logs"
  82. ports:
  83. - "8766:8766"
  84. environment:
  85. - spring.profiles.active=dev
  86. - myuri=config1
  87. restart: always
  88. admin-service:
  89. image: 192.168.2.236:5000/diagbotcloud/admin-service:0.0.1-SNAPSHOT
  90. depends_on:
  91. - config1
  92. - eureka1
  93. volumes:
  94. - "/etc/localtime:/etc/localtime:ro"
  95. - "/etc/timezone:/etc/timezone:ro"
  96. # - "data/diagbotcloud/logs:/logs"
  97. ports:
  98. - "9998:9998"
  99. environment:
  100. - spring.profiles.active=dev
  101. - myuri=config1
  102. restart: always
  103. gateway-service:
  104. image: 192.168.2.236:5000/diagbotcloud/gateway-service:0.0.1-SNAPSHOT
  105. depends_on:
  106. - config1
  107. # - user-service
  108. # - log-service
  109. volumes:
  110. - "/etc/localtime:/etc/localtime:ro"
  111. - "/etc/timezone:/etc/timezone:ro"
  112. # - "data/diagbotcloud/logs:/logs"
  113. ports:
  114. - "5050:5050"
  115. environment:
  116. - spring.profiles.active=dev
  117. - myuri=config1
  118. restart: always