Add local settings to processing

This commit is contained in:
Mark Veidemanis 2023-01-12 07:20:48 +00:00
parent 4dd8224a77
commit 37789a1f18
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
2 changed files with 5 additions and 3 deletions

View File

@ -1,11 +1,13 @@
import msgpack
from django.core.management.base import BaseCommand, CommandError
from redis import StrictRedis
from core.util import logs
from core.lib.rules import process_rules
import msgpack
from core.util import logs
log = logs.get_logger("processing")
class Command(BaseCommand):
def handle(self, *args, **options):
r = StrictRedis(unix_socket_path="/var/run/socks/redis.sock", db=0)

View File

@ -41,7 +41,7 @@ services:
volumes:
- ${PORTAINER_GIT_DIR}:/code
- ${PORTAINER_GIT_DIR}/docker/uwsgi.ini:/conf/uwsgi.ini
#- ${APP_LOCAL_SETTINGS}:/code/app/local_settings.py
- ${APP_LOCAL_SETTINGS}:/code/app/local_settings.py
- ${APP_DATABASE_FILE}:/code/db.sqlite3
- neptune_static:${STATIC_ROOT}
env_file: