added load balance support and verbose level

This commit is contained in:
yusing
2024-03-06 12:34:06 +08:00
parent a5c53a4f4f
commit 2f439233ed
25 changed files with 530 additions and 240 deletions

10
Dockerfile Executable file → Normal file
View File

@@ -2,14 +2,18 @@ FROM alpine:latest
LABEL maintainer="yusing@6uo.me"
COPY bin/go-proxy /usr/bin
RUN apk add --no-cache bash
RUN mkdir /app
COPY bin/go-proxy entrypoint.sh /app/
COPY templates/ /app/templates
RUN chmod +rx /usr/bin/go-proxy
RUN chmod +x /app/go-proxy /app/entrypoint.sh
ENV DOCKER_HOST unix:///var/run/docker.sock
ENV VERBOSITY=1
EXPOSE 80
EXPOSE 443
EXPOSE 8443
CMD ["go-proxy"]
WORKDIR /app
ENTRYPOINT /app/entrypoint.sh