I don't think the official docker image respects SIGTERM on a docker stop or down.
I have compose file which has traefik, postgres and the Atlassian 7.0.2 image.
docker-compose stop --timeout 120
traefik exited with code 0
bitbucket |
bitbucket | Session terminated, terminating shell... ...terminated.
bitbucket exited with code 143
postgres-bitbucket | LOG: received smart shutdown request
postgres-bitbucket | LOG: autovacuum launcher shutting down
postgres-bitbucket | LOG: shutting down
postgres-bitbucket | LOG: database system is shut down
postgres-bitbucket exited with code 0
I also tried adding a grace period to the docker compose file.
stop_grace_period: 1m30s
Has anyone ran into this or have a solution?