https://github.com/junqiuzhang/open-webui-docker
A docker config for open-webui
https://github.com/junqiuzhang/open-webui-docker
certbot docker nginx open-webui watchtower
Last synced: 3 months ago
JSON representation
A docker config for open-webui
- Host: GitHub
- URL: https://github.com/junqiuzhang/open-webui-docker
- Owner: junqiuzhang
- License: mit
- Created: 2025-02-25T15:00:42.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2026-01-20T05:42:05.000Z (5 months ago)
- Last Synced: 2026-01-20T13:43:15.633Z (5 months ago)
- Topics: certbot, docker, nginx, open-webui, watchtower
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenWebUI + Xray Docker Config
## Description
This docker compose file is used to deploy the OpenWebUI application with Xray proxy. It contains the following services:
- **OpenWebUI**: The main application
- **Nginx**: Reverse proxy for the OpenWebUI application (port 443)
- **Xray**: VLESS + REALITY proxy server (port 8443)
- **Certbot**: SSL certificate management
- **Watchtower**: Automatic updates for containers
## Usage
### 1. Create directories
```bash
mkdir -p nginx/conf nginx/logs certbot/conf certbot/www xray
```
### 2. Copy configuration files
- Copy nginx/default.conf to nginx/conf/default.conf
- Copy xray/config.json to xray/config.json
### 3. Generate Xray keys (optional, if creating new config)
```bash
# Generate X25519 key pair
docker run --rm ghcr.io/xtls/xray-core:latest x25519
# Generate UUID
docker run --rm ghcr.io/xtls/xray-core:latest uuid
# Generate Short ID
openssl rand -hex 8
```
### 4. Start services
```bash
docker-compose up -d
```
### 5. Get SSL certificate (first time only)
```bash
docker-compose run --rm certbot
```
### 6. Open firewall ports
- 80: HTTP (redirect to HTTPS)
- 443: HTTPS (OpenWebUI)
- 8443: Xray REALITY
## Xray Client Configuration
| Item | Value |
|------|-------|
| Address | `` |
| Port | `8443` |
| Protocol | VLESS |
| UUID | `` |
| Flow | xtls-rprx-vision |
| Transport | tcp |
| Security | reality |
| SNI | www.microsoft.com |
| Fingerprint | chrome |
| Public Key | `` |
| Short ID | `` |
### VLESS Share Link Format
```
vless://@:8443?encryption=none&flow=xtls-rprx-vision&security=reality&sni=www.microsoft.com&fp=chrome&pbk=&sid=&type=tcp#
```
## Useful Commands
```bash
# View logs
docker logs nginx
docker logs xray
docker logs open-webui
# Restart services
docker-compose restart
# Rebuild and restart
docker-compose down
docker-compose up -d
# Renew SSL certificate
docker-compose run --rm certbot renew
```