Environment variables

These are environment variables available to your app at runtime provided by HOPS.

varwhatsee
DATABASE_URLFull URL/connection string of provisioned database. postgres://user:password@host:port/databasepostgres
DB_DATABASEdatabase of the provisioned database, alias of PGDATABASEpostgres
DB_HOSThost of the provisioned database, alias of PGHOSTpostgres
DB_PORTport of the provisioned database, alias of PGPORTpostgres
DB_PASSWORDpassword of the provisioned database, alias of PGPASSWORDpostgres
DB_USERNAMEuser of the provisioned database, alias of PGUSERpostgres
HOPS_BUILD_NUMBERDeprecated in favour of HOPS_BUILD_ID
HOPS_BUILD_IDThe build id associated with the running container.
HOPS_DEPLOYMENT_IDThe deployment id for the deploy that is currently running.iterapp.toml
HOPS_DOMAINThe main domain the app listens to.domains
HOPS_DOMAINSComma speratated list of all domains the app listens to.domains
HOPS_ENVThe environment the app is running in. (E.g prod, test, snap3, etc)environments
HOPS_GIT_SHAThe GIT SHA hash used for buildingiterapp.toml
ITERAPP_BUILD_NUMBERDeprecated in favour of HOPS_BUILD_ID
ITERAPP_DEPLOYMENT_IDDeprecated in favour of HOPS_DEPLOYMENT_ID
ITERAPP_GIT_SHADeprecated in favour of HOPS_GIT_SHA
NATS_CA_FILEPath to a file with the CA-certificate used to sign the TLS-certificate used by NATSNATS
NATS_CREDENTIALSThe credentials required to connect to the nats-serverNATS
NATS_CREDENTIALS_FILEPath of a file with the same content as in NATS_CREDENTIALSNATS
NATS_URLURL used to connect to the nats-serverNATS
PGDATABASEdatabase of the provisioned database, alias of DB_DATABASEpostgres
PGHOSThost of the provisioned database, alias of DB_HOSTpostgres
PGPASSWORDpassword of the provisioned database, alias of DB_PASSWORDpostgres
PGPORTport of the provisioned database, alias of DB_PORTpostgres
PGUSERuser of the provisioned database, alias of DB_USERpostgres
PORTset by the port property in iterapp.toml (defaults to 3000)iterapp.toml
REDIS_HOSThost for provisioned Redis.redis
REDIS_PASSWORDpassword for provisioned Redis.redis
REDIS_PORTport for provisioned Redis.redis
REDIS_URLURL/connection string for provisioned Redis. redis://user:password@host:portredis
REDIS_USERuser for provisioned Redis.redis

Custom variables

In addition to the variables mentioned above, all environment variables you specify in iterapp.toml will be available the app in the appropriate environment.

System variables

In addition to the variables mentioned above, the OS/distro/runtime of your app (for example Ubuntu, ZSH) will set environment variables available to your app.