Deployment
Getting Started
- Install latest docker and docker-compose
- Clone the repository (with it's submodules)
git clone --recurse-submodules https://github.com/classtranscribe/Deployment.git
- Enter repository.
cd Deployment/
- Update submodules.
git submodule foreach git pull origin master
For a development build on a local machine,
-
Obtain a
.env
file from an admin. -
Build and run docker-compose
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up --build -d
- Run the app at localhost
For a production build do the following,
- Create directories required for docker volumes using the script
create_directories.sh
Usage ./create_directories.sh <absolute_path_to_an_empty_directory>
Eg. ./create_directories.sh /home/username/docker_data
- Make a copy of the
sample-environment-variable-file.env
as.env
cp sample-environment-variable-file.env .env
-
Update all the required environment variables in the .env file, contact admin if clarification required.
-
Build and run docker-compose
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up --build -d