feat: separate migrator service for safe db initialization

This commit is contained in:
2026-10-30 14:03:07 +03:00
parent db980c439f
commit fa7f5f2dd8
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -24,4 +24,4 @@ EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=3s --start-period=20s --retries=5 \
CMD python -c "import urllib.request,sys; sys.exit(0 if urllib.request.urlopen('http://127.0.0.1:8080/health/ready', timeout=2).status==200 else 1)"
CMD ["sh", "-c", "alembic upgrade head && python -m app.main"]
CMD ["python", "-m", "app.main"]