mirror of
https://github.com/rustdesk/rustdesk-server.git
synced 2024-11-23 19:49:20 +08:00
added healthcheck
This commit is contained in:
parent
26c845e248
commit
d624e59021
@ -19,11 +19,14 @@ RUN \
|
||||
COPY rootfs /
|
||||
COPY --from=builder /src/target/release/hbbr /usr/bin/hbbr
|
||||
COPY --from=builder /src/target/release/hbbs /usr/bin/hbbs
|
||||
COPY healthcheck.sh /usr/bin/healthcheck.sh
|
||||
|
||||
ENV RELAY relay.example.com
|
||||
|
||||
EXPOSE 21115 21116 21116/udp 21117 21118 21119
|
||||
|
||||
HEALTHCHECK --interval=10s --timeout=5s CMD /usr/bin/healthcheck.sh
|
||||
|
||||
WORKDIR /data
|
||||
|
||||
VOLUME /data
|
||||
|
4
docker/healthcheck.sh
Executable file
4
docker/healthcheck.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
/package/admin/s6/command/s6-svstat /run/s6-rc/servicedirs/hbbr || exit 1
|
||||
/package/admin/s6/command/s6-svstat /run/s6-rc/servicedirs/hbbs || exit 1
|
Loading…
Reference in New Issue
Block a user