generated from Alschn/django-react-docker-heroku-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfly.toml
52 lines (42 loc) · 1.04 KB
/
fly.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# fly.toml file generated for beerdegu on 2023-07-04T14:30:39+02:00
# https://fly.io/docs/reference/configuration/
app = "beerdegu"
kill_signal = "SIGINT"
kill_timeout = 5
[processes]
app = "daphne -b 0.0.0.0 -p 8000 core.asgi:application -v2"
worker = "python manage.py qcluster"
[build]
dockerfile = "deployment/fly/Dockerfile"
build-target = "runtime"
[deploy]
release_command = "python manage.py migrate"
[env]
DJANGO_SETTINGS_MODULE = "core.settings.prod"
[experimental]
auto_rollback = true
[[services]]
http_checks = []
processes = ["app"]
internal_port = 8000
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"
[[statics]]
guest_path = "/app/staticfiles"
url_prefix = "/static"