Search…
⌃K
Links

Setting environment variables

Tonic uses environment variables for many of its configuration options. For example, the ENABLE_LOG_COLLECTION environment variable determines whether you share logs with Tonic.
Where you set these variables depends on how your instance of Tonic is deployed.

Kubernetes

If your Tonic instance is deployed using Kubernetes, then you add environment variables and values to the list in the env object in values.yaml. For example:
env: {
"TONIC_SSO_AUTHORIZATION_SERVER_ID": "12345",
"TONIC_SSO_PROVIDER": "google"
}

Docker

If your Tonic instance is deployed using Docker, then you can either:
  • Set the value directly in docker-compose.yaml.
  • Set the value in your .env file, and add a reference to the variable in docker-compose.yaml.
To set the value directly in docker-compose.yaml, add the variable and value to the appropriate section of the file (tonic_web_server or tonic_worker). For example:
TONIC_SSO_AUTHORIZATION_SERVER_ID: 12345
TONIC_SSO_PROVIDER: google
If you set the value in .env, then to add the reference in docker-compose.yaml:
TONIC_SSO_AUTHORIZATION_SERVER_ID: ${TONIC_SSO_AUTHORIZATION_SERVER_ID}
TONIC_SSO_PROVIDER: ${TONIC_SSO_PROVIDER}