diff --git a/docker-compose.yml b/docker-compose.yml index f94592ab..306966e9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,18 +14,9 @@ services: command: > sh -c "poetry run python manage.py await_services && if [ \"$DEBUG\" = \"1\" ]; then - poetry run gunicorn evibes.wsgi:application \ - --bind 0.0.0.0:8000 \ - --workers 2 \ - --reload \ - --log-level debug \ - --access-logfile - \ - --error-logfile -; + poetry run gunicorn evibes.wsgi:application --bind 0.0.0.0:8000 --workers 2 --reload --log-level debug --access-logfile - --error-logfile -; else - poetry run gunicorn evibes.wsgi:application \ - --bind 0.0.0.0:8000 \ - --workers 12 \ - --timeout 120; + poetry run gunicorn evibes.wsgi:application --bind 0.0.0.0:8000 --workers 12 --timeout 120; fi" volumes: - .:/app diff --git a/evibes/settings/caches.py b/evibes/settings/caches.py index fd15fd2f..e1b7b1a6 100644 --- a/evibes/settings/caches.py +++ b/evibes/settings/caches.py @@ -4,8 +4,8 @@ from evibes.settings.base import REDIS_PASSWORD, getenv CACHES = { "default": { - "BACKEND": "django_redis.cache.RedisCache", - # "BACKEND": "django_prometheus.cache.backends.redis.RedisCache", + # "BACKEND": "django_redis.cache.RedisCache", + "BACKEND": "django_prometheus.cache.backends.redis.RedisCache", "LOCATION": getenv("CELERY_BROKER_URL", f"redis://:{REDIS_PASSWORD}@redis:6379/0"), "OPTIONS": { "CLIENT_CLASS": "django_redis.client.DefaultClient", diff --git a/evibes/settings/database.py b/evibes/settings/database.py index 781ef829..fee1df81 100644 --- a/evibes/settings/database.py +++ b/evibes/settings/database.py @@ -2,8 +2,8 @@ from evibes.settings.base import * # noqa: F403 DATABASES = { "default": { - # "ENGINE": "django_prometheus.db.backends.postgis", - "ENGINE": "django.contrib.gis.db.backends.postgis", + "ENGINE": "django_prometheus.db.backends.postgis", + # "ENGINE": "django.contrib.gis.db.backends.postgis", "NAME": getenv("POSTGRES_DB"), # noqa: F405 "USER": getenv("POSTGRES_USER"), # noqa: F405 "PASSWORD": getenv("POSTGRES_PASSWORD"), # noqa: F405