CHT Applications > Quick Guides > Hosting > 3.x > Self Hosting
Hosting the CHT on self run infrastructure
For production CHT deployments, Linux is recommended, with Ubuntu the most commonly used. For CHT development, Linux or macOS may be used. Windows can be used for either, but without recommendation.
Hosting a CHT instance in a cloud provider like AWS or on bare-metal requires you have sufficient hardware specifications, Docker and Docker Compose installed and other infrastructure requirements met.
Depending on the scale of your operation these may need to be adjusted. Be sure to monitor disk usage so that the 8 GB can be increased as needed.
Install both docker
and docker-compose
to run CHT and related containers.
docker
and docker-compose
are automatically installed when following the setup scripts.Depending on which distro you run, install the Docker packages from Docker’s Linux options. Historically, Medic runs Ubuntu: see Docker CE and Docker-compose install pages.
Docker Desktop for Windows needs either Hyper-V support or Windows Subsystem for Linux 2 (WSL 2). Docker’s Windows Docker Desktop install page covers both scenarios.
See Docker’s macOS Docker Desktop install page.
Test that docker
and docker-compose
installed correctly by showing their versions with sudo docker-compose --version
and sudo docker --version
. Note, your version may be different:
sudo docker-compose --version
docker-compose version 1.27.1, build 509cfb99
sudo docker --version
Docker version 19.03.12, build 48a66213fe
Finally, confirm you can run the “hello world” docker container: sudo docker run hello-world
There are serious implications to consider when deploying a CHT instance beyond the above requirements. Be sure to account for:
Hosting the CHT on self run infrastructure
Hosting the CHT on Amazon EC2
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.