This commit is contained in:
2024-12-21 21:56:15 +09:00
parent 1e64a432ab
commit c535a51953
42 changed files with 1069 additions and 0 deletions

14
.docker/admin/entrypoint.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/sh
# Ожидание доступности базы данных
until nc -z -v -w30 $DB_HOST $DB_PORT; do
echo "Ожидание базы данных..."
sleep 1
done
# Выполняем миграции
python manage.py makemigrations --no-input
python manage.py migrate --no-input
# Запускаем приложение
exec "$@"