command
not compose file v2 or v3
deploy.replicas instead of scaleA Compose file looks like this:
compose-switchDocker Compose Specification
The Compose Specification is a developer-focused standard for defining cloud and platform agnostic container-based applications.
https://compose-spec.io/

GitHub - docker/compose: Define and run multi-container applications with Docker
Docker Compose is a tool for running multi-container applications on Docker defined using the Compose file format. A Compose file is used to define how the one or more containers that make up your application are configured. Once you have a Compose file, you can create and start your application with a single command: docker compose up.
https://github.com/docker/compose#where-to-get-docker-compose
Compose file version 2 reference
These topics describe version 2 of the Compose file format. There are several versions of the Compose file format - 1, 2, 2.x, and 3.x. The table below is a quick look. For full details on what each version includes and how to upgrade, see About versions and upgrading .
https://docs.docker.com/compose/compose-file/compose-file-v2/

Seonglae Cho