Local Build
Last updated
Was this helpful?
Last updated
Was this helpful?
Docker is the fastest way to run Patient Cloud API. The image located on Docker Hub .
With you can easily configure, install, and upgrade your Docker-based Patient Cloud installation:
Example docker-compose.yml
with MariaDB (check chapter for configuration options):
Make sure you are in the same directory as docker-compose.yml
and start Patient Cloud:
Clone Patient Cloud repository:
Change directory:
Install dependencies:
Run Patient Cloud
Patient Cloud uses environment variables for configuration. Here is a list of all variables:
Variable
Description
NODE_ENV
Set to development
or production
DB_URL
Database connection URL. Example: mysql://login:password@host:3306/dbname
EMAIL_TRANSPORT_URL
SMTP connection URL for sending mails. Example: smtps://login:password@email-smtp.eu-central-1.amazonaws.com
EMAIL_FROM
From email. Example: noreply@patientcloud.ai
NODE_PORT
Running port: 80
JWT_SECRET
JSON Web Token secret key string.
FRONTEND_URL
Front end URL. Used for user registration activation, password recovery and oAuth redirect.
SENTRY_DSN
NHS_OPEN_ID_ENDPOINT
NHS OpenID endpoint. https://auth.sandpit.signin.nhs.uk
for sandbox.
NHS_OPEN_ID_CLIENT_ID
NHS OpenID clientId digital-health-passport
NHS_OPEN_ID_CLIENT_PASSWORD
NHS OpenID password dummy
NHS_OPEN_ID_CLIENT_SCOPE
NHS OpenID scope openid profile
NHS_OPEN_ID_CLIENT_KEY
NHS OpenID private key private_key.pem
The key located at /common/keys
directory
NHS_OPEN_ID_CLIENT_REDIRECT_URI
NHS OpenID redirect URL http://localhost/auth/nhs-callback
Backend NHS callback process endpoint.
GOOGLE_APPLICATION_CREDENTIALS
Full path on local file system to Google application credentials, e.g.: /config/google.credentials.json
SENTRY_DSN
TRAILS_URL
Configure Patient Cloud environment variables and database. Check chapter.
connection URL
Sentry.io connection URL e.g.
Trails audit connection URL e.g.: