Access private IP of other droplet in a Docker-instnace
I have the following construction: Server 1 (mongod + app) and server 2 (just the app)
Both run their app inside Docker. I enabled private networking for both servers, and they are in the same region.
What I want to do is access the DB that’s installed on server, on server 2 using the private IP of server 1. I can do this without Docker but not inside.
I currently use the public (external) IP address. Does anyone know how to make this work? Thanks!