services: foo: image: foo volumes: - foo:/bar - ./foo:/baz bar: image: bar volumes: - type: volume source: bar target: /foo - type: bind source: ./bar target: /baz volumes: foo: bar: