MVP Release including execution script for containers
Pre-release
Pre-release
Initial release, Waiting for feedback for further improvements
Execution Instructions
- Clone the repo and install docker-compose and docker
sudo docker-compose -f docker-compose.prod.yml build
this builds necessary docker containers. (It'll take a while, grab some coffee :D)
- To create necessary tables in the DB and generate static files and build run the following commands( need to be run only once during the initial execution)
sudo docker-compose -f docker-compose.prod.yml run --rm django ./manage.py collectstatic --noinput
sudo docker-compose -f docker-compose.prod.yml run --rm django ./manage.py migrate --noinput
- To finally run the servers use the following command, you can modify the scale parameters to create more containers for load balancing.
-
sudo docker-compose -f docker-compose.prod.yml up --scale django=2 --scale celery=3
-
Browse to
http://localhost:8000
Alternate execution instructions ( please make sure docker-compose is installed )
chmod +x first_run.sh && ./first_run.sh
Please view README.md for details documentation