Artrajz commited on
Commit
2919150
·
1 Parent(s): faff685

Update: gunicorn bind, logs

Browse files
Files changed (2) hide show
  1. docker-compose.yaml +1 -0
  2. 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 = f"0.0.0.0:{getattr(config, 'PORT', 23456)}"
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