Skip to content

Commit e4de56d

Browse files
ruggi99soedirgo
authored andcommitted
Add HEALTHCHECK to Dockerfile
1 parent 6dbc8f7 commit e4de56d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ COPY package.json ./
1515
ENV PG_META_PORT=8080
1616
CMD ["npm", "run", "start"]
1717
EXPOSE 8080
18+
# --start-period defaults to 0s, but can't be set to 0s (to be explicit) by now
19+
HEALTHCHECK --interval=5s --timeout=5s --retries=3 CMD curl -f http://localhost:8080/health || exit 1

0 commit comments

Comments
 (0)