I am running into the following error while trying to deploy an app:
App
Name = rest-apis
Owner = personal
Version = 3
Status = running
Hostname = rest-apis.fly.dev
Platform = nomad
Deployment Status
ID = 80597ca9-a9f7-37fb-bfd1-278d550caf3a
Version = v3
Status = failed
Description = Failed due to unhealthy allocations - no stable job version to auto revert to
Instances = 1 desired, 1 placed, 0 healthy, 1 unhealthy
Instances
ID PROCESS VERSION REGION DESIRED STATUS HEALTH CHECKS RESTARTS CREATED
b03b4e57 app 1 fra run running 1 total, 1 critical 0 47m44s ago
This is the fly.toml
file:
# fly.toml file generated for rest-apis on 2022-08-09T12:17:34+02:00
app = "rest-apis"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []
[env]
[experimental]
allowed_public_ports = []
auto_rollback = true
[[services]]
http_checks = []
internal_port = 8080
processes = ["app"]
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
[[services.ports]]
force_https = true
handlers = ["http"]
port = 80
[[services.ports]]
handlers = ["tls", "http"]
port = 443
[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
restart_limit = 0
timeout = "2s"
And this is the Dockerfile:
FROM python:3.10
EXPOSE 8080
WORKDIR /app
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
COPY . .
CMD ["flask", "run", "--host", "0.0.0.0"]