docker-compose.yml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. log-service:
  55. image: 192.168.2.236:5000/diagbotcloud/log-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. monitor-service:
  67. image: 192.168.2.236:5000/diagbotcloud/monitor-service:0.0.1-SNAPSHOT
  68. depends_on:
  69. - config1
  70. - eureka1
  71. # - user-service
  72. # - log-service
  73. volumes:
  74. - "/etc/localtime:/etc/localtime:ro"
  75. # - "data/diagbotcloud/logs:/logs"
  76. ports:
  77. - "8766:8766"
  78. environment:
  79. - spring.profiles.active=dev
  80. - myuri=eureka1
  81. restart: always
  82. admin-service:
  83. image: 192.168.2.236:5000/diagbotcloud/admin-service:0.0.1-SNAPSHOT
  84. depends_on:
  85. - config1
  86. - eureka1
  87. volumes:
  88. - "/etc/localtime:/etc/localtime:ro"
  89. # - "data/diagbotcloud/logs:/logs"
  90. ports:
  91. - "9998:9998"
  92. environment:
  93. - spring.profiles.active=dev
  94. - myuri=eureka1
  95. restart: always
  96. gateway-service:
  97. image: 192.168.2.236:5000/diagbotcloud/gateway-service:0.0.1-SNAPSHOT
  98. depends_on:
  99. - config1
  100. # - user-service
  101. # - log-service
  102. volumes:
  103. - "/etc/localtime:/etc/localtime:ro"
  104. # - "data/diagbotcloud/logs:/logs"
  105. ports:
  106. - "5050:5050"
  107. environment:
  108. - spring.profiles.active=dev
  109. - myuri=eureka1
  110. restart: always