Created
December 24, 2018 21:03
-
-
Save g1ibby/355afbea2c5157929c0f09cff390be3d to your computer and use it in GitHub Desktop.
Telegram MTProto Docker compose
This file contains 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
# /etc/systemd/system/docker-compose-tgmp.service | |
[Unit] | |
Description=Docker Compose tgmp Service | |
Requires=docker.service | |
After=docker.service | |
[Service] | |
Type=oneshot | |
RemainAfterExit=yes | |
WorkingDirectory=/home/ubuntu/tg_mp | |
ExecStart=/usr/local/bin/docker-compose -f docker-compose.yml up -d | |
ExecStop=/usr/local/bin/docker-compose -f docker-compose.yml down | |
TimeoutStartSec=0 | |
[Install] | |
WantedBy=multi-user.target |
This file contains 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.0' | |
services: | |
mtproxy: | |
image: telegrammessenger/proxy:latest | |
hostname: mtproxy | |
container_name: mtproxy.local | |
volumes: | |
- proxy-config:/data | |
network_mode: "host" | |
environment: | |
- WORKERS=1 | |
restart: always | |
volumes: | |
proxy-config: | |
external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment