deployed project to fly.io with docker

This commit is contained in:
iritmaximus
2023-01-20 15:34:45 +02:00
parent a0adbe975f
commit 1ace80ca7e
4 changed files with 48 additions and 10 deletions
+9 -2
View File
@@ -1,5 +1,12 @@
.git
.gitignore
docs docs
.venv
scripts scripts
README.md
__pycache__ __pycache__
.venv
README.md
Dockerfile
+1 -1
View File
@@ -7,4 +7,4 @@ RUN pip3 install -r requirements.txt
COPY . . COPY . .
CMD [ "python3", "-m" , "flask", "--app", "flaskr/app", "run", "--host=0.0.0.0"] CMD [ "gunicorn", "-w", "4", "flaskr.app:app", "-b", "0.0.0.0:5000"]
+37
View File
@@ -0,0 +1,37 @@
# fly.toml file generated for tsoha-flask on 2023-01-20T15:04:43+02:00
app = "tsoha-flask"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []
[env]
[experimental]
auto_rollback = true
[[services]]
http_checks = []
internal_port = 5000
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"
+1 -7
View File
@@ -1,13 +1,7 @@
certifi==2022.12.7
charset-normalizer==3.0.1
click==8.1.3 click==8.1.3
docopt==0.6.2
Flask==2.2.2 Flask==2.2.2
idna==3.4 gunicorn==20.1.0
itsdangerous==2.1.2 itsdangerous==2.1.2
Jinja2==3.1.2 Jinja2==3.1.2
MarkupSafe==2.1.2 MarkupSafe==2.1.2
requests==2.28.2
urllib3==1.26.14
Werkzeug==2.2.2 Werkzeug==2.2.2
yarg==0.1.9