Docker Timezone Configuration
By default, Docker containers run in the UTC timezone. However, you can configure the timezone for bahmni-lite's Docker containers by updating the TZ value in the .env file in bahmni-docker/bahmni-lite.
Here are the steps to update the TZ value and set a specific timezone for your Docker containers:
Update the TZ Value
In your project bahmni-docker/bahmni-lite
, open the .env
file and update the TZ value to your desired timezone. By default, the TZ value will be UTC.
# Docker Compose Variables
COMPOSE_PROFILES=emr
# Environment variable to set the timezone for the containers
TZ=UTC
You need to specify the timezone in the TZ database format. For example, if you want to set the timezone to New York (Eastern Standard Time), you would set TZ to "America/New_York". For India, you would set TZ to "Asia/Kolkata", and for Kenya it would be "Africa/Nairobi".
You can find a list of valid timezone values in the TZ database under the TZ identifier column. Save the changes to the .env file.
Restart Docker Containers
To apply the new timezone configuration, restart the Docker containers. You can do this by stopping and removing the existing containers and then starting them again using Docker Compose or the Docker CLI.
For example, if you're using Docker Compose, you can run the following command in your project directory: