You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, a postgres-websockets Docker container will try to connect to postgres, and will retry until it can successfully connect. When using the postgres-websockets container inside a Docker stack (within Docker Swarm), that feature makes it hard for swarm to detect connectivity issues (since the issue is masked by postgres-websockets) and therefore it won't recreate the container.
It would be great if the postgres-websockets container could be configured with an environment variable, e.g. PGWS_RETRIES=0, that would cause postgres-websockets to not retry, and then to exit with error code 1. In a Docker Swarm environment, swarm will detect the failure and recreate the container at the next opportune time.