Starting the Service

Perform the following commands to start the service.

  1. Commands to start the Service

docker-compose -p qureapi up -d
docker exec -t qureapi bash -c "python /app/services/qure_platform_api/qure_platform_api_image.binary migrate"
docker exec -t qureapi bash -c "python /app/services/qure_platform_api/qure_platform_api_image.binary populatedefaults"
  1. Friendly alias

alias up='docker-compose -p qureapi up -d'
alias down='docker-compose -p qureapi down --remove-orphans'
alias logs='docker-compose -p qureapi logs -f --tail 100'

alias db_migrate='docker exec -t qureapi bash -c "python /app/services/qure_platform_api/qure_platform_api_image.binary migrate"'
alias set_default='docker exec -t qureapi bash -c "python /app/services/qure_platform_api/qure_platform_api_image.binary populatedefaults"'

alias remove_vol='docker volume rm qureapi_vrad-qureapi-db qureapi_vrad-qureapi-data'
alias reset_services='docker-compose -p qureapi down --remove-orphans && remove_vol && up && db_migrate && set_default'

Last updated