Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 2.15 KB

README.md

File metadata and controls

38 lines (28 loc) · 2.15 KB

Bahmni Docker

Refer this Wiki Page for Running Bahmni on Docker for detailed instructions.

Running Bahmni LITE or STANDARD using docker compose:

  1. Navigate to the relevant subfolder for your desired configuration. For example: cd bahmni-lite.
  2. Execute the script: ./run-bahmni.sh. This script provides various options such as start, stop, view logs, pull updates, reset, etc.
  3. Before executing the above commands, ensure that your .env file in the sub-folder is correctly configured with the appropriate PROFILE.

Alternatively, if you wish to use docker compose commands directly, you can use the --env-file option to pass the environment variables files:

docker compose up --env-file .env

Environment Variable Configuration For Bahmni Lite

The .env and .env.dev files are used for configuring environment variables for the Bahmni Lite Docker setup.

The .env file points to the 1.0.0 image tag, which represents the stable and tested version of Bahmni Lite v1.0.0. We recommend using these images for production purposes. The .env.dev file points to the latest image version, which provides the most recent updates for development and testing purposes.

  • By default run-bahmni.sh script runs with the .env, that uses the 1.0.0 images
run-bahmni.sh
  • Instead if you wish to use the latest images, run the run-bahmni.sh script with the argument .env.dev
run-bahmni.sh .env.dev
  • Additionally, you have the flexibility to create your own environment variable configuration. To do this, create a custom a .env file (eg: .env.local) and run the run-bahmni.sh script with the .env.local argument:
run-bahmni.sh .env.local

Please choose the appropriate environment variables file based on your requirements and make sure the respective .env or .env-dev file is properly configured before running the commands.

For detailed instructions and further information, please refer to the Wiki Page mentioned above.