Docker - access container only by specific IP

Hello lukasz1989,

According to the documentation, compose sets up a single network for your app and each container for a service joins the default network and is both reachable by other containers on that network, and discoverable by them at a hostname identical to the container name.

So, I think you only to setup ports configuration.

Best regards,
Fouscou B.