Thank you for sharing your solution. Here is the syntax for compose in another topic:
Just in case it is related, I also found this in a moby discussion:
Direct routed access to container ports that are not exposed using
p/-publishis now blocked in theDOCKERiptables chain. moby/moby#48724 * If the default iptables filter-FORWARD policy was previously left atACCEPTon your host, and direct routed access to a container’s unpublished ports from a remote host is still required, options are:
- Publish the ports you need.
- Use the new
gateway_mode_ipv[46]=nat-unprotected, described below.