version: '3.2'
services:
agent:
image: i2tch/entry
ports:
- "2201:22"
volumes:
- traine01_home:/home/trainee
- traine01_root:/root
networks:
- trainee01
deploy:
mode: global
placement:
constraints: [node.role == worker]
networks:
trainee01:
driver: overlay
attachable: true
volumes:
traine01_home:
traine01_root: