version: "2"
services:
web:
image: busybox
command: top
volumes:
- foo:/var/lib/
- bar:/etc/
foo:
external: true
bar:
external:
name: some_bar