Commit 797c8dc6 authored by Boyarskiy Andrew's avatar Boyarskiy Andrew
Browse files

Correcting mistakes to make a working sample

1 merge request!1Correcting mistakes, support of ew cameras added
Showing with 7 additions and 6 deletions
+7 -6
......@@ -2,7 +2,7 @@
FROM python:3
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
COPY onvif-proxy onvif-proxy
WORKDIR onvif-proxy
COPY django-app django-app
WORKDIR django-app
RUN pip install -r requirements.txt
RUN ls
......@@ -26,9 +26,9 @@ sys.path.insert(0, os.path.join(PROJECT_ROOT, 'apps'))
SECRET_KEY = 'django-insecure-h1!zyj^2&)tqp$21xsks2*e5ckd@o-@xv(a02$d=6waw$i0_94'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
DEBUG = True
ALLOWED_HOSTS = ['*']
ALLOWED_HOSTS = ['0:0:0:0', '172.18.191.31']
# Application definition
......
Django>=4.0
requests==2.28.1
version: "3.9"
version: "3.3"
services:
onvif-proxy:
build: .
command: python ./manage.py runserver 8000
command: python ./manage.py runserver 0.0.0.0:8000
# volumes:
# - onvif-proxy:/onvif-proxy
ports:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment