Skip to content
Snippets Groups Projects
Commit acde7ef7 authored by Jacek Lebioda's avatar Jacek Lebioda
Browse files

feat: docker-compose fixed

parent 3f58f45d
No related branches found
No related tags found
1 merge request!261Python3 translation
......@@ -19,15 +19,17 @@ services:
&& python manage.py migrate
&& python manage.py migrate sessions
&& python manage.py collectstatic --noinput
&& python manage.py test -v3"
# && python manage.py runserver 0.0.0.0:8002 --verbosity 3"
# && gunicorn -b 0.0.0.0:8002 smash.wsgi:application --access-logfile access.log --error-logfile error.log"
# && python manage.py runserver 0.0.0.0:8002 --verbosity 3
&& 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"
### To run the server through manage.py, use:
# && python manage.py runserver 0.0.0.0:8002"
### To run the verbose tests, uncomment:
# python manage.py test -v3"
command: ""
ports:
- "8002:8002"
volumes:
- static_files:/static/
- static_files:/tmp/static/
depends_on:
- postgres
nginx:
......
# SMart SCHeduling
[![coverage report](https://git-r3lab.uni.lu/piotr.atyjaszyk/scheduling-system/badges/master/coverage.svg)](https://git-r3lab.uni.lu/piotr.atyjaszyk/scheduling-system/commits/master)
[![coverage report](https://git-r3lab.uni.lu/NCER-PD/scheduling-system/badges/master/coverage.svg)](https://git-r3lab.uni.lu/NCER-PD/scheduling-system/commits/master)
## Docker version
If you'd like to try out the application without preparing the environment, you can use Docker (you must have _Docker_ and _docker-compose_ installed):
```
# Navigate to the project's directory
docker-compose build && docker-compose up
# To add a new user, type in the new terminal:
docker-compose exec web sh
python manage.py createsuperuser
```
## Required software (on ubuntu's OS family):
- `sudo apt-get install libpq-dev python-dev postgresql postgresql-contrib python virtualenv python-virtualenv gcc python-lxml libxml2-dev libcurl4-openssl-dev`
......
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