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 80/tcp,53/udp,222/tcp

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 application-prod

APPFLEET_CONTAINER - The container URL including the tag as it was set in your control panel. Example values nginx:latest , quay.io/orgname/container:latest , nginx/nginx:latest

APPFLEET_CONTAINER_DIGEST - The digest of the container currently running the user application. Example value sha256:77af4d6b9913e693e8d0b4b294fa62ade6054e6b2f1ffb617ac955dd63fb0182

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.

Example value AMS4

APPFLEET_CLUSTER_VERSION - The version of the cluster configuration that the application is running on. Example value 16

Did this answer your question?