Application de gestion de projets. Un projet doit affecté à un utilisateur et une société qui existent

docker-compose.yml 2.1KB

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

Powered by TurnKey Linux.