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