Skip to content

Feature Request: configurable retry attempts for Docker container that exits with error code #64

@W1M0R

Description

@W1M0R

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.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions