How to use docker compose with docker swarm?

Hello,
Thank you so much for your reply.
You said:

Swarm deploy will not build images from Dockerfile, so you need to create the images up front and push them to a repository, then reference by image name.

What do you mean by create the images up front and push them to a repository?