Skip to content

Commit

Permalink
chore: fly.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
mxkaske committed Nov 9, 2024
1 parent ab86614 commit 820acc0
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 21 deletions.
42 changes: 21 additions & 21 deletions apps/workflows/dofigen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,6 @@ effective: |
- /packages/tracker
- /packages/upstash
builders:
build:
fromImage:
path: oven/bun
digest: sha256:e2c0b11e277f0285e089ffb77ad831faeec2833b9c4b04d6d317f054e587ef4e
workdir: /app/apps/workflows
env:
NODE_ENV: production
copy:
- paths:
- .
target: /app/
- fromBuilder: install
paths:
- /app/node_modules
target: /app/node_modules
run:
- bun build --compile --sourcemap src/index.ts --outfile=app
install:
fromImage:
path: oven/bun
Expand All @@ -53,6 +36,23 @@ effective: |
source: packages/utils/package.json
- target: packages/tsconfig/package.json
source: packages/tsconfig/package.json
build:
fromImage:
path: oven/bun
digest: sha256:e2c0b11e277f0285e089ffb77ad831faeec2833b9c4b04d6d317f054e587ef4e
workdir: /app/apps/workflows
env:
NODE_ENV: production
copy:
- paths:
- .
target: /app/
- fromBuilder: install
paths:
- /app/node_modules
target: /app/node_modules
run:
- bun build --compile --sourcemap src/index.ts --outfile=app
fromImage:
path: debian
digest: sha256:610b4c7ad241e66f6e2f9791e3abdf0cc107a69238ab21bf9b4695d51fd6366a
Expand All @@ -68,14 +68,14 @@ effective: |
- port: 3000
images:
registry.hub.docker.com:443:
oven:
bun:
latest:
digest: sha256:e2c0b11e277f0285e089ffb77ad831faeec2833b9c4b04d6d317f054e587ef4e
library:
debian:
bullseye-slim:
digest: sha256:610b4c7ad241e66f6e2f9791e3abdf0cc107a69238ab21bf9b4695d51fd6366a
oven:
bun:
latest:
digest: sha256:e2c0b11e277f0285e089ffb77ad831faeec2833b9c4b04d6d317f054e587ef4e
resources:
dofigen.yml:
hash: 822431b25b0cf3d5a1b3c1140e6337ce6fc768715b64e889d436178f8277b280
Expand Down
42 changes: 42 additions & 0 deletions apps/workflows/fly.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# fly.toml app configuration file generated for openstatus-workflows on 2024-11-09T11:20:33+01:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = 'openstatus-workflows'
primary_region = 'ams'

[build]
dockerfile = "./Dockerfile"

[[vm]]
cpu_kind = "shared"
cpus = 1
memory_mb = 256

[http_service]
internal_port = 3000
force_https = true
auto_stop_machines = "suspend"
auto_start_machines = true
min_machines_running = 1
processes = ["app"]

[http_service.concurrency]
type = "requests"
hard_limit = 1000
soft_limit = 500

[deploy]
strategy = "bluegreen"

[[http_service.checks]]
grace_period = "10s"
interval = "15s"
method = "GET"
timeout = "5s"
path = "/ping"

[env]
NODE_ENV = "production"
PORT = "3000"

0 comments on commit 820acc0

Please sign in to comment.