Açıklama Yok

docker-compose.yml 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. version: '3.4'
  2. services:
  3. mysqldb:
  4. image: mysql:8.0
  5. container_name: mysqldb
  6. restart: always
  7. ports:
  8. - "3036:3036"
  9. networks:
  10. - microservices
  11. environment:
  12. MYSQL_ROOT_PASSWORD: root
  13. eureka-discovery-server:
  14. image: eureka-discovery-server:latest
  15. container_name: eureka-discovery-server
  16. build:
  17. context: ./eureka-discovery-server
  18. dockerfile: Dockerfile
  19. ports:
  20. - "8761:8761"
  21. networks:
  22. - microservices
  23. spring-cloug-gateway:
  24. image: spring-cloug-gateway:latest
  25. container_name: spring-cloud-gateway
  26. build:
  27. context: ./spring-cloud-gateway-service
  28. dockerfile: Dockerfile
  29. ports:
  30. - "8888:8888"
  31. links:
  32. - eureka-discovery-server
  33. networks:
  34. - microservices
  35. depends_on:
  36. - eureka-discovery-server
  37. address-microservice:
  38. image: address-microservice:latest
  39. container_name: address-microservice
  40. build:
  41. context: ./address-microservice
  42. dockerfile: Dockerfile
  43. ports:
  44. - "8081:8081"
  45. links:
  46. - eureka-discovery-server
  47. networks:
  48. - microservices
  49. depends_on:
  50. - eureka-discovery-server
  51. employee-microservice:
  52. image: employee-microservice:latest
  53. container_name: employee-microservice
  54. build:
  55. context: ./employee-microservice
  56. dockerfile: Dockerfile
  57. ports:
  58. - "8082:8082"
  59. links:
  60. - eureka-discovery-server
  61. networks:
  62. - microservices
  63. depends_on:
  64. - eureka-discovery-server
  65. company-microservice:
  66. image: company-microservice:latest
  67. container_name: company-microservice
  68. build:
  69. context: ./company-microservice
  70. dockerfile: Dockerfile
  71. ports:
  72. - "8083:8083"
  73. links:
  74. - eureka-discovery-server
  75. networks:
  76. - microservices
  77. depends_on:
  78. - eureka-discovery-server
  79. project-microservice:
  80. image: project-microservice:latest
  81. container_name: project-microservice
  82. build:
  83. context: ./project-microservice
  84. dockerfile: Dockerfile
  85. ports:
  86. - "8084:8084"
  87. links:
  88. - eureka-discovery-server
  89. networks:
  90. - microservices
  91. depends_on:
  92. - eureka-discovery-server
  93. networks:
  94. microservices:

Powered by TurnKey Linux.