Add monitoring TG service

This commit is contained in:
Grendgi
2026-06-04 14:55:41 +03:00
commit f9e072774c
74 changed files with 7232 additions and 0 deletions

16
docker/entrypoint.sh Normal file
View File

@@ -0,0 +1,16 @@
#!/bin/sh
set -e
# Run migrations on every container start. Idempotent: alembic skips
# revisions already applied. Skipped for one-shot commands like `alembic`
# itself (would deadlock when explicitly invoked) and for the auth helper.
case "$1" in
alembic|python\ -m\ parser_bot.auth|/bin/sh|sh|bash)
exec "$@"
;;
esac
echo "[entrypoint] running alembic upgrade head"
alembic upgrade head
exec "$@"