-
Install Docker v20.10+ for your platform:
-
For Linux additionally install Docker Compose v1.29+
- Create .env file
cp .env.example .env
- Enter your keys:
TELEGRAM_BOT_API_KEY=
OPENWEATHERMAP_TOKEN=
- Build the images and spin up the containers:
docker compose up -d
- Visit:
- Connect to py_django terminal
docker exec -it py_django bash
- Start bot
python manage.py telegram
- Connect to py_django terminal
docker exec -it py_django bash
- Creating an admin user
python manage.py createsuperuser
- Working with models:
python manage.py makemigrations
python manage.py migrate
- Visit:
- Login
[email protected]
postgres
- Add new Server:
name: py_db
host name/address: py_db
username: python
password: python