fix: suppress application healthcheck logs

This commit is contained in:
bisco
2026-06-24 11:26:00 +02:00
parent 719cdce9c1
commit 84d08dd1f1
7 changed files with 30 additions and 7 deletions
+1 -1
View File
@@ -21,4 +21,4 @@ USER django
EXPOSE 8000
ENTRYPOINT ["./entrypoint.sh"]
CMD ["gunicorn", "config.wsgi:application", "--bind", "0.0.0.0:8000", "--workers", "2", "--access-logfile", "-"]
CMD ["gunicorn", "config.wsgi:application", "--bind", "0.0.0.0:8000", "--workers", "2", "--log-level", "warning"]
+2 -2
View File
@@ -2,7 +2,7 @@
set -eu
attempt=1
until python manage.py migrate --noinput; do
until python manage.py migrate --noinput --verbosity 0; do
if [ "$attempt" -ge 10 ]; then
echo "Database migrations failed after $attempt attempts." >&2
exit 1
@@ -11,5 +11,5 @@ until python manage.py migrate --noinput; do
sleep 2
done
python manage.py collectstatic --noinput
python manage.py collectstatic --noinput --verbosity 0
exec "$@"