This repository contains the Dockerfile and GitHub Actions workflow for building the Hysteria2 client Docker image. Hysteria2 is a powerful proxy tool optimized for harsh network environments.
Pull and run the Docker image:
docker pull [your-dockerhub-username]/hysteria2-client:latest
docker run -d \
--name hysteria2-client \
-v /path/to/config.yaml:/etc/hysteria/config.yaml \
-p [local-port]:[local-port] \
[your-dockerhub-username]/hysteria2-client:latest
- Create a
config.yaml
file with your Hysteria2 client configuration - Mount this configuration file when running the container
Example config.yaml:
server: your-server:443
auth: your-auth-string
# Transport
transport:
type: ws # or wss
path: /path
# TLS settings
tls:
sni: your-sni.com
insecure: false # set to true to disable certificate verification
# Local SOCKS5 proxy settings
socks5:
listen: 0.0.0.0:1080
latest
: Latest stable build from the main branchdev
: Development build from the dev branchvX.Y.Z
: Version tagged releases
To build the image locally:
git clone https://github.com/[your-username]/hysteriaClient.git
cd hysteriaClient
docker build -t hysteria2-client .
The container accepts the following environment variables:
CONFIG_PATH
: Path to the config file (default:/etc/hysteria/config.yaml
)
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.