Dockerfile for Telegram MTProxy
- Run the image using the following command:
docker run -itd -p 9500:9500 mhshahin/mtproxy
- Run the MTProxy service inside the container using the following command:
docker exec $(docker ps | grep mtproxy | awk '{print $1}') pm2 start mtproxy.js -i max
- To get the Secret Key:
docker exec $(docker ps | grep mtproxy | awk '{print $1}') env | grep SECRET | cut -b 13-
If you wanna change the default Port and Secret, get the Dockerfile from the repository, change YOUR_PORT and YOUR_SECRET values inside it to your desired values, and then execute the following command:
docker build -t mhshahin/mtproxy .
and then proceed from step 1.