Spaces:
Sleeping
Sleeping
Update: gunicorn bind, logs
Browse files- docker-compose.yaml +1 -0
- gunicorn_config.py +1 -2
docker-compose.yaml
CHANGED
|
@@ -11,4 +11,5 @@ services:
|
|
| 11 |
volumes:
|
| 12 |
- ./Model:/app/Model # 挂载模型文件夹
|
| 13 |
- ./config.py:/app/config.py # 挂载配置文件
|
|
|
|
| 14 |
- ./gunicorn_config.py:/app/gunicorn_config.py # gunicorn configuration
|
|
|
|
| 11 |
volumes:
|
| 12 |
- ./Model:/app/Model # 挂载模型文件夹
|
| 13 |
- ./config.py:/app/config.py # 挂载配置文件
|
| 14 |
+
- ./logs:/app/logs # logging logs
|
| 15 |
- ./gunicorn_config.py:/app/gunicorn_config.py # gunicorn configuration
|
gunicorn_config.py
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
import multiprocessing
|
| 2 |
-
import config
|
| 3 |
|
| 4 |
-
bind =
|
| 5 |
workers = multiprocessing.cpu_count() * 2 + 1
|
|
|
|
| 1 |
import multiprocessing
|
|
|
|
| 2 |
|
| 3 |
+
bind = "0.0.0.0:23456"
|
| 4 |
workers = multiprocessing.cpu_count() * 2 + 1
|