123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- version: '3.4'
-
- services:
-
- mysqldb:
- image: mysql:8.0
- container_name: mysqldb
- restart: always
- ports:
- - "3036:3036"
- networks:
- - microservices
- environment:
- MYSQL_ROOT_PASSWORD: root
-
- eureka-discovery-server:
- image: eureka-discovery-server:latest
- container_name: eureka-discovery-server
- build:
- context: ./eureka-discovery-server
- dockerfile: Dockerfile
- ports:
- - "8761:8761"
- networks:
- - microservices
-
- spring-cloug-gateway:
- image: spring-cloug-gateway:latest
- container_name: spring-cloud-gateway
- build:
- context: ./spring-cloud-gateway-service
- dockerfile: Dockerfile
- ports:
- - "8888:8888"
- links:
- - eureka-discovery-server
- networks:
- - microservices
- depends_on:
- - eureka-discovery-server
-
- address-microservice:
- image: address-microservice:latest
- container_name: address-microservice
- build:
- context: ./address-microservice
- dockerfile: Dockerfile
- ports:
- - "8081:8081"
- links:
- - eureka-discovery-server
- networks:
- - microservices
- depends_on:
- - eureka-discovery-server
-
- employee-microservice:
- image: employee-microservice:latest
- container_name: employee-microservice
- build:
- context: ./employee-microservice
- dockerfile: Dockerfile
- ports:
- - "8082:8082"
- links:
- - eureka-discovery-server
- networks:
- - microservices
- depends_on:
- - eureka-discovery-server
-
- company-microservice:
- image: company-microservice:latest
- container_name: company-microservice
- build:
- context: ./company-microservice
- dockerfile: Dockerfile
- ports:
- - "8083:8083"
- links:
- - eureka-discovery-server
- networks:
- - microservices
- depends_on:
- - eureka-discovery-server
-
- project-microservice:
- image: project-microservice:latest
- container_name: project-microservice
- build:
- context: ./project-microservice
- dockerfile: Dockerfile
- ports:
- - "8084:8084"
- links:
- - eureka-discovery-server
- networks:
- - microservices
- depends_on:
- - eureka-discovery-server
- networks:
- microservices:
|