diff --git a/docker/Dockerfile b/docker/Dockerfile index f3fbe077..e1f87fa0 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -102,6 +102,8 @@ RUN touch /etc/s6-overlay/s6-rc.d/user/contents.d/init-db-migration \ /etc/s6-overlay/s6-rc.d/user/contents.d/svc-web \ /etc/s6-overlay/s6-rc.d/user/contents.d/svc-workers +HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:3000/api/health || exit 1 + ################# The web container ############## FROM aio_builder AS web @@ -109,6 +111,8 @@ FROM aio_builder AS web RUN touch /etc/s6-overlay/s6-rc.d/user/contents.d/init-db-migration \ /etc/s6-overlay/s6-rc.d/user/contents.d/svc-web +HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:3000/api/health || exit 1 + ################# The workers container ############## FROM aio_builder AS workers