This project is used as a simple way of deploying backend and frontend of the handwriting labeling app along with a database to the same server as docker-containers.
- After cloning the project run
git submodule update --init
to fetch content of the submodules. - Run
provide-defaults.sh
to generate default environment in.env
. - Adjust
.env
andconfig/batch_service_config.json
to your needs. - Copy example/sample files into their respective directories (The content of these directories needs to follow the structure specified in the README.md-file in the backend-project).
- To build and run everything as docker-containers on your machine execute the following command:
docker-compose build && docker-compose up -d
Hint: After the first manual setup, the update_and_restart.sh
script automatically deploys the latest version of this project.
If you want this script to also update your provided image-files you will need to adjust the _update_files.sh
-script that is created by provide-defaults.sh