123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- version: '3.4'
-
- services:
-
- microservices-db:
- image: mysql:8.0
- container_name: microservices-db
- restart: always
- ports:
- - "3306:3306"
- networks:
- - microservices-network
- environment:
- MYSQL_ROOT_PASSWORD: pwd
- volumes:
- - services-db:/var/lib/mysql
-
- microservices-config-service:
- image: microservices-config-service:latest
- container_name: microservices-config-service
- ports:
- - "8280:8280"
- networks:
- - microservices-network
- build:
- context: ../backend-frontend-app/spring-project-back/microservices-config-service
- dockerfile: Dockerfile
-
- microservices-registration-service:
- image: microservices-registration-service:latest
- container_name: microservices-registration-service
- build:
- context: ../backend-frontend-app/spring-project-back/microservices-registration-service
- dockerfile: Dockerfile
- ports:
- - "8761:8761"
- networks:
- - microservices-network
- depends_on:
- microservices-config-service:
- condition: service_completed_successfully
-
- backend-frontend-gateway-service:
- image: backend-frontend-gateway-service:latest
- container_name: backend-frontend-gateway-service
- ports:
- - "8281:8281"
- build:
- context: ../backend-frontend-app/spring-project-back/backend-frontend-gateway-service
- dockerfile: Dockerfile
- depends_on:
- microservices-config-service:
- condition: service_completed_successfully
- microservices-registration-service:
- condition: service_completed_successfully
- networks:
- - microservices-network
-
- clean-archi-business-service-address:
- image: clean-archi-business-service-address:latest
- container_name: clean-archi-business-service-address
- build:
- context: ..//backend-frontend-app/spring-project-back/clean-archi-business-service-address
- dockerfile: Dockerfile
- ports:
- - "8282:8282"
- depends_on:
- microservices-db:
- condition: service_completed_successfully
- microservices-config-service:
- condition: service_completed_successfully
- microservices-registration-service:
- condition: service_completed_successfully
- networks:
- - microservices-network
-
- clean-archi-business-service-company:
- image: clean-archi-business-service-company:latest
- container_name: clean-archi-business-service-company
- build:
- context: ../backend-frontend-app/spring-project-back/clean-archi-business-service-company
- dockerfile: Dockerfile
- ports:
- - "8284:8284"
- depends_on:
- microservices-db:
- condition: service_completed_successfully
- microservices-config-service:
- condition: service_completed_successfully
- microservices-registration-service:
- condition: service_completed_successfully
- networks:
- - microservices-network
-
- clean-archi-business-service-employee:
- image: clean-archi-business-service-employee:latest
- container_name: clean-archi-business-service-employee
- build:
- context: ../backend-frontend-app/spring-project-back/clean-archi-business-service-employee
- dockerfile: Dockerfile
- ports:
- - "8283:8283"
- depends_on:
- microservices-db:
- condition: service_completed_successfully
- microservices-config-service:
- condition: service_completed_successfully
- microservices-registration-service:
- condition: service_completed_successfully
- networks:
- - microservices-network
-
- clean-archi-business-service-project:
- image: clean-archi-business-service-project:latest
- container_name: clean-archi-business-service-project
- build:
- context: ../backend-frontend-app/spring-project-back/clean-archi-business-service-project
- dockerfile: Dockerfile
- ports:
- - "8285:8285"
- depends_on:
- microservices-db:
- condition: service_completed_successfully
- microservices-config-service:
- condition: service_completed_successfully
- microservices-registration-service:
- condition: service_completed_successfully
- networks:
- - microservices-network
-
- networks:
- microservices-network:
- volumes:
- services-db:
|