← Go back

Dockerizing LibreHatti

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

Install Docker

Follow this guide to install the latest version of Docker.

Clone LibreHatti

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

Add MySQL password to config file

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.

Build docker image

Everything's ready, it's time to build this docker image
docker-compose build

Add tables in the database

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

Run the app from docker container

To run the app, simply run docker-compose up

Open your browser at