Report this

What is the reason for this report?

Django App & PostgreSQL Database Connectivity Between Two Droplets

Posted on December 9, 2025

Dear DigitalOcean Support Team,

I am planning to set up two separate droplets on DigitalOcean and need guidance on connecting them securely:

  1. Droplet 1: Django application
  2. Droplet 2: PostgreSQL database

I want the Django app to connect to the PostgreSQL database on the other droplet. Could you please provide guidance or best practices on:

  • Configuring PostgreSQL for remote access between droplets
  • Firewall and security recommendations
  • Any DigitalOcean-specific settings to allow smooth and secure connectivity

I would appreciate any sample configurations or documentation links that can help me set this up efficiently.

Thank you for your support.



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!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.