test 1
This commit is contained in:
+2
-2
@@ -15,6 +15,6 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|||||||
|
|
||||||
COPY . /app/
|
COPY . /app/
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8111
|
||||||
|
|
||||||
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "lmsege.wsgi:application"]
|
CMD ["gunicorn", "--bind", "0.0.0.0:8111", "lmsege.wsgi:application"]
|
||||||
|
|||||||
+2
-2
@@ -8,14 +8,14 @@ services:
|
|||||||
python manage.py makemigrations users lms &&
|
python manage.py makemigrations users lms &&
|
||||||
python manage.py migrate &&
|
python manage.py migrate &&
|
||||||
python manage.py collectstatic --noinput &&
|
python manage.py collectstatic --noinput &&
|
||||||
gunicorn --bind 0.0.0.0:8000 lmsege.wsgi:application"
|
gunicorn --bind 0.0.0.0:8111 lmsege.wsgi:application"
|
||||||
volumes:
|
volumes:
|
||||||
- .:/app
|
- .:/app
|
||||||
- db-data:/app/lmsege/db_data
|
- db-data:/app/lmsege/db_data
|
||||||
- media-data:/app/lmsege/media
|
- media-data:/app/lmsege/media
|
||||||
- static-data:/app/lmsege/staticfiles
|
- static-data:/app/lmsege/staticfiles
|
||||||
ports:
|
ports:
|
||||||
- "80.68.9.238:8111:8000"
|
- "8111:8111"
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user