how to connect two droplets running two different?

I’m trying to connect one droplet with a wordpress app to another with a nodejs app, lets say a chat. would be the wordpress app. I want that when someone enter to, he or she enters to the nodejs app. how could i connect both apps behind a load balancer and a database?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This should help:

Make sure all three droplets have private networking enabled so Nginx proxying happens on those internal networks. In your Nginx vhost definition you’ll have two “location” blocks, one for the root and one for the chat app