-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #242 from porters-xyz/prod-deploy
Splitting fly into fly.toml for staging and fly.prod.toml
- Loading branch information
Showing
14 changed files
with
166 additions
and
22 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
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
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
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
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
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,36 @@ | ||
# fly.toml app configuration file generated for porters-proxy-staging on 2024-04-03T20:23:41-05:00 | ||
# | ||
# See https://fly.io/docs/reference/configuration/ for information about how to use this file. | ||
# | ||
|
||
app = 'porters-proxy' | ||
primary_region = 'sea' | ||
|
||
[build] | ||
|
||
[deploy] | ||
strategy = 'canary' | ||
|
||
[env] | ||
HOST = 'rpc.porters.xyz' | ||
### SECRETS ### | ||
# DATABASE_URL = ... | ||
# PROXY_TO = ... | ||
# REDIS_URL = ... | ||
|
||
[http_service] | ||
internal_port = 9000 | ||
force_https = true | ||
auto_stop_machines = true | ||
auto_start_machines = true | ||
min_machines_running = 1 | ||
processes = ['app'] | ||
|
||
[[vm]] | ||
memory = '1gb' | ||
cpu_kind = 'shared' | ||
cpus = 1 | ||
|
||
[[metrics]] | ||
port = 9000 | ||
path = "/metrics" |
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
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
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,36 @@ | ||
# fly.toml app configuration file generated for porters-gatewaykit-staging on 2024-04-03T13:55:40-05:00 | ||
# | ||
# See https://fly.io/docs/reference/configuration/ for information about how to use this file. | ||
# | ||
|
||
app = 'porters-gatewaykit' | ||
primary_region = 'sea' | ||
|
||
[build] | ||
image = 'ghcr.io/pokt-network/pocket-gateway-server:0.3.0-BETA' | ||
|
||
[env] | ||
ALTRUIST_REQUEST_TIMEOUT = '10s' | ||
ENVIRONMENT_STAGE = 'production' | ||
HTTP_SERVER_PORT = '8080' | ||
POKT_RPC_TIMEOUT = '5s' | ||
SESSION_CACHE_TTL = '75m' | ||
|
||
[[services]] | ||
internal_port = 8080 | ||
protocol = 'tcp' | ||
auto_stop_machines = true | ||
auto_start_machines = true | ||
min_machines_running = 1 | ||
[[services.ports]] | ||
handlers = ["http"] | ||
port = 8080 | ||
force_https = false | ||
[[vm]] | ||
memory = '1gb' | ||
cpu_kind = 'shared' | ||
cpus = 1 | ||
|
||
[[metrics]] | ||
port = 8080 | ||
path = "/metrics" |
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,20 @@ | ||
app = 'porters-redis' | ||
|
||
[mounts] | ||
destination = "/data" | ||
source = "redis_data" | ||
|
||
[metrics] | ||
port = 9091 | ||
path = "/metrics" | ||
|
||
# Use the Docker image instead of building from source | ||
|
||
[[services]] | ||
internal_port = 6379 | ||
protocol = "tcp" | ||
[[services.ports]] | ||
port = 6379 | ||
[[services.tcp_checks]] | ||
interval = 10000 | ||
timeout = 2000 |
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,25 @@ | ||
app = 'porters-backend' | ||
primary_region = 'sea' | ||
|
||
[build] | ||
dockerfile = 'Dockerfile.fly' | ||
|
||
[env] | ||
### SECRETS ### | ||
# DATABASE_URL = ... | ||
# ONEINCH_API_KEY = ... | ||
# OX_API_KEY = ... | ||
# RPC_KEY = ... | ||
|
||
[http_service] | ||
internal_port = 4000 | ||
force_https = true | ||
auto_stop_machines = true | ||
auto_start_machines = true | ||
min_machines_running = 0 | ||
processes = ['app'] | ||
|
||
[[vm]] | ||
memory = '1gb' | ||
cpu_kind = 'shared' | ||
cpus = 1 |
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
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
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