A Project Containing Telegram API bots and small web apps .
- Install Docker
- Create a swarm
- Create these docker swarm secrets:
persianmeme_token
: Persian Meme Telegram API tokenpersianmeme_channel
: Persian Meme voting channel IDsecret_key
: Django secret keydb_password
: Database passwordpersianmeme_logs
: Persian Meme logging channel IDpersianmeme_messages
: "Contact Admin" archive channel IDpersianmeme_reports
: Meme Report archive channel IDssl_certificate
: SSL certificatessl_key
: SSL private keydhparam
: SSL dhparamdomain
: Your Domainwebhook_token
: Security token which Telegram will include in its webhook requests headerspersianmeme_help_messages
: A JSON file containing help messages and animations
- Replace {persianmeme_token} & {domain} inside conf/nginx.conf with your domain and bot token
docker stack deploy -c docker-compose.yml {stack name}
Swarm health checks are included and containers will get replaced after running into a problem !
If you have any questions about docker swarm or secrets checkout Docker official documentation about Docker swarm secrets: https://docs.docker.com/engine/swarm/secrets/
-
In order to update your stack use this command:
docker stack deploy -c docker-compose.yml --with-registry-auth {stack name}
Created by NitroZeus and RezFD
- Telegram: @SholexTeam
- GitHub: @RealNitroZeus - @RezFD
- Email: NitroZeus - RezFD
SholexTeam ®