Configuring Multiple Django Microservices with Separate PostgreSQL Databases in AWS

0

How can I ensure that each of my three Django microservices running in separate containers has its own dedicated PostgreSQL database with distinct ports to avoid port conflicts within a single AWS cluster?

Augie
asked 6 months ago235 views
1 Answer
0

you can follow this link https://realpython.com/deploying-a-django-app-and-postgresql-to-aws-elastic-beanstalk/ if you follow this link you can see how to configure different database instance for each django deployment

profile picture
EXPERT
answered 6 months ago
  • Thank you for your input, Sedat Salma. At present, I am utilizing AWS ECS Fargate to oversee numerous containers for a solitary service. For each service, including a web app, Postgres, Redis, Celery Worker, and Celery Beat containers, we are making efforts to streamline AWS expenses by restricting services and ensuring the accuracy of our logic. However, I am encountering an issue with the Postgres port due to running three services on a single cluster, and I am unsure of the appropriate method to avoid conflicts among the Postgres containers.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions