Skip to content

Instantly share code, notes, and snippets.

@Lvdwardt
Last active December 11, 2025 15:24
Show Gist options
  • Select an option

  • Save Lvdwardt/707d9c3fb4581d38102399f91a21c9c6 to your computer and use it in GitHub Desktop.

Select an option

Save Lvdwardt/707d9c3fb4581d38102399f91a21c9c6 to your computer and use it in GitHub Desktop.
Rustdesk + Nginx proxy manager
version: '3'
networks:
rustdesk-net:
external: false
services:
nginx-proxy-manager:
image: 'jc21/nginx-proxy-manager:latest'
restart: unless-stopped
ports:
# These ports are in format <host-port>:<container-port>
- '80:80' # Public HTTP Port
- '443:443' # Public HTTPS Port
- '8081:81' # Admin Web Port
# Add any other Stream port you want to expose
# - '21:21' # FTP
# Ports needed for Rustdesk:
- '21115:21115'
- '21116:21116'
- '21116:21116/udp'
- '21117:21117'
- '21118:21118'
- '21119:21119'
# Uncomment the next line if you uncomment anything in the section
# environment:
# Uncomment this if you want to change the location of
# the SQLite DB file within the container
# DB_SQLITE_FILE: "/data/database.sqlite"
# Uncomment this if IPv6 is not enabled on your host/
# DISABLE_IPV6: 'true'
volumes:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
networks:
- rustdesk-net
hbbs:
container_name: hbbs
image: rustdesk/rustdesk-server:latest
command: hbbs -r rustdesk.yourDomain.com:21117
volumes:
- ./data:/root
networks:
- rustdesk-net
depends_on:
- hbbr
restart: unless-stopped
hbbr:
container_name: hbbr
image: rustdesk/rustdesk-server:latest
command: hbbr
volumes:
- ./data:/root
networks:
- rustdesk-net
restart: unless-stopped
@Zahorone
Copy link

I have made it work. Here in comments is a lot confusing advices. Probably I try to make step by step tutorial

@Seger85
Copy link

Seger85 commented Oct 1, 2025

@Zahorone yes please! :-)

@VenimK
Copy link

VenimK commented Oct 2, 2025

Always welcome

@Zahorone
Copy link

Zahorone commented Oct 8, 2025

@Zahorone yes please! :-)

I did it. Here it is enjoy. I made there some changes. My version allow access NPM admin port via ssh tunnel from localhost only.

https://gist.github.com/Zahorone/984e75c6a3e8c4a1706f81b6c5e55071

@M-Patrone
Copy link

Hi, We’ve installed the RustDesk server as a Docker container, and now we’d like to use our existing Nginx service as a reverse proxy. The important detail is that Nginx is installed directly on the system (as a service), not as a Docker container.

We used the custom installation method described here.

Does anyone have an example Nginx site configuration for this setup?

We are also not sure, if it is only possible to use nginx proxy when you have the pro version with the website.

Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment