Template for developing Telegram bot on Django with Aiogram on ASGI server.
- Python
- Django
- Aiogram
- PostgreSQL
- Docker
- Github Actions
- Listed in the file backend/requirements.txt
- Clone the repository to your server;
- Create the file `/infra/.env`. The template for filling the file is in /infra/.env.example;
- When running without certificates, use docker-compose with the DEBUG=1 parameter in .env. This gives nginx a certificate-free configuration;
- docker-compose-debug.yml is made to run the project in DEBUG mode with the ability to change the code without restarting the containers;
$ git clone https://github.com/exp-ext/django_aiogram_tgbot.git
$ docker compose -f docker-compose-debug.yml up --build
- Install docker and docker-compose-plugin on the server;
- Clone the repository to your server;
- Create the file `/infra/.env`;
- Get certificates in Let's Encrypt by running the script
- Run the command `docker compose up -d -build`;
$ sudo ./init-letsencrypt.sh
GITHUB: exp-ext