java-tutorials/spring-cloud-modules/spring-cloud-docker/docker-compose-scale.yml

23 lines
579 B
YAML

version: '2'
services:
message-server:
build:
context: docker-message-server
dockerfile: Dockerfile
image: message-server:latest
ports:
- 18800-18888:8888
networks:
- spring-cloud-network
product-server:
build:
context: docker-product-server
dockerfile: Dockerfile
image: product-server:latest
ports:
- 19900-19999:9999
networks:
- spring-cloud-network
networks:
spring-cloud-network:
driver: bridge