full-stack-fastapi-template icon indicating copy to clipboard operation
full-stack-fastapi-template copied to clipboard

Change postgresql default port

Open Xevimacia opened this issue 5 years ago • 2 comments

We are working with this template for a while. And we are now bringing it into production. We are deploying our code based on this template in Alibaba Cloud so we will be using the ApsaraDB RDS for PostgreSQL. For security reasons, we would like to change the default port from 5432 to another port. We have tried to set the environment variable $POSTGRES_PORT but the variable is ignored. Can anyone point us how to customize the postgres port?

Xevimacia avatar Dec 11 '20 08:12 Xevimacia

We are having the same issue here. We need to be able to change the default port. It would be nice to implement an environment variable like POSTGRES_PORT or something like that as mentioned above.

rouralberto avatar Mar 02 '21 18:03 rouralberto

Thanks! This was solved here: https://github.com/tiangolo/full-stack-fastapi-postgresql/pull/333

tiangolo avatar Mar 12 '24 13:03 tiangolo

Assuming the original issue was solved, it will be automatically closed now. But feel free to add more comments or create new issues.

github-actions[bot] avatar Mar 23 '24 00:03 github-actions[bot]