I have the following file docker-compose.yml
and would like to expose some of the ports as UDP.
version: "3.0"
services:
myservice:
image: "my/service"
ports:
- "40061:4061"
- "40062:4062"
- "5684:5684" <--- UDP
- "5683:5683" <--- UDP
mongo:
image: "mongo:3.4"
It seems like the default is to expose these ports as TCP, so the external service is not accessing.
How would you configure the configuration in docker-compose so that you could expose these ports as UDP?