Skip to content
Snippets Groups Projects
Commit 7a1c9ee2 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

change port to 8888

parent 7a843f8e
No related branches found
No related tags found
3 merge requests!316Merge 1.0.1,!3151.0.1 into master,!313Docker issue
Pipeline #38434 passed
......@@ -21,5 +21,5 @@ RUN npm --version
RUN npm install
ENTRYPOINT [ "/bin/sh" ]
CMD [ "manage.py runserver 0.0.0.0:8002" ]
EXPOSE 8002
CMD [ "manage.py runserver 0.0.0.0:8888" ]
EXPOSE 8888
......@@ -13,21 +13,21 @@ services:
web:
build: .
expose:
- '8002'
- '8888'
entrypoint: bash -c "sleep 5
&& python manage.py makemigrations web
&& python manage.py migrate
&& python manage.py migrate sessions
&& python manage.py collectstatic --noinput
&& echo && echo && echo 'The server will start now...'
&& gunicorn -b 0.0.0.0:8002 smash.wsgi:application --access-logfile access.log --error-logfile error.log"
&& gunicorn -b 0.0.0.0:8888 smash.wsgi:application --access-logfile access.log --error-logfile error.log"
### To run the server through manage.py, use:
# && python manage.py runserver 0.0.0.0:8002"
# && python manage.py runserver 0.0.0.0:8888"
### To run the verbose tests, uncomment:
# python manage.py test -v3"
command: ""
ports:
- "8002:8002"
- "8888:8888"
volumes:
- static_files:/tmp/static/
depends_on:
......
......@@ -43,7 +43,7 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://web:8002;
proxy_pass http://web:8888;
}
}
}
......@@ -46,6 +46,6 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://web:8002;
proxy_pass http://web:8888;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment