Created
May 20, 2024 17:31
-
-
Save ILoveBacteria/6eee7dac458951591ca35413c22ab91e to your computer and use it in GitHub Desktop.
How to run the mtproto-proxy image and create a systemd unit.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.9" | |
services: | |
mtproto: | |
container_name: mtproto-proxy | |
image: seriyps/mtproto-proxy:latest | |
ports: | |
- "10000:10000" | |
env_file: | |
- ./.env |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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