Every application deployed on appfleet has access to a set of platform native environment variables.
APPFLEET_REGION - The region your application is currently deployed at. appfleet uses airport codes to define our points of presence. Example values: NYC, AMS, SIN. Full list of regions can be found here.
APPFLEET_PUBLIC_IP - The public/external IP of your application. Each instance in every region will have a different IP address. Learn more about how our IPs work. Example value
APPFLEET_OPEN_PORTS - A list of open ports and their protocols. This is based on your settings in the control panel. Example value
APPFLEET_GLOBAL_HOSTNAME - Your appfleet global hostname. This value doesn't change if you add custom domains. Example value `application-prod-1a234b.appfleet.net`
APPFLEET_CLUSTER_NAME - The name of your cluster that was set during creation. Example value
APPFLEET_CONTAINER - The container URL including the tag as it was set in your control panel. Example values
APPFLEET_CONTAINER_DIGEST - The digest of the container currently running the user application. Example value
APPFLEET_NODEID - The unique ID of your instance inside your cluster. It's same ID that we use in our control panel as well. Note that it is possible for 2 or more instances with the same ID to run at the same time during actions like cluster rebuilding.
APPFLEET_CLUSTER_VERSION - The version of the cluster configuration that the application is running on. Example value