Basic Usage
- Install Docker and ensure it is running.
- clone this repository
- Run
docker-compose build
inside the root directory. - Run
docker-compose up -d
to start up the project.
Development
- Visit http://localhost:8000 to see the root URL of the django app.
- Visit http://localhost:3000 to see the react app.
- Visit http://localhost:8888 will give you logs for each container.
Commands
These Make commands can also be used if your machines supports Make. You should only need numbers 1-4.
make up
to build the project and starting containers.make build
to build the project.make start
to start containers if project has been up already.make stop
to stop containers.make shell-web
to shell access web container.make shell-db
to shell access db container.make shell-nginx
to shell access nginx container.make logs-web
to log access web container.make logs-db
to log access db container.make logs-nginx
to log access nginx container.make collectstatic
to put static files in static directory.make log-web
to log access web container.make log-db
to log access db container.make log-nginx
to log access nginx container.make restart
to restart containers.
Future DS support
In the Dockerfile
we can add support for Numpy, Scipy, Gensim, Pandas, etc later https://gist.github.com/ruddra/870d7a51238ddfa4b50375086c12a4f5