Accessing Autoset ENV Variables

Multiple ways to do so:

  1. Set env in Dockerfile: Docker ARG, ENV and .env - a Complete Guide · vsupalov.com
  2. Set env in fly.toml: Fly Launch configuration (fly.toml) · Fly Docs
  3. Set env at runtime with secrets: Secrets and Fly Apps · Fly Docs

In case you want to, sleep for inf from your entrypoint, and you should then be able to ssh into the VM to inspect it: Is there a way to disable health checks? - #9 by kurt

1 Like