Calima Sanar EHR - hosting in digital ocean
Digital Ocean is a cloud infrastructure provider with data centers worldwide, for Fast and easy healthcare dev
Their main offices are in NY; and they have been friendly supporters of our work and open-source at large
The purpose of this guide is to encourage users to deploy Medplum API & client applications using Digital Ocean
what is Medplum?
Medplum is an open source healthcare development platform,
It provides a REST API, Types for FHIR resources, React components, database migrations, auth and a supportive community
Medplum offers enterprise support & subscriptions, and it is possible to self host
The medplum documentation includes steps & terraform scripts for AWS, we have run instances in AWS and are working to launch our new application using Digital Ocean and publish our experience
Medplum API using Digital Ocean App platform
The app platform allows you to launch managed, reliable servers and databases with a few clicks
Recommend for production environments, is easier to rollback, and you can fork the source code and introduce extensions, or deploy a separate client application that interfaces with it
We're using Digital Ocean App Platform to deploy a node server easily with Dockerfile,
We use the postgres & redis managed services to safely store our data
Use ENV VARS to set up the correct domains and database passwords
The medplum server users turbo to build, you can fork the repo and add the additional building scripts, keeping your own copy is also helpful to upgrade at your own speed and send pull requests with improvements
[Digital Ocean Referral Code For $200 in credits]
[Powered by Digital Ocean Logo]
[Digital Ocean Calima medplum Resources screenshot]
Medplum API via Digital Ocean Droplet
It is also possible to run medplum in a droplet, is cheaper and easy to replicate for multiple environments
Droplets are the name for VMs, you can select different size settings and the operative system
Selecting an Ubuntu machine is easy to install postgres, redis, docker, git, and ssh - store document uploads in the VM, or adding external storage volumes
Clone the medplum repo and follow the install instructions, use nginx, docker or nodemon to keep the application running
SSH into the machine periodically to update to a new version
While this requires more work, it also gives you more control on the deployment, and is cheaper
Recommended for developer or test environments
This deployment supports creating Subscriptions for automations
[Medplum install on ubuntu guide]
Medplum Dashboard via Static Sites
The dashboard is a react application that compiles into a single page application
You can pluck out the folder and adjust the build configuration in a new repo
Use Env Variables to point the app to the correct API, review on the network tab when is running to verify
[How to deploy static site digital ocean]
[Sanar medplum app hosted in digital ocean]
additional links
[Digital Ocean hatch for startups]
Digital ocean spaces
Digital Ocean offers a storage solution compatible with the S3 API
Sendgrid
Enter your sendgrid API keys to enable password reset, and other medplum emails
