From 602b4f34b181f294e5b27529189269ad573390d3 Mon Sep 17 00:00:00 2001 From: Jon Taylor Date: Mon, 1 Jul 2024 16:50:53 +0100 Subject: [PATCH] added example fly.toml --- examples/deployment/flyio-example/README.md | 6 ++++- .../deployment/flyio-example/example-fly.toml | 25 +++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 examples/deployment/flyio-example/example-fly.toml diff --git a/examples/deployment/flyio-example/README.md b/examples/deployment/flyio-example/README.md index 70277d2c6..8a6ac29c4 100644 --- a/examples/deployment/flyio-example/README.md +++ b/examples/deployment/flyio-example/README.md @@ -8,9 +8,13 @@ For this example, we are using Daily as a WebRTC transport and provisioning a ne ## Setting up your fly.io deployment +### Create your fly.toml file + +You can copy the `example-fly.toml` as a reference. Be sure to change the app name to something unique. + ### Create your .env file -Using the `env.example`, enter the necessary API keys. +Copy the base `env.example` to `.env` and enter the necessary API keys. `FLYFLY_APP_NAME` should match that in the `fly.toml` file. diff --git a/examples/deployment/flyio-example/example-fly.toml b/examples/deployment/flyio-example/example-fly.toml new file mode 100644 index 000000000..aee3a3083 --- /dev/null +++ b/examples/deployment/flyio-example/example-fly.toml @@ -0,0 +1,25 @@ +# fly.toml app configuration file generated for pipecat-fly-example on 2024-07-01T15:04:53+01:00 +# +# See https://fly.io/docs/reference/configuration/ for information about how to use this file. +# + +app = 'pipecat-fly-example' +primary_region = 'sjc' + +[build] + +[env] + FLY_APP_NAME = 'pipecat-fly-example' + +[http_service] + internal_port = 7860 + force_https = true + auto_stop_machines = true + auto_start_machines = true + min_machines_running = 0 + processes = ['app'] + +[[vm]] + memory = 512 + cpu_kind = 'shared' + cpus = 1