Expose ports on a Docker Swarm

Is it possible to "expose" ports in a docker Swarm?

Something similar to the expose instruction in the docker-compose, which differently from "ports" does not expose the ports externally to the network.

If it's not possible, why?

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum