microservices/user-db-service/fly.toml

43 lines
991 B
TOML
Raw Normal View History

# fly.toml file for a Node.js service that connects to an external Postgres DB
2025-04-16 13:33:12 -07:00
app = "db-user-service"
primary_region = "sea"
2025-04-16 13:33:12 -07:00
[build]
# Only needed if you're using a Dockerfile — can be empty if using buildpacks or Node preset
2025-04-16 13:33:12 -07:00
# Removed the [http_service] section to disable public HTTP/HTTPS access
# [http_service]
# internal_port = 3000
# force_https = true
# auto_stop_machines = true
# auto_start_machines = true
# min_machines_running = 0
# processes = ["app"]
2025-04-16 13:33:12 -07:00
[[services]]
protocol = "tcp"
internal_port = 3000
internal_only = true # Makes this service only accessible internally
2025-05-02 18:33:50 -07:00
auto_start_machines = true
auto_stop_machines = true
2025-04-16 13:33:12 -07:00
# Removed public port exposure
# [[services.ports]]
# port = 80
# handlers = ["http"]
# [[services.ports]]
# port = 443
# handlers = ["tls", "http"]
2025-04-16 13:33:12 -07:00
[services.concurrency]
type = "requests"
2025-04-16 13:33:12 -07:00
hard_limit = 1000
soft_limit = 500
2025-04-16 13:33:12 -07:00
[[vm]]
2025-04-21 17:45:25 -07:00
memory = '1gb'
cpu_kind = "shared"
cpus = 1