You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 lines
330 B

version: "3.8"
services:
webapp:
build: ../web
dockerfile: dockerfile
image: webapp:latest
deploy:
mode: replicated
replicas: 2
restart_policy:
condition: on-failure
delay: 10s
max_attempts: 3
window: 120s
placement:
max_replicas_per_node: 1
constraints:
- "node.role==manager"