version: '2' volumes: resin-data: services: service1: volumes: - 'resin-data:/data' build: ./service1 service2: volumes: - 'resin-data:/data' build: context: ./service2 dockerfile: Dockerfile-alt