Skip to content

Instantly share code, notes, and snippets.

@ILoveBacteria
Created May 20, 2024 17:31
Show Gist options
  • Save ILoveBacteria/6eee7dac458951591ca35413c22ab91e to your computer and use it in GitHub Desktop.
Save ILoveBacteria/6eee7dac458951591ca35413c22ab91e to your computer and use it in GitHub Desktop.
How to run the mtproto-proxy image and create a systemd unit.
version: "3.9"
services:
mtproto:
container_name: mtproto-proxy
image: seriyps/mtproto-proxy:latest
ports:
- "10000:10000"
env_file:
- ./.env
[Unit]
Description=Telegram Mtproto proxy
After=docker.service
Requires=docker.service
BindsTo=docker.service
ReloadPropagatedFrom=docker.service
[Service]
WorkingDirectory=/home/moein/mtproto/
ExecStart=docker-compose up --no-recreate
ExecStop=docker-compose stop
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment