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: