Skip to content

Commit

Permalink
Expose all the service ports in fly.io
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaranvpl committed Nov 22, 2024
1 parent b64ade1 commit 717b319
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions {{cookiecutter.project_slug}}/fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,45 @@ primary_region = 'ams'
memory = '1gb'
cpu_kind = 'shared'
cpus = 1
{% if "nats" in cookiecutter.app_type %}
[[services]]
http_checks = []
internal_port = 8000
processes = ["app"]
protocol = "tcp"
script_checks = []

[services.concurrency]
type = "connections"

[[services.ports]]
handlers = ["tls", "http"]
port = 8000{%- endif %}
{% if "fastapi" in cookiecutter.app_type %}
[[services]]
http_checks = []
internal_port = 8008
processes = ["app"]
protocol = "tcp"
script_checks = []

[services.concurrency]
type = "connections"

[[services.ports]]
handlers = ["tls", "http"]
port = 8008{%- endif %}
{% if "mesop" in cookiecutter.app_type %}
[[services]]
http_checks = []
internal_port = 8888
processes = ["app"]
protocol = "tcp"
script_checks = []

[services.concurrency]
type = "connections"

[[services.ports]]
handlers = ["tls", "http"]
port = 8888{%- endif %}

0 comments on commit 717b319

Please sign in to comment.