Skip to content

Commit 3c9fb81

Browse files
committed
add healthcheck
1 parent 948e26f commit 3c9fb81

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docker/sitio.Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,7 @@ ENV TURSO_CONNECTION_URL=file:/db/db.db
3333
ENV BODY_SIZE_LIMIT=5242880
3434
EXPOSE 3000
3535

36+
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
37+
CMD curl -f http://localhost:3000/ || exit 1
38+
3639
CMD ["node", "."]

0 commit comments

Comments
 (0)