How to deploy massvie portainer container without port already in use?

if I want to deploy many like 10+ stacks of docker compose using portainer
how should I avoid port already in use ??