This is the backend for AI Webscrapper
- Docker
- Python 3.10
- virtualenv package
- Clone the repository
- Go to project root directory.
- Run:
cp .env.example .env.local - Build the image using command:
docker-compose build - To run the container:
docker-compose up -dThis will run all the required containers in daemon mode. You should be able to see the site running at: http://localhost:8000/api - To run migrations:
docker-compose exec web python manage.py flush --no-inputdocker-compose exec web python manage.py migrate - To collect static files:
docker-compose exec web python manage.py collectstatic --no-input --clear - To stop running container
docker-compose down
https://testdriven.io/blog/dockerizing-django-with-postgres-gunicorn-and-nginx/