Zoraxy with Docker Compose: Set Up Your First HTTPS Proxy Host
Run Zoraxy with Docker Compose, create an admin account over SSH, and route a public hostname to a private container with Let's Encrypt HTTPS.

Contents
Zoraxy 3.3.5Debian 13Docker Engine 29.10.1Docker Compose 5.8.1Zoraxy is a reverse proxy with a web interface. It receives requests for {{domain}} and forwards them to an app on your Docker network. This guide is for self-hosters who want to add routes in a browser and use Let’s Encrypt for HTTPS. If ports 80 and 443 already belong to a reverse proxy you rely on, use a spare server for this walkthrough.
Point a hostname at the server
Use a server with a public IPv4 address and a DNS name you control. I use Debian 13 here. The account you use to connect over SSH should be able to run sudo. Install Docker Engine and the Compose plugin from Docker’s apt repository if they are missing.
Create an A record for demo.example.com pointing to the server IP 203.0.113.10. If the name also has an AAAA record, make sure that IPv6 address reaches the same server. Allow inbound TCP 80 and 443 in the cloud firewall. Let’s Encrypt’s HTTP-01 challenge starts on port 80 even if you want visitors to use HTTPS.
Start Zoraxy and the demo app
Connect to the server and create a directory for the Compose file and the demo page.
ssh {{username}}@{{server_ip}}
mkdir -p ~/zoraxy
cd ~/zoraxySave this as index.html in that directory. Nginx serves this file so you can tell when Zoraxy has forwarded a request to the app.
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Zoraxy HTTPS test</title>
<body style="max-width: 42rem; margin: 14vh auto; padding: 0 1.5rem; font: 1.2rem/1.6 system-ui">
<h1>Zoraxy HTTPS test</h1>
<p>Nginx served this page through Zoraxy.</p>
</body>
</html>Save this as compose.yaml beside it.
services:
zoraxy:
image: zoraxydocker/zoraxy:v3.3.5
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "127.0.0.1:8000:8000"
volumes:
- ./config:/opt/zoraxy/config
- ./plugins:/opt/zoraxy/plugin
demo:
image: nginx:alpine
restart: unless-stopped
volumes:
- ./index.html:/usr/share/nginx/html/index.html:roCompose puts both services on one network. Zoraxy can address Nginx as demo:80 while clients connect through Zoraxy on 80 or 443. Port 8000 is bound to the server’s loopback interface. The setup only needs the official Zoraxy Docker image and its config and plugin mounts.
sudo docker compose up -d
sudo docker compose psCreate the admin account
On your computer, open an SSH tunnel to port 8000 on the server. Keep this terminal open while you use the dashboard.
ssh -N -L 127.0.0.1:18080:127.0.0.1:8000 {{username}}@{{server_ip}}Open http://127.0.0.1:18080 in your browser. On Account Setup, enter a username and a unique password, confirm the password, and click Confirm. On the login screen, enter the new credentials and click Login.

Route the hostname to the Nginx container
Under Reverse Proxy, click Create Proxy Rule and fill in the fields under New Proxy Rule.
| Field | Value |
|---|---|
| Matching Keyword / Domain | {{domain}} |
| Target IP Address or Domain Name with port | demo:80 |
| Proxy Target require TLS Connection | Off. Nginx listens for HTTP on the Compose network. |
Click Create Endpoint. The domain field takes the hostname alone, without https:// or a path. Enter the Compose service name demo as the target host so the rule still works if Docker gives the container a new IP address.

Request a Let’s Encrypt certificate
- Under Security, open ACME Client and click Open ACME Tool.
- Enter your ACME Email and put
{{domain}}in Domain(s). - Select Let’s Encrypt under Certificate Authority (CA). Leave Use a DNS Challenge off for HTTP-01.
- Click Get Certificate. The certificate for the hostname appears under Security → TLS / SSL certificates.

Request the one hostname from your proxy rule, even if you use a wildcard DNS record to point it at the server. A certificate for *.example.com requires DNS-01 validation.
For a server you plan to keep, save an ACME Email under ACME Client and turn on Enable Certificate Auto Renew. Keep the config directory when you recreate the Zoraxy container so the rules and certificates survive.
Check that the app works over HTTPS
Run these checks from your computer. The first follows the redirect from HTTP and validates the certificate. The second confirms that the response came from the demo container.
curl -fsSL -o /dev/null -w '%{http_code} %{url_effective}\n' http://{{domain}}/
200 https://{{domain}}/
curl -fsS https://{{domain}}/ | grep -F 'Nginx served this page through Zoraxy.'
<p>Nginx served this page through Zoraxy.</p>
If the certificate request fails, check public DNS and whether TCP 80 reaches Zoraxy. If the certificate validates but the app fails to load, run sudo docker compose ps and check that the proxy target uses the app’s service name and container port. To use your own app in the same Compose project, change demo:80 to that service name and port.