Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Tip

This setup includes setting up crater into your own PC using docker

Prerequisites:-

Info

You can find full setup of crater and crater-atomfeed with Bahmni in this given module.

About Openmrs :-

As Openmrs is the main service on which Bahmni is built if any patient is created in Bahmni it will be created in Openmrs database itself and can be seen in crater so you need may need to check Openmrs environment variables.

To check openmrs running configration in bahmni-docker :-
1.Go to openmrs
2.Check the Database configrations in it.

About crater-atomfeed :-

Crater-atomfeed is the service running to connect Bahmni to crater so to run crater we need crater-atomfeed also running, check crater atomfeed configration :-
1. In crater-atomfeed go to environment and match the openmrs and crater configrations to connect openmrs to crater
2. Database configration is present in crater-atomfeed-db
3. Check environment

About crater :-

Crater configration can be checked under crater-nginx section,mentioned port is localhost:81(by default) can be updated if required..

...

Info

Once you understood why we need crater-atomfeed and openmrs with crater you can start setting up crater.

Setup Crater using Docker:-

Once you have cloned the repository cd into Bahmni-docker
Now run the profile of crater using the command

...

Code Block
languagenone
docker-compose --profile openmrs --profile crater --profile crater-atomfeed up -d

Tip

Success

Once you are done with the setup try running crater on the port mention in the docker compose file under crater-nginx section.