services: app1: build: context: . dockerfile: ConsoleApp1/Dockerfile volumes: - ./data:/var/data - ./result:/var/result container_name: app1 app2: build: context: . dockerfile: ConsoleApp2/Dockerfile volumes: - ./data:/var/data - ./result:/var/result container_name: app2 depends_on: - app1