Второй трай фикса celery
This commit is contained in:
3
.env.dev
3
.env.dev
@@ -2,7 +2,8 @@
|
||||
|
||||
# Django Settings
|
||||
DEBUG=True
|
||||
ENVIRONMENT=development
|
||||
# ENVIRONMENT=development
|
||||
DJANGO_ENVIRONMENT=development
|
||||
DJANGO_SETTINGS_MODULE=dbapp.settings.development
|
||||
SECRET_KEY=django-insecure-dev-key-only-for-development
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
DEBUG=False
|
||||
ENVIRONMENT=production
|
||||
# ENVIRONMENT=production
|
||||
DJANGO_ENVIRONMENT=production
|
||||
DJANGO_SETTINGS_MODULE=dbapp.settings.production
|
||||
SECRET_KEY=django-insecure-dev-key-only-for-production
|
||||
|
||||
|
||||
@@ -11,9 +11,9 @@ until PGPASSWORD=$DB_PASSWORD psql -h "$DB_HOST" -U "$DB_USER" -d "$DB_NAME" -c
|
||||
done
|
||||
echo "PostgreSQL started"
|
||||
|
||||
# Ждем Redis
|
||||
# Ждем Redis (проверяем через Python, т.к. redis-cli не установлен)
|
||||
echo "Waiting for Redis..."
|
||||
until redis-cli -h redis ping 2>/dev/null; do
|
||||
until python -c "import redis; r = redis.from_url('${CELERY_BROKER_URL}'); r.ping()" 2>/dev/null; do
|
||||
echo "Redis is unavailable - sleeping"
|
||||
sleep 1
|
||||
done
|
||||
|
||||
@@ -3,7 +3,7 @@ services:
|
||||
# build:
|
||||
# context: ./dbapp
|
||||
# dockerfile: Dockerfile
|
||||
image: https://registry.geraltserv.ru/geolocation:latest
|
||||
image: registry.geraltserv.ru/geolocation:latest
|
||||
env_file:
|
||||
- .env.prod
|
||||
depends_on:
|
||||
@@ -18,7 +18,7 @@ services:
|
||||
# build:
|
||||
# context: ./dbapp
|
||||
# dockerfile: Dockerfile
|
||||
image: https://registry.geraltserv.ru/geolocation:latest
|
||||
image: registry.geraltserv.ru/geolocation:latest
|
||||
env_file:
|
||||
- .env.prod
|
||||
entrypoint: ["/app/entrypoint-celery.sh"]
|
||||
|
||||
Reference in New Issue
Block a user