add HEALTHCHECK.
This commit is contained in:
parent
14939db65a
commit
ed2cdaf71d
@ -117,6 +117,9 @@ ENV NEKO_BIND=:8080
|
||||
COPY --from=server /src/bin/neko /usr/bin/neko
|
||||
COPY --from=client /src/dist/ /var/www
|
||||
|
||||
HEALTHCHECK --interval=10s --timeout=5s --retries=8 \
|
||||
CMD wget -O - http://localhost:${NEKO_BIND#*:}/health || exit 1
|
||||
|
||||
#
|
||||
# run neko
|
||||
CMD ["/usr/bin/supervisord", "-c", "/etc/neko/supervisord.conf"]
|
||||
|
@ -55,6 +55,7 @@ For n.eko room management software visit https://github.com/m1k1o/neko-rooms.
|
||||
- Fixed small lags in video and improved video UX (by @mbattista).
|
||||
- Added `m1k1o/neko:vncviewer` tag, use `NEKO_VNC_URL` to specify VNC target and use n.eko as a bridge.
|
||||
- Abiltiy to include neko as a component in another Vue.Js project (by @gbrian).
|
||||
- Added HEALTHCHECK to Dockerfile.
|
||||
|
||||
# Getting started & FAQ
|
||||
|
||||
|
@ -34,6 +34,10 @@ func New(conf *config.Server, webSocketHandler types.WebSocketHandler) *Server {
|
||||
webSocketHandler.Upgrade(w, r)
|
||||
})
|
||||
|
||||
router.Get("/health", func(w http.ResponseWriter, r *http.Request) {
|
||||
w.Write([]byte("true"))
|
||||
})
|
||||
|
||||
fs := http.FileServer(http.Dir(conf.Static))
|
||||
router.Get("/*", func(w http.ResponseWriter, r *http.Request) {
|
||||
if _, err := os.Stat(conf.Static + r.URL.Path); !os.IsNotExist(err) {
|
||||
|
Reference in New Issue
Block a user