mirror of
https://github.com/XFox111/bonch-calendar.git
synced 2026-06-30 10:52:41 +03:00
feat: docker healthcheck #25
This commit is contained in:
@@ -3,6 +3,10 @@
|
||||
##
|
||||
## Get latest from `dotnet new gitignore`
|
||||
|
||||
# Solution files
|
||||
*.sln
|
||||
*.slnx
|
||||
|
||||
# dotenv files
|
||||
.env
|
||||
|
||||
|
||||
@@ -12,4 +12,8 @@ WORKDIR /app
|
||||
|
||||
COPY --from=build /out/* .
|
||||
|
||||
EXPOSE 8080
|
||||
HEALTHCHECK --interval=60s --retries=3 --start-period=5s --timeout=10s \
|
||||
CMD wget --no-verbose --tries 1 --spider http://localhost:8080/health || exit 1
|
||||
|
||||
ENTRYPOINT [ "dotnet", "BonchCalendar.dll" ]
|
||||
|
||||
Reference in New Issue
Block a user