docker-compose pour le déploiement en des images docker des microservices métiers et des services utilitaires

docker-compose.yml 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. version: '3.4'
  2. services:
  3. microservices-db:
  4. image: mysql:8.0
  5. container_name: microservices-db
  6. restart: always
  7. ports:
  8. - "3306:3306"
  9. networks:
  10. - microservices-network
  11. environment:
  12. MYSQL_ROOT_PASSWORD: pwd
  13. microservices-config-service:
  14. image: microservices-config-service:latest
  15. container_name: microservices-config-service
  16. ports:
  17. - "8280:8280"
  18. networks:
  19. - microservices-network
  20. build:
  21. context: ../backend-frontend-app/spring-project-back/microservices-config-service
  22. dockerfile: Dockerfile
  23. microservices-registration-service:
  24. image: microservices-registration-service:latest
  25. container_name: microservices-registration-service
  26. build:
  27. context: ../backend-frontend-app/spring-project-back/microservices-registration-service
  28. dockerfile: Dockerfile
  29. ports:
  30. - "8761:8761"
  31. networks:
  32. - microservices-network
  33. depends_on:
  34. - microservices-config-service
  35. links:
  36. - microservices-config-service
  37. backend-frontend-gateway-service:
  38. image: backend-frontend-gateway-service:latest
  39. container_name: backend-frontend-gateway-service
  40. ports:
  41. - "8281:8281"
  42. build:
  43. context: ../backend-frontend-app/spring-project-back/backend-frontend-gateway-service
  44. dockerfile: Dockerfile
  45. depends_on:
  46. - microservices-config-service
  47. - microservices-registration-service
  48. networks:
  49. - microservices-network
  50. clean-archi-business-service-address:
  51. image: clean-archi-business-service-address:latest
  52. container_name: clean-archi-business-service-address
  53. build:
  54. context: ..//backend-frontend-app/spring-project-back/clean-archi-business-service-address
  55. dockerfile: Dockerfile
  56. ports:
  57. - "8282:8282"
  58. depends_on:
  59. - microservices-config-service
  60. - microservices-registration-service
  61. networks:
  62. - microservices-network
  63. clean-archi-business-service-company:
  64. image: clean-archi-business-service-company:latest
  65. container_name: clean-archi-business-service-company
  66. build:
  67. context: ../backend-frontend-app/spring-project-back/clean-archi-business-service-company
  68. dockerfile: Dockerfile
  69. ports:
  70. - "8284:8284"
  71. depends_on:
  72. - microservices-config-service
  73. - microservices-registration-service
  74. networks:
  75. - microservices-network
  76. clean-archi-business-service-employee:
  77. image: clean-archi-business-service-employee:latest
  78. container_name: clean-archi-business-service-employee
  79. build:
  80. context: ../backend-frontend-app/spring-project-back/clean-archi-business-service-employee
  81. dockerfile: Dockerfile
  82. ports:
  83. - "8283:8283"
  84. depends_on:
  85. - microservices-config-service
  86. - microservices-registration-service
  87. networks:
  88. - microservices-network
  89. clean-archi-business-service-project:
  90. image: clean-archi-business-service-project:latest
  91. container_name: clean-archi-business-service-project
  92. build:
  93. context: ../backend-frontend-app/spring-project-back/clean-archi-business-service-project
  94. dockerfile: Dockerfile
  95. ports:
  96. - "8285:8285"
  97. depends_on:
  98. - microservices-config-service
  99. - microservices-registration-service
  100. networks:
  101. - microservices-network
  102. networks:
  103. microservices-network:

Powered by TurnKey Linux.