forked from the-benchmarker/web-frameworks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yaml
More file actions
104 lines (102 loc) · 2.3 KB
/
Copy pathconfig.yaml
File metadata and controls
104 lines (102 loc) · 2.3 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
language:
version: 3.14
engines:
cheroot:
command: ""
tornado:
command: ""
twisted:
build_deps:
- gcc
command: twistd --python=server.py --nodaemon
greenlet:
build_deps:
- gcc
- libev-dev
gunicorn:
build_deps:
- gcc
bootstrap:
- pip install gunicorn
environment:
WORKER_CLASS: sync
PYTHON_APP: server:app
command: >
gunicorn \
--log-level critical \
--bind 0.0.0.0:3000 \
--reuse-port \
--workers $(nproc) \
--worker-class ${WORKER_CLASS} \
${PYTHON_APP}
bjoern:
build_deps:
- gcc
- libev-dev
uwsgi:
environment:
PYTHON_APP: server:app
build_deps:
- gcc
- libpcre3-dev
bootstrap:
- pip install uwsgi
command: uwsgi --http 0.0.0.0:3000 --module ${PYTHON_APP}
waitress:
environment:
PYTHON_APP: server:app
bootstrap:
- pip install waitress
command: waitress-serve --host=0.0.0.0 --port=3000 ${PYTHON_APP}
uvicorn:
build_deps:
- gcc g++
environment:
PYTHON_APP: server:app
bootstrap:
- pip install uvicorn[standard]
command: >
uvicorn \
--log-level critical \
--host 0.0.0.0 \
--port 3000 \
--workers $(nproc) \
${PYTHON_APP}
hypercorn:
build_deps:
- gcc g++
environment:
PYTHON_APP: server:app
bootstrap:
- pip install hypercorn
command: hypercorn --bind 0.0.0.0:3000 --workers $(nproc) ${PYTHON_APP}
daphne:
build_deps:
- gcc g++
bootstrap:
- pip install daphne
environment:
PYTHON_APP: server:app
command: daphne -b 0.0.0.0 -p 3000 ${PYTHON_APP}
granian:
bootstrap:
- pip install granian
environment:
INTERFACE: asgi
PYTHON_APP: server:app
command: >
granian \
--log-level critical \
--interface ${INTERFACE} \
--host 0.0.0.0 \
--port 3000 \
--workers $(nproc) \
${PYTHON_APP}
framework:
engines:
- gunicorn
build_deps:
- build-essential
files:
- "**/*.py"
- pyproject.toml