37 lines
975 B
YAML
37 lines
975 B
YAML
|
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:
|
||
|
driver: bridge
|