container that is running postgrest server cannot be stopped with SIG_INT (ctrl+c)

Start hivemind server (change database url according to Your setup)

docker run -d --network haf_test  --name=hivemind-postgrest-server registry.gitlab.syncad.com/hive/hivemind:878c8168 postgrest-server --database-url=postgresql://hivemind@172.17.0.2:5432/haf_block_log

then stop it and check return value:

docker stop hivemind-postgrest-server
docker inspect  hivemind-postgrest-server --format='{{.State.ExitCode}}'

It returns 137 because docker stops container with SIG_KILL when could not end it with SIG_INT.

Consequences: postgrest is not cleanly closed, affects HAF APi Node setup by adding delay for tries with SIG_INT during compose is being down

Added issue to the postgrest project: https://github.com/PostgREST/postgrest/issues/3884

Edited by Marcin