Host Paths
These variables point to files that live outside Docker but must be mounted into containers for credentials. Keep the referenced files in secure directories and avoid checking them into source control.
GOOGLE_APPLICATION_CREDENTIALS
- In Google Cloud Console, open IAM & Admin → Service Accounts and select/create the account used for storage or Vertex AI access.
- Choose Keys → Add key → Create new key → JSON to download a service-account JSON file.
- Move the JSON to a safe location on your workstation (for example
~/.config/gcloud/ii-service-account.json) and restrict file permissions (chmod 600). - Set
GOOGLE_APPLICATION_CREDENTIALSto the absolute path of that file. Docker will mount it into the containers defined indocker/docker-compose.stack.yaml. - Update the path if you rotate the key or switch laptops.