services:
common:
image: busybox
volumes:
- common-volume:/var/lib/backup/data:rw
cli:
extends:
service: common
- cli-volume:/var/lib/backup/data:ro
common-volume:
cli-volume: