services: worker_one: container_name: w-1 build: context: ./w-1 volumes: - ./data:/var/data - ./result:/var/result worker_two: container_name: w-2 build: context: ./w-2 volumes: - ./result:/var/result depends_on: - worker_one