Swarm ports not listed

Solved EXPOSING ports on Dockerfile. Seems custom images without EXPOSED ports are not listed on docker ps.