diff --git a/app/Dockerfile b/app/Dockerfile index 0ef685e..76816df 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -64,7 +64,10 @@ COPY --chmod=0700 entrypoint.sh /root/entrypoint.sh COPY config . COPY src . RUN date > /build-date.txt -EXPOSE 5005 +EXPOSE 5005 8127 10000 + +# HEALTHCHECK --interval=10s --timeout=3s \ +# CMD wget --no-verbose --tries=1 --spider http://localhost:8127/-/healthy || exit 1 # command to run on container start ENTRYPOINT ["/root/entrypoint.sh"] diff --git a/docker-compose.yaml b/docker-compose.yaml index 4566a80..b90b881 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -77,10 +77,15 @@ services: - ${DNS2:-4.4.4.4} ports: - 5005:5005 + - 8127:8127 - 10000:10000 volumes: - ${PROJECT_DIR:-./}tsun-proxy/log:/home/tsun-proxy/log - ${PROJECT_DIR:-./}tsun-proxy/config:/home/tsun-proxy/config + healthcheck: + test: wget --no-verbose --tries=1 --spider http://localhost:8127/-/healthy || exit 1 + interval: 10s + timeout: 3s networks: - outside