7,540
edits
Changes
Docker
,→compose && swarm common part
* '''command''': Override the default command. <pre> command: ["bundle", "exec", "thin", "-p", "3000"] </pre>
* '''ports''': specify the host:container port mapping like with the -p switch in the '''run''' command.
<pre>
ports:
- "3000"
- "3000-3005"
- "8000:8000"
- "9090-9091:8080-8081"
- "49100:22"
- "127.0.0.1:8001:8001"
- "127.0.0.1:5000-5010:5000-5010"
- "6060:6060/udp"
</pre>
* '''dns''': Custom DNS servers. Can be a single value or a list.