2022-05-22 07:47:15 -04:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
message-server:
|
|
|
|
container_name: message-server
|
|
|
|
build:
|
|
|
|
context: docker-message-server
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
image: message-server:latest
|
|
|
|
ports:
|
|
|
|
- 18888:8888
|
|
|
|
networks:
|
|
|
|
- spring-cloud-network
|
|
|
|
deploy:
|
|
|
|
restart_policy:
|
|
|
|
condition: any
|
|
|
|
delay: 5s
|
|
|
|
max_attempts: 3
|
|
|
|
window: 120s
|
|
|
|
product-server:
|
|
|
|
container_name: product-server
|
|
|
|
build:
|
|
|
|
context: docker-product-server
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
image: product-server:latest
|
|
|
|
ports:
|
|
|
|
- 19999:9999
|
|
|
|
networks:
|
|
|
|
- spring-cloud-network
|
|
|
|
deploy:
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
|
|
|
delay: 3s
|
|
|
|
max_attempts: 5
|
|
|
|
window: 60s
|
|
|
|
networks:
|
|
|
|
spring-cloud-network:
|
2022-05-22 07:54:05 -04:00
|
|
|
driver: bridge
|