LibreHatti is an open source CRM solution built in Django. This post tells how to run LibreHatti in a docker container.
Docker is an application that makes it simple and easy to run application processes in a container, which are like virtual machines, only more portable, more resource-friendly, and more dependent on the host operating system. Read More about dockers
Follow this guide to install the latest version of Docker.
Clone Librehatti from my forked version. This forked version have been configured to be ready to use from a docker container.
git clone https://github.com/gauravjeetsingh/librehatti
After cloning, you will see a file named docker-compose.yml
.
Open that file and add your root password of mysql server installed locally on your machine. See the line no 13 of this file.
- MYSQL_ROOT_PASSWORD=YOUR_MYSQL_ROOT_PASSWORD
Everything's ready, it's time to build this docker image
docker-compose build
To add tables in database as per your app, you can run the syncdb app of python in docker container as following
docker-compose web run python src/manage.py syncdb
To run the app, simply run docker-compose up
Open your browser at http://0.0.0.0:8000