services: service-a: image: busybox command: ["tail", "-f", "/dev/null"] volumes: - test_volume:/test:Z service-b: image: busybox command: ["tail", "-f", "/dev/null"] profiles: [profile-1] service-c: image: busybox command: ["tail", "-f", "/dev/null"] profiles: [profile-2] volumes: test_volume: {}