services: worker-1: build: context: ./worker-1 volumes: - ./worker-1:/app - ./data:/var/data - ./result:/var/result depends_on: - worker-2 worker-2: build: context: ./worker-2 volumes: - ./worker-2:/app - ./data:/var/data - ./result:/var/result volumes: data: result: