-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: fly io deployment example (#3)
- Loading branch information
1 parent
159f50c
commit a95e9bf
Showing
3 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |