-
Notifications
You must be signed in to change notification settings - Fork 3
/
supervisord.conf
32 lines (29 loc) · 983 Bytes
/
supervisord.conf
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
[supervisord]
nodaemon=true
user=root
[program:controller]
command=bash -c 'python3 /app/controller.py --host 0.0.0.0 --port 21001'
autostart=true
autorestart=true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:model_worker]
command=bash -c 'python3 /app/model_worker.py --host 0.0.0.0 --port 21002 --controller-url http://0.0.0.0:21001 --model-name "%(ENV_MODEL_NAME)s" --model-path "%(ENV_MODEL_NAME)s"'
autostart=true
autorestart=true
startretries=5
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:gradio_web_server]
command=bash -c '/app/wait_for_model_worker.sh python3 /app/gradio_web_server.py --host 0.0.0.0 --port 7860 --controller-url http://0.0.0.0:21001 --model-list-mode reload'
autostart=true
autorestart=true
startretries=5
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0