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 headerssecrets/help_messages.json
: A JSON formatted file, containing help messages and animationssecrets/email_config.json
: A JSON formatted file, containing error reporting email config.persianmeme_id
: Bot's numeric ID (used for identifying memes that are posted to the voting channel by the bot itself.)
- Create/Edit these configs:
conf/admins.json
: JSON formatted file, containing list of admins to whom internal errors are sent.
- Replace {domain} inside conf/nginx.conf with your domain.
docker stack deploy -c docker-compose.yml --with-registry-auth {stack name}
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 ®