Deploy
Hardware Requirements
CPU - 8vCPU+
RAM - 32GB+
Free Disk - 100GB+
OS - Ubuntu 22.04+
Clone the repository (ideally a tagged release)
git clone --branch v2.12-beta --depth 1 \
https://github.com/egovernments/Citizen-Complaint-Resolution-System.git
cd Citizen-Complaint-Resolution-SystemInstall Prerequisites
cd local-setup/scripts
./install-prereqs.shConfigure Ansible Variables
Create a copy of the default variables file
cd ../ansible # local-setup/ansible
cp inventory/host_vars/quickstart.yml.example inventory/host_vars/mycity.ymlUpdate the variables listed below for deployment (the rest are best defaults)
state_root
Your top-level tenant: the country or state. Lowercase, no dots. Creating it is what the deploy does.
kenya
state_tenant_id
The tenant the browser apps authenticate against. Keep it the same as state_root.
kenya
tenant_id
Your city tenant, where complaints actually live. Must start with <state_root>.
kenya.nairobi
boot_tenant
Default tenant for the citizen app. Same as tenant_id is right.
kenya.nairobi
ui_state_tenant_id
The tenant the app lands on after login. Point at the city.
kenya.nairobi
login_tenant_allowlist
Which tenants appear in the login screen's City dropdown. List both.
[kenya, kenya.nairobi]
map_center
Where the complaint map opens. Required — the deploy fails without it.
{lat: -1.2864, lng: 36.8172}
pgr_boundary_highest_level
pgr_boundary_lowest_level
boundary_type
What your administrative areas are called, largest first. These are labels on the complaint form, so use the words your staff use.
County, Ward, Ward
core_mobile_configs
Your country's phone-number rule. Get this wrong and every citizen signup is rejected.
+254 / ^0?[17][0-9]{8}$
core_postal_configs
Your country's postcode rule.
^[0-9]{5}$
secrets_path
Where this deployment's secrets are filed inside the secret store. Just a path.
kv/digit/mycity
ansible_host
IP of the machine, if deploying on a remote machine. Remove ansible_connection: local line in this case
domain
If needs to be deployed on a domain name vs localhost. Also, set tls_enabled:true in this case
bootstrap_user
Admin Username (defaults to ADMIN)
bootstrap_password
Admin Password (defaults to eGov@123)
Start Deployment
It takes around 60 minutes; use tail -f /opt/digit/digit-stack-up.mycity.progress to view logs
Access Services
Citizen app
Mobile Number with OTP (default otp 123456 if unchanged)
Dashboards (Grafana)
Username - admin, for password use sudo docker exec -e BAO_TOKEN="$(sudo jq -r .root_token /opt/digit/.openbao/init.json)" openbao bao kv get -field=grafana_admin_password kv/digit/mycity
Use the domain name instead of localhost if you used one during configuration.
Enable Notifications
Refer to this page to enable notifications.
Kubernetes Deployment (AWS)
The steps above run everything on a single machine — great for a demo or a small city. For a bigger, always-on deployment that can grow with demand, DIGIT can run on Amazon's managed Kubernetes (EKS). This path sets up the cloud infrastructure for you and then installs DIGIT onto it.
It's more involved than the single-machine path, so it assumes you're comfortable with an AWS account and a terminal.
What you'll need
An AWS account and permission to create things in it. There's a ready-made permissions file at
devops/infra-as-code/terraform/sample-aws/deploy-iam-policy.json— hand it to your AWS admin to attach to your user once, and it covers everything from creating the setup to tearing it down.A few command-line tools installed:
terraform, theawsCLI,kubectl,helm, andhelmfile.
Step 1 — Create the cloud infrastructure
This sets up the whole environment: the network, the Kubernetes cluster, a Postgres database, and the file storage. It's two quick parts.
First, give Terraform a place to keep its notes. Terraform records what it builds (its "state") in an S3 bucket, with a small table alongside it so two people can't run it at the same time. A helper creates both — you just pick a name:
Then open main.tf and, near the top, replace the two <terraform_state_bucket_name> markers with that same name in quotes:
Now create everything. Copy the example settings file and fill it in:
Open terraform.tfvars and set:
cluster_name
A name for your Kubernetes cluster.
"mycity"
db_name
A name for the database (no hyphens).
"ccrsdb"
db_username
The database's admin username.
"ccrs"
db_password
A strong database password. Avoid /, @, ", and spaces — RDS rejects those. This file stays out of git, so it's safe to put here.
Everything else has sensible defaults (region, Kubernetes version, database size, number of servers) in variables.tf — leave them unless you have a reason to change them. Then:
When it finishes, connect your terminal to the new cluster:
Step 2 — Fill in your deployment details
Two files under devops/deploy-as-code/charts/environments/ hold your settings.
In env.yaml, replace the placeholders:
domain
The web address people will use to reach the apps.
cms.mydomain.com
db-host
The address of the database you just created (Terraform prints it at the end).
mycity-db.xxxx.rds.amazonaws.com
fixed-bucketname
The storage bucket for uploaded files (photos on complaints, etc.).
mycity-filestore
assets_s3_bucket
The storage bucket that serves the app's front-end files.
mycity-assets
tenant_id
Your tenant's short name. The bundled sample data uses pg; keep that unless you know you need your own.
pg
In env-secrets.yaml, set your database username and password.
Step 3 — Install DIGIT
DIGIT starts with a ready-made set of sample data (roles, labels, a default tenant). To load it, open charts/backbone-services/backboneservices-helmfile.yaml and set the db-seed entry to installed: true. Then install everything:
The first run takes a while — the services set up their databases and start up one by one. Watch progress with kubectl get pods -A; you're waiting for everything to reach Running. The admin account is created for you in the background once the user service is ready.
Want the dashboards too? Monitoring (Grafana) and the health page (Gatus) are off by default. To turn them on, uncomment the monitoring line in digit-helmfile.yaml, switch the monitoring toggles on in env.yaml (including gatus), create the grafana-admin secret in the monitoring namespace, and run the install command again:
Step 4 — Add your city
Open the Configurator at https://<your-domain>/configurator/ and sign in with the admin user (ADMIN / eGov@123 unless you changed it) and your tenant name. From there you upload your city and boundary sheets to get it running — exactly like the single-machine setup. See docs/onboarding-example/ for sample sheets (boundaries, masters, complaint hierarchy, employees) you can copy and adapt.
Access Services
Employee app
https://<your-domain>/digit-ui/
Admin Username, Admin Password
Citizen app
https://<your-domain>/citizen
Mobile Number with OTP
Configurator
https://<your-domain>/configurator/
Admin Username, Admin Password, Tenant name
Health dashboard
https://<your-domain>/status/
Dashboards (Grafana)
https://<your-domain>/monitoring
Username admin, password from the grafana-admin secret
Destroy Infrastructure
When you want to remove everything, there's one important step first: delete the load balancers Kubernetes created before tearing down the infrastructure. If you skip this, a leftover load balancer keeps the network alive, and the teardown gets stuck.
Was this helpful?