Yes. In fact docker-compose is not the “first citizen” in Docker Swarm. Docker Swarm provides much more than a simple multi-host container platform. Similar to k8s, Docker Swarm provides service, and uses Docker Stack for flexible deployment.
When using docker-compose file is just simply deploy containers on the local host. It’s good enough for our setting.
Just wish to know whether you can still use docker-compose to deploy the container, despite the warning.