I’d like to share my unsuccessful attempt to get the Unifi network controller running on fly.io. I tried using the ghcr.io/linuxserver/unifi-controller Docker container, plus an nginx instance to forward fly.io-terminated SSL to the default self-signed SSL (rather than trying to run letsencrypt in the container). I wasn’t sure if there was an existing fly.io handler that would agree to connect to unchecked HTTPS on the backend.
The nginx proxy seems to work, but I gave up trying to get Unifi’s builtin STUN server to bind to fly.io’s global-services address. There are also probably additional ports that it would prefer to have exposed.
One technique I used was to temporarily replace my app with ghcr.io/linuxserver/openssh-server, in order to copy a backup of my local controller to the volume; then, back to the normal image without the ssh server.