I\'m having a few docker containers (Using docker-compose
and a single network - network-sol)
One of the containers is a Spring Boot application
You should either run the service defined in your docker-compose.yml
file with network_mode: host
.
Alternatively you can publish the port of the container you intended to communicate with by publishing it using the following configuration. Note that the /udp
is required for UDP communication to work.
service:
ports:
- "8080:8080/udp"