Files
smartsoltech_site/docker-entrypoint-bot.sh

12 lines
218 B
Bash
Executable File

#!/bin/bash
set -e
echo "Waiting for PostgreSQL..."
while ! nc -z postgres_db 5432; do
sleep 1
done
echo "PostgreSQL is ready!"
echo "Starting Telegram bot..."
exec python smartsoltech/manage.py start_telegram_bot