I downloaded the latest code from GitHub, then entered the docker directory and kept getting an error when running the docker-compose command: "unsupported option: 'required'"

docker-compose up -d
ERROR: The Compose file ‘./docker-compose.yaml’ is invalid because:
services.plugin_daemon.depends_on contains unsupported option: ‘required’
services.api.depends_on contains unsupported option: ‘required’
services.worker.depends_on contains unsupported option: ‘required’
services.worker_beat.depends_on contains unsupported option: ‘required’

Please update your Docker.