Skip to content

UCDenver-ccp/brat-docker

 
 

Repository files navigation

brat docker

This is a docker container deploying an instance of brat based on the original work of https://github.com/cassj/brat-docker.

Installation

  1. Create a .env file in the base directory of this repository that contains the admin user info for BRAT. In the example below, replace [USERNAME],[PASSWORD], and [EMAIL] with appropriate values.
BRAT_USERNAME=[USERNAME]
BRAT_PASSWORD=[PASSWORD]
BRAT_EMAIL=[EMAIL]
  1. Build and run an instance of brat
docker compose up -d
  1. Add apache users to the running instance to allow entry to the brat application
docker exec -ti brat bash
> htpasswd -c /bratcfg/.htpasswd [USERNAME]

Replace [USERNAME] with the user name and follow the prompts to enter a password. Once complete, the user/password entered will allow the user to access BRAT, but not login to brat.

  1. Add brat users by creating a users.json file (see below) and placing it in /bratcfg inside the running container.
{
    "user1": "password",
    "user2": "password",
    ...
}

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 72.0%
  • Python 15.7%
  • Shell 12.3%