services: generator: build: context: ./app-generator volumes: - ./data:/var/data entrypoint: python generator.py app1: build: context: ./app-1 volumes: - ./data:/var/data - ./result:/var/result depends_on: - generator app2: build: context: ./app-2 volumes: - ./result:/var/result depends_on: - app1