v2ray-letsencrypt-docker
Clean, dockerized v2ray(Websocket + TLS) + Nginx + Let's Encrypt with official and well-maintained docker containers. No BS private containers.
Supports:
- v2ray with websocket + TLS protocol using the official v2ray docker image.
- Nginx frontend and auto-renewing Let's Encrypt certificate using the popular linuxserver/swag.
- watchtower for automatic docker image updates (can be disabled) from containrrr/watchtower
- Easy multiuser configuration and user conf file generation.
Usage:
Required packages
- python 3
- docker-ce.
- docker-compose.
- python-jinja2. A popular python template processor. Just search for jinja2 with your distro's package manager.
Building
- Clone this repo.
- Modify
config.yml
to your liking. Please see the comments in the file for documentation. - Run
configure.py
with python 3. - Generated files are located in the
build
directory. Rundocker-compose up -d
within that directory to start the stack. - To start over or to update the existing configuration. Simply change
config.yml
, rerunconfigure.py
and restart the stack.
Client conf files
Client conf files are generated
Troubleshooting
- Make sure your subdomain.domain.tld points to the server.
- Use
docker logs v2ray_nginx
to check for nginx init errors. Detailed nginx logs and be found innginx/logs/nginx
- Use
docker logs v2ray_v2ray
to check for v2ray init errors. - Use
docker logs v2ray_watchtower
to check for watchtower errors.
Languages
Python
88.4%
Dockerfile
7.8%
Shell
3.8%