forked from vitalik/django-ninja-benchmarks
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
50 lines (39 loc) · 1.34 KB
/
docker-compose.yml
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
version: '3.7'
x-common: &common
build: .
ports:
- "8000:8000"
# Services not meant to be started all at once
# see the run_test.py for details
services:
flask_marshmallow_uwsgi:
<<: *common
working_dir: /app_flask_marshmallow
command: uwsgi --http 0.0.0.0:8000 --module main:app --workers ${WORKERS}
drf_uwsgi:
<<: *common
working_dir: /app_drf
command: uwsgi --http 0.0.0.0:8000 --module drf.wsgi:application --workers ${WORKERS}
ninja_uwsgi:
<<: *common
working_dir: /app_ninja
command: uwsgi --http 0.0.0.0:8000 --module djninja.wsgi:application --workers ${WORKERS}
ninja_uvicorn:
<<: *common
working_dir: /app_ninja
command: uvicorn djninja.asgi:application --host 0.0.0.0 --workers ${WORKERS}
ninja_gunicorn:
<<: *common
working_dir: /app_ninja
command: gunicorn djninja.asgi:application --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:8000 --workers ${WORKERS}
fastapi_gunicorn:
<<: *common
working_dir: /app_fastapi
command: gunicorn main:app --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:8000 --workers ${WORKERS}
fastapi_uvicorn:
<<: *common
working_dir: /app_fastapi
command: uvicorn main:app --host 0.0.0.0 --workers ${WORKERS}
network_service:
build: .
command: python network_service.py > /dev/null