According to this Early look: PostgreSQL on Fly. We want your opinions. - #56 by kurt. You could download the app’s configuration and edit it. I imagine it would look something like this:
app = "keydb-example"
[experimental]
private_network = true
[mount]
source = "keydb_server"
destination = "/data"
[[services]]
internal_port = 6379
protocol = "tcp"
[[services.ports]]
handlers = []
port = "10000"
[[services.script_checks]]
interval = 5000
timeout = 1000
command = "/fly/check_ready.sh"
restart_limit = 0
[[services.script_checks]]
interval = 5000
timeout = 1000
command = "/fly/check_replicas.sh"
restart_limit = 0
Remove the [[services.ports]]
section and redeploy it. Then you have to manually deallocate the IP addresses with flyctl ips release
. Anyways that’s what I did for one of a Redis deployment of mine.