Even though Docker 19.03 was released, I am afraid you will have to wait for docker-compose to catch up and implement the new features as well.For time beeing the latest docker-compose release was 1.24.1 from June, 24th this year.
The docker compose file referens are still v2.4 for docker-compose and v3.7 for Docker Swarm deplyoments.
There is always an option to “cheat”. Declare a service inside your docker-compose.yml based on a docker on docker image and put your
docker run statement in the
command section. Though, I would strongly advice to wait for the update of docker-compose and updated file versions.