diff --git a/examples/fly.io/README.md b/examples/fly.io/README.md new file mode 100644 index 0000000..5361f3e --- /dev/null +++ b/examples/fly.io/README.md @@ -0,0 +1,22 @@ +# Deploy Jupiter V6 Swap API on Fly.io + +https://fly.io/ + +## To launch an app in fly.io + +``` +fly launch +``` + +![fly launch ui settings](./fly-launch.png) + +Note: +- Create an app name +- Recommended size: performance-8x + + +## To do deployment updates, when new new version release + +``` +fly deploy +``` \ No newline at end of file diff --git a/examples/fly.io/fly-launch.png b/examples/fly.io/fly-launch.png new file mode 100644 index 0000000..52d2121 Binary files /dev/null and b/examples/fly.io/fly-launch.png differ diff --git a/examples/fly.io/fly.toml b/examples/fly.io/fly.toml new file mode 100644 index 0000000..8ddc66d --- /dev/null +++ b/examples/fly.io/fly.toml @@ -0,0 +1,41 @@ +# fly.toml app configuration file generated for test-jupiter-swap-api on 2023-12-04T14:14:21+08:00 +# +# See https://fly.io/docs/reference/configuration/ for information about how to use this file. +# + +app = "" +primary_region = "sin" + +[build] +image = "ghcr.io/jup-ag/jupiter-swap-api:latest" + +[deploy] +strategy = "bluegreen" + +[env] +PORT = "8080" +RPC_URL = "" +# YELLOWSTONE_GRPC_ENDPOINT = "" # Optional +# YELLOWSTONE_GRPC_X_TOKEN = "" # Optional + +[http_service] +internal_port = 8080 +auto_stop_machines = true +auto_start_machines = true +min_machines_running = 1 +[http_service.concurrency] +type = "requests" +hard_limit = 30 +soft_limit = 10 + +[[http_service.checks]] +interval = "30s" +timeout = "5s" +grace_period = "20s" +method = "GET" +path = "/program-id-to-label" + +[[vm]] +cpu_kind = "performance" +cpus = 8 +memory_mb = 16384