Refactor: Docker environment variables

This commit is contained in:
PassiveLemon 2024-06-20 10:58:04 -04:00
parent 123d3bcf3f
commit 3a2db63d61

View File

@ -24,9 +24,21 @@ RUN chmod 755 /usr/local/bin/zoraxy &&\
WORKDIR /opt/zoraxy/config/
ENV ARGS="-noauth=false"
ENV AUTORENEW="86400"
ENV FASTGEOIP="false"
ENV LOG="true"
ENV MDNS="true"
ENV MDNSNAME="''"
ENV NOAUTH="false"
ENV PORT="8000"
ENV SSHLB="false"
ENV VERSION="false"
ENV WEBFM="true"
ENV WEBROOT="./www"
ENV ZTAUTH="''"
ENV ZTPORT="9993"
ENTRYPOINT "zoraxy" "-port=:8000" "-docker=true" "${ARGS}"
ENTRYPOINT "zoraxy" "-docker=true" "-autorenew=${AUTORENEW}" "-fastgeoip=${FASTGEOIP}" "-log=${LOG}" "-mdns=${MDNS}" "-mdnsname=${MDNSNAME}" "-noauth=${NOAUTH}" "-port=:${PORT}" "-sshlb=${SSHLB}" "-version=${VERSION}" "-webfm=${WEBFM}" "-webroot=${WEBROOT}" "-ztauth=${ZTAUTH}" "-ztport=${ZTPORT}"
HEALTHCHECK --interval=5s --timeout=5s --retries=2 CMD nc -vz 127.0.0.1 8000 || exit 1
HEALTHCHECK --interval=15s --timeout=5s --start-period=10s --retries=3 CMD nc -vz 127.0.0.1 $PORT || exit 1