Case: Launching and Registering an MTProto Proxy in 5 Minutes Using Docker
Published on 2025-10-01
Case: Launching and Registering an MTProto Proxy in 5 Minutes Using Docker
Problem
In some regions, access to Telegram may be unstable or completely blocked. Using public proxies or VPNs is not always convenient: they can be slow, overloaded, or also blocked.
Task
🚀 Create your own fast and reliable proxy, register it in Telegram to track statistics, and optionally make it public.
Solution Choice: Docker + Official MTProto Image
Why Docker? Docker allows you to run the proxy in an isolated container without installing unnecessary dependencies on the server. It’s clean, secure, and incredibly fast. The
docker-compose.yml
file describes the entire configuration in one place, making the launch and management process trivial.Why
telegrammessenger/proxy
? This is the official, verified image from the Telegram team. It’s optimized, stable, and uses the MTProto protocol, specifically designed to work under restrictions and traffic obfuscation.
⚙️ Implementation: Breakdown of docker-compose.yml
services:
mtproto:
# 1. Image
image: telegrammessenger/proxy:latest
container_name: mtproto
# 2. Restart policy
restart: unless-stopped
# 3. Port mapping
ports:
- "443:443/tcp"
# 4. Environment configuration
environment:
# IMPORTANT: SECRET must be a 32-character hex key!
- SECRET=dd000102030405060708090a0b0c0d0e0f
# 5. Data persistence
volumes:
- proxy-config:/data
volumes:
proxy-config:
Key Points Breakdown
Image: uses the official
telegrammessenger/proxy:latest
.Auto-restart:
restart: unless-stopped
ensures the proxy recovers after a crash or server reboot.Port 443: traffic goes through the standard HTTPS port, making blocking harder.
SECRET: a unique 32-character hex key. You can generate it with the command:
head -c 16 /dev/urandom | xxd -ps
It’s recommended to add the prefix
dd
for obfuscation.Volume
proxy-config
: stores settings and statistics between restarts.
Launch and Usage
Save the configuration in a file
docker-compose.yml
.Launch the proxy:
docker-compose up -d
Generate a connection link:
tg://proxy?server=YOUR_IP_ADDRESS&port=443&secret=YOUR_SECRET
Example:
tg://proxy?server=123.45.67.89&port=443&secret=dd000102030405060708090a0b0c0d0e0f
When you open this link, Telegram will automatically prompt you to add the proxy.
📢 Step 5: Registering the Proxy via Bot
To receive usage statistics and possibly be listed in public directories, you need to register your proxy in Telegram.
Find the bot: open Telegram and search for the official bot @MTProxybot.
Start registration: send the command
/newproxy
to the bot.Provide host and port: the bot will ask for
host:port
. Send your server’s IP address and port, for example:123.45.67.89:443
Provide the secret: the bot will request your secret key. Send the same 32-character hex key from
docker-compose.yml
.Get the tag: if successful, the bot will register your proxy and provide a unique promo tag.
After registration, you can use the bot to view connection statistics and also link a sponsor channel. Users connected to your proxy will see a pinned link to your channel at the top of their chat list.
✅ Results
- Reliability: your own controlled proxy with auto-restart.
- Speed: limited only by your VPS performance.
- Security: traffic is disguised as HTTPS, access protected by a secret key.
- Manageability: launch takes 5 minutes, updates require just two commands.
- Transparency: registration via bot gives you statistics and promotion opportunities through a sponsor channel.
Related reviews
I needed to get n8n, Redis, and the database working. I had hired another contractor before and everything kept breaking. I hired Mikhail, and the next day everything was working quickly, like clockwork!
christ_media · n8n installation on your VPS server. Configuration of n8n, Docker, AI, Telegram
Experienced buyer2025-09-24 · ⭐ 5/5
There was a task to get n8n, redis and the database working. I had previously ordered from another contractor, it kept breaking all the time. Ordered from Mikhail, the next day everything started working fast, like clockwork!
Thank you for the fast and excellent work. Everything was done promptly and just as needed!
Dr-zelenin · n8n installation on your VPS server. Configuration of n8n, Docker, AI, Telegram
2025-09-06 · ⭐ 5/5
Thank you for the quick and good work. Everything was done promptly and as needed!
Quick solution — I highly recommend Mikhail as a contractor! I tried to build a similar configuration myself and even followed AI advice, which ended up costing a lot of time and money (due to server downtime). So my advice: hire professionals — it's cheaper =) Thanks to Mikhail for his professionalism.
ladohinpy · n8n installation on your VPS server. Configuration of n8n, Docker, AI, Telegram.
2025-08-25 · ⭐ 5/5
Quick fix for the problem, I recommend Mikhail as a contractor to everyone! I tried to assemble a similar configuration myself and following advice from neural networks, which resulted in a lot of wasted effort and money (due to server downtime). So my advice in the end — turn to professionals, it will be cheaper =) Thanks to Mikhail for his professionalism.
Mikhail completed the setup of another VPS. He quickly and professionally bypassed certain hosting providers' restrictions.

NadoBy · n8n installation on your VPS server. n8n, Docker, AI, Telegram setup
An accustomed customer2025-08-12 · ⭐ 5/5
Mikhail completed the setup of another VPS. Quickly, professionally bypassing certain limitations of hosting providers.
Great job, thank you! Mikhail is a true professional — I recommend him!

Dina_Perova · N8n installation on your VPS server. Setup of n8n, Docker, AI, Telegram
An established customer2025-07-03 · ⭐ 5/5
Excellent work, thank you! Mikhail is a professional in his field, I recommend him!
Thanks to Mikhail for his responsiveness. We spoke by phone; he explained how I could do it myself. This is my second time reaching out — everything’s great and prompt.

kireevk · Consultation on Nginx Proxy Manager and Portainer
A customer who has settled in2025-02-25 · ⭐ 5/5
Thanks to Mikhail for his responsiveness. We had a call; he explained how I could do it myself. This is my second time contacting him; everything is great and prompt.
Related Posts
032 | Proxy Servers in Action: Squid — A Caching Proxy for Traffic Optimization
2025-06-24
031 | Proxy Servers in Action: 3proxy — A Compact and Multifunctional Proxy Server
2025-06-23
030 | Proxy Servers in Action: Dante — a Versatile SOCKS Proxy Server
2025-06-22
029 | Proxy Servers in Action: HAProxy — High-Performance Load Balancer
2025-06-21