I keep getting remaining connection slots are reserved for non-replication superuser connections errors when I run postgres:latest in Docker with Docker Compose.
How can I increase the maximum connections Postgres allows with Docker-Compose?
I keep getting remaining connection slots are reserved for non-replication superuser connections errors when I run postgres:latest in Docker with Docker Compose.
How can I increase the maximum connections Postgres allows with Docker-Compose?
You can change the configuration file used by your postgresql image: https://docs.docker.com/samples/library/postgres/#database-configuration
The parameter you want to change is: max_connections, you will find more information about it here : How to increase the max connections in postgres?