Skip to content

Telegram-Bot Template with Django, PostgreSQL, Docker, Aiogram

Notifications You must be signed in to change notification settings

ruslan-korneev/telegram-bot-postgres-docker-template

Repository files navigation

Telegram-Bot-Template

Stack

Python, Aiogram, Django, Docker, PostgreSQL

Setup

cat env_sample > .env
# change values in .env

docker-compose build
docker-compose up -d

Database migrations

# to make new migration files
docker-compose exec web sh -c "python3 src/manage.py makemigrations"
# run migrations
docker-compose exec web sh -c "python3 src/manage.py migrate"