version: '3.8' services: findfile: build: context: ./worker-1 volumes: - ./data:/var/data - ./result:/var/result findnumber: build: context: ./worker-2 volumes: - ./result:/var/result depends_on: - findfile