Skip to content

Commit 23aca51

Browse files
committed
Adjust termination handling
Use `SIGQUIT` as stop signal for the container. This should make 502 errors less likely when scaling down or doing rolling updates.
1 parent d7f3a8a commit 23aca51

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ RUN /build.sh
3535

3636
EXPOSE 8080
3737

38+
# terminate with SIGQUIT which is handled gracefully by nginx
39+
# contrary to SIGTERM which terminates nginx immediately.
40+
STOPSIGNAL SIGQUIT
41+
3842
USER nginx
3943
ENTRYPOINT ["/entrypoint.sh"]
4044
CMD [ "run" ]

0 commit comments

Comments
 (0)