Skip to content

Commit

Permalink
feat: fly io deployment example (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhengYuTay authored Dec 5, 2023
1 parent 159f50c commit a95e9bf
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 0 deletions.
22 changes: 22 additions & 0 deletions examples/fly.io/README.md
Original file line number Diff line number Diff line change
@@ -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)

<b>Note:</b>
- Create an app name
- Recommended size: performance-8x


## To do deployment updates, when new new version release

```
fly deploy
```
Binary file added examples/fly.io/fly-launch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions examples/fly.io/fly.toml
Original file line number Diff line number Diff line change
@@ -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 = "<APP_NAME>"
primary_region = "sin"

[build]
image = "ghcr.io/jup-ag/jupiter-swap-api:latest"

[deploy]
strategy = "bluegreen"

[env]
PORT = "8080"
RPC_URL = "<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

0 comments on commit a95e9bf

Please sign in to comment.