- Download this repository from github:
git clone https://github.com/LCBRU/redcap_docker.git
- Download the appropriate REDCap zip file from Project REDCap.
- Rename the downloaded zip file to
redcap.zipand place it in theredcapfolder of this repository. - make a copy of
example.envcalled.envand give it appropriate values.
- Log into MySQL on the database server and create the database and assign the user by running the command:
CREATE DATABASE IF NOT EXISTS {DATABASE_NAME};
CREATE USER '{USERNAME}'@'%' IDENTIFIED WITH mysql_native_password BY '{USERNAME}';
GRANT SELECT, INSERT, UPDATE, DELETE ON {DATABASE_NAME}.* TO '{USERNAME}'@'%';
Replace {DATABASE_NAME} and {USERNAME} with appropriate values and record them in the .env file.
- Start the docker container by running the command:
docker-compose build && docker-compose up
- Browse to the URL:
{SERVER_NAME}:{PORT}/install.php, replacing {SERVER_NAME} and {PORT} with appropriate values for your server. - Enter values for all the fields and click next.
- Copy the SQL from the webpage and run it on the MySQL server.
- After the script has run, follow the instructions on the webpage to visit the Configuration Check page.
- Change the ownership of the upload directory by running the command:
docker-compose exec redcap chown -R www-data:www-data /edocs
- Change the name and email address of the
site_adminaccount to your good self. - In
General Configuration > Other system settingschange the value ofSet a universal 'FROM' email address for *all* emails sent from REDCapto[email protected] - In
File Upload Settings > Storage Configuration Settingschange the value ofLocal Server File Storageto/edocs