Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- web:
- image: your_image:latest
- ports:
- - "8081:80"
- deploy:
- labels:
- - scaleMin=3
- - scaleMax=16
- replicas: 3
- update_config:
- parallelism: 4
- delay: 10s
- resources:
- limits:
- cpus: '6.0'
- memory: 4096M
- restart_policy:
- condition: any
- placement:
- constraints:
- - node.role != manager
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement