mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-06-06 15:47:19 +02:00
commit
d42ac8a146
@ -1,7 +1,6 @@
|
|||||||
FROM alpine:latest
|
FROM docker.io/golang:1.21rc3-alpine3.18
|
||||||
|
|
||||||
RUN apk update && apk upgrade &&\
|
RUN apk add --no-cache bash curl jq git sudo
|
||||||
apk add bash curl jq git go sudo
|
|
||||||
|
|
||||||
RUN mkdir -p /zoraxy/source/ &&\
|
RUN mkdir -p /zoraxy/source/ &&\
|
||||||
mkdir -p /zoraxy/config/
|
mkdir -p /zoraxy/config/
|
||||||
@ -14,7 +13,7 @@ COPY notifier.sh /zoraxy/
|
|||||||
RUN chmod 755 /zoraxy/ &&\
|
RUN chmod 755 /zoraxy/ &&\
|
||||||
chmod +x /zoraxy/entrypoint.sh
|
chmod +x /zoraxy/entrypoint.sh
|
||||||
|
|
||||||
ENV DOCKER="2.0.0"
|
ENV DOCKER="2.1.0"
|
||||||
ENV NOTIFS="1"
|
ENV NOTIFS="1"
|
||||||
|
|
||||||
ENV VERSION="latest"
|
ENV VERSION="latest"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# [zoraxy-docker](https://github.com/tobychui/zoraxy/) </br>
|
||||||
|
|
||||||
[](https://hub.docker.com/r/passivelemon/zoraxy-docker)
|
[](https://hub.docker.com/r/passivelemon/zoraxy-docker)
|
||||||
[](https://hub.docker.com/r/passivelemon/zoraxy-docker)
|
[](https://hub.docker.com/r/passivelemon/zoraxy-docker)
|
||||||
[](https://hub.docker.com/r/passivelemon/zoraxy-docker)
|
[](https://hub.docker.com/r/passivelemon/zoraxy-docker)
|
||||||
@ -38,13 +40,13 @@ services:
|
|||||||
| `-p (ports)` | Yes | Depending on how your network is setup, you may need to portforward 80, 443, and the management port. |
|
| `-p (ports)` | Yes | Depending on how your network is setup, you may need to portforward 80, 443, and the management port. |
|
||||||
| `-v (path to storage directory):/zoraxy/config/` | Recommend | Sets the folder that holds your files. This should be the place you just chose. By default, it will create a Docker volume for the files for persistency but they will not be accessible. |
|
| `-v (path to storage directory):/zoraxy/config/` | Recommend | Sets the folder that holds your files. This should be the place you just chose. By default, it will create a Docker volume for the files for persistency but they will not be accessible. |
|
||||||
| `-e ARGS=(your arguments)` | No | Sets the arguments to run Zoraxy with. Enter them as you would normally. By default, it is ran with `-port=:8000 -noauth=false` |
|
| `-e ARGS=(your arguments)` | No | Sets the arguments to run Zoraxy with. Enter them as you would normally. By default, it is ran with `-port=:8000 -noauth=false` |
|
||||||
| `-e VERSION=(version)` | Recommended | Sets the version of Zoraxy that the container will download. Must be a supported release found on the Zoraxy GitHub. Defaults to the latest if not set. |
|
| `-e VERSION=(version)` | Recommended | Sets the version of Zoraxy that the container will download. Must be a supported release found on the Zoraxy GitHub. Make sure that it is not set to the containers version. Defaults to the latest if not set. |
|
||||||
| `passivelemon/zoraxy-docker:latest` | Yes | The repository on Docker hub. By default, it is the latest version that I have published. |
|
| `passivelemon/zoraxy-docker:latest` | Yes | The repository on Docker hub. By default, it is the latest version that I have published. |
|
||||||
|
|
||||||
## Examples: </br>
|
## Examples: </br>
|
||||||
### Docker Run </br>
|
### Docker Run </br>
|
||||||
```
|
```
|
||||||
docker run -d --name zoraxy -p 80:80 -p 443:443 -p 8005:8000/tcp -v /home/docker/Containers/Zoraxy:/zoraxy/config/ -e ARGS="-port=:8000 -noauth=false" passivelemon/zoraxy-docker:latest
|
docker run -d --name zoraxy -p 80:80 -p 443:443 -p 8005:8000/tcp -v /home/docker/Containers/Zoraxy:/zoraxy/config/ -e ARGS="-port=:8000 -noauth=false" -e VERSION="2.6.5" passivelemon/zoraxy-docker:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
### Docker Compose </br>
|
### Docker Compose </br>
|
||||||
@ -62,4 +64,5 @@ services:
|
|||||||
- /home/docker/Containers/Zoraxy:/zoraxy/config/
|
- /home/docker/Containers/Zoraxy:/zoraxy/config/
|
||||||
environment:
|
environment:
|
||||||
ARGS: '-port=:8000 -noauth=false'
|
ARGS: '-port=:8000 -noauth=false'
|
||||||
|
VERSION: '2.6.5'
|
||||||
```
|
```
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
echo "|| Testing connectivity... ||"
|
||||||
|
if ! curl -sSf https://www.github.com > /dev/null; then
|
||||||
|
echo "|| GitHub could not be reached. Please check your internet connection and try again. ||"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
if [ "$(curl -s "https://api.github.com/repos/tobychui/zoraxy/git/refs/tags" | jq 'any(.[] | tostring; test("API rate limit exceeded"))')" = "true" ]; then
|
if [ "$(curl -s "https://api.github.com/repos/tobychui/zoraxy/git/refs/tags" | jq 'any(.[] | tostring; test("API rate limit exceeded"))')" = "true" ]; then
|
||||||
echo "|| Currently rate limited by GitHub. Please wait until it clears. ||"
|
echo "|| Currently rate limited by GitHub. Please wait until it clears. ||"
|
||||||
exit
|
exit
|
||||||
@ -34,7 +39,7 @@ fi
|
|||||||
if [ ! -f "/zoraxy/server/zoraxy_bin_${VERSION}" ]; then
|
if [ ! -f "/zoraxy/server/zoraxy_bin_${VERSION}" ]; then
|
||||||
echo "|| Cloning repository... ||"
|
echo "|| Cloning repository... ||"
|
||||||
cd /zoraxy/source/
|
cd /zoraxy/source/
|
||||||
git clone --depth=1 --branch main https://github.com/tobychui/zoraxy
|
git clone --depth 1 --single-branch --branch main https://github.com/tobychui/zoraxy
|
||||||
cd /zoraxy/source/zoraxy/src/
|
cd /zoraxy/source/zoraxy/src/
|
||||||
echo "|| Building... ||"
|
echo "|| Building... ||"
|
||||||
go mod tidy
|
go mod tidy
|
||||||
|
Loading…
x
Reference in New Issue
Block a user