I’ve deployed a QuestDB image but I’m only able to access port 9000 when I also need port 9009, I would also like to link a fly.io volume and I guess that would be done by creating a fly volume and using the -v argument on the docker run command to link them, this is the docker command that should be run with the image:
You can change the . after fly machine run to something/something:tag
$ fly m run --help
Run a machine
Usage:
flyctl machine run <image> [command] [flags]
Flags:
-a, --app string Application name
--build-nixpacks Build your image with nixpacks
-c, --config string Path to application configuration file
--cpus int Number of CPUs
--detach Return immediately instead of monitoring deployment progress
--dockerfile string Path to a Dockerfile. Defaults to the Dockerfile in the working directory.
--entrypoint string ENTRYPOINT replacement
-e, --env strings Set of environment variables in the form of NAME=VALUE pairs. Can be specified multiple times.
-h, --help help for run
--id string Machine ID, if previously known
--kernel-arg strings List of kernel arguments to be provided to the init. Can be specified multiple times.
--memory int Memory (in megabytes) to attribute to the machine
-m, --metadata strings Metadata in the form of NAME=VALUE pairs. Can be specified multiple times.
-n, --name string Machine name, will be generated if missing
--org string The organization that will own the app
-p, --port strings Exposed port mappings (format: (edgePort|startPort-endPort)[:machinePort]/[protocol[:handler]])
-r, --region string The target region (see 'flyctl platform regions')
--schedule string Schedule a machine run at hourly, daily and monthly intervals
-s, --size string Preset guest cpu and memory for a machine, defaults to shared-cpu-1x
-v, --volume strings Volumes to mount in the form of <volume_id_or_name>:/path/inside/machine[:<options>]
Global Flags:
-t, --access-token string Fly API Access Token
-j, --json json output
--verbose verbose output