Skip to content

Commit

Permalink
Adds Fly.io deployment configs
Browse files Browse the repository at this point in the history
  • Loading branch information
cuducos committed Oct 17, 2024
1 parent 9b6819b commit d6878f6
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .fly/applications/api/fly.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
app = 'minha-receita-api'
primary_region = 'ams'

[build]
image = 'ghcr.io/cuducos/minha-receita:main'

[env]
PORT = '8888'
NEW_RELIC_LOG = 'stdout'

[http_service]
internal_port = 8888
force_https = true
auto_stop_machines = 'suspend'
auto_start_machines = true
min_machines_running = 1
max_machines_running = 4
processes = ['app']

[[http_service.checks]]
grace_period = "30s"
interval = "1m"
method = "GET"
timeout = "3s"
path = "/healthz"

[[vm]]
size = 'shared-cpu-1x'
34 changes: 34 additions & 0 deletions .fly/applications/mirror/fly.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
app = 'minha-receita-mirror'
primary_region = 'ams'

[build]
image = 'ghcr.io/cuducos/minha-receita:main'

[experimental]
cmd = ["mirror"]

[env]
AWS_DEFAULT_REGION = 'us-east-1'
BUCKET = 'minhareceita'
ENDPOINT_URL = 'https://nyc3.digitaloceanspaces.com'
PORT = '8888'
PUBLIC_DOMAIN = 'https://bucket.minhareceita.org/'

[http_service]
internal_port = 8888
force_https = true
auto_stop_machines = 'suspend'
auto_start_machines = true
min_machines_running = 1
max_machines_running = 1
processes = ['app']

[[http_service.checks]]
grace_period = "30s"
interval = "1m"
method = "GET"
timeout = "3s"
path = "/healthz"

[[vm]]
size = 'shared-cpu-1x'

0 comments on commit d6878f6

Please sign in to comment.