mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
Add docker health check
This commit is contained in:
parent
4f86d769be
commit
57609a5952
6
DockerHealthcheck.sh
Executable file
6
DockerHealthcheck.sh
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
if wget --spider -S "127.0.0.1:8080" 2>&1 | grep -w "302" ; then
|
||||
exit 0
|
||||
else
|
||||
exit 1
|
||||
fi
|
@ -33,3 +33,5 @@ RUN adduser -s /bin/false node; exit 0
|
||||
# Start the application
|
||||
EXPOSE 8080
|
||||
CMD [ "./start-docker.sh" ]
|
||||
|
||||
HEALTHCHECK CMD sh DockerHealthcheck.sh
|
||||
|
Loading…
x
Reference in New Issue
Block a user