Docker Community Forums

Share and learn in the Docker community.

Conflict between stack deploy and documentation

When trying to deploy into a swarm

Says I can expose ports to the swarm. However when I try to do this I get the following error message.

Ignoring unsupported options: dns_search (this one is also documented as valid and supported, on the same page)
Ignoring deprecated options:
expose: Exposing ports is unnecessary - services on the same network can access each other’s containers on any port.

OK. I’ll accept that changes occur, however can someone point me to an accurate doc for options and syntax for stack.yml that works with Version 3 and 1.13? Thanks.