Leon4gr45 commited on
Commit
aec6915
·
verified ·
1 Parent(s): 9844a5f

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. deploy/supervisord.conf +24 -0
  2. entrypoint.sh +0 -7
deploy/supervisord.conf CHANGED
@@ -11,6 +11,10 @@ user=postgres
11
  autostart=true
12
  autorestart=true
13
  priority=1
 
 
 
 
14
 
15
  [program:redis]
16
  command=/usr/bin/redis-server /etc/redis/redis.conf
@@ -18,6 +22,10 @@ user=root
18
  autostart=true
19
  autorestart=true
20
  priority=2
 
 
 
 
21
 
22
  [program:brainapi-api]
23
  command=/app/.venv/bin/python -m uvicorn src.services.api.app:app --host 127.0.0.1 --port 8000
@@ -25,6 +33,10 @@ directory=/app
25
  autostart=true
26
  autorestart=true
27
  priority=10
 
 
 
 
28
 
29
  [program:brainapi-mcp]
30
  command=/app/.venv/bin/python -m src.services.mcp.main
@@ -32,6 +44,10 @@ directory=/app
32
  autostart=true
33
  autorestart=true
34
  priority=10
 
 
 
 
35
 
36
  [program:brainapi-worker]
37
  command=/app/.venv/bin/python -m celery -A src.services.tasks.main.celery_app worker --loglevel=info
@@ -39,9 +55,17 @@ directory=/app
39
  autostart=true
40
  autorestart=true
41
  priority=10
 
 
 
 
42
 
43
  [program:nginx]
44
  command=/usr/sbin/nginx -g "daemon off;"
45
  autostart=true
46
  autorestart=true
47
  priority=20
 
 
 
 
 
11
  autostart=true
12
  autorestart=true
13
  priority=1
14
+ stdout_logfile=/dev/stdout
15
+ stdout_logfile_maxbytes=0
16
+ stderr_logfile=/dev/stderr
17
+ stderr_logfile_maxbytes=0
18
 
19
  [program:redis]
20
  command=/usr/bin/redis-server /etc/redis/redis.conf
 
22
  autostart=true
23
  autorestart=true
24
  priority=2
25
+ stdout_logfile=/dev/stdout
26
+ stdout_logfile_maxbytes=0
27
+ stderr_logfile=/dev/stderr
28
+ stderr_logfile_maxbytes=0
29
 
30
  [program:brainapi-api]
31
  command=/app/.venv/bin/python -m uvicorn src.services.api.app:app --host 127.0.0.1 --port 8000
 
33
  autostart=true
34
  autorestart=true
35
  priority=10
36
+ stdout_logfile=/dev/stdout
37
+ stdout_logfile_maxbytes=0
38
+ stderr_logfile=/dev/stderr
39
+ stderr_logfile_maxbytes=0
40
 
41
  [program:brainapi-mcp]
42
  command=/app/.venv/bin/python -m src.services.mcp.main
 
44
  autostart=true
45
  autorestart=true
46
  priority=10
47
+ stdout_logfile=/dev/stdout
48
+ stdout_logfile_maxbytes=0
49
+ stderr_logfile=/dev/stderr
50
+ stderr_logfile_maxbytes=0
51
 
52
  [program:brainapi-worker]
53
  command=/app/.venv/bin/python -m celery -A src.services.tasks.main.celery_app worker --loglevel=info
 
55
  autostart=true
56
  autorestart=true
57
  priority=10
58
+ stdout_logfile=/dev/stdout
59
+ stdout_logfile_maxbytes=0
60
+ stderr_logfile=/dev/stderr
61
+ stderr_logfile_maxbytes=0
62
 
63
  [program:nginx]
64
  command=/usr/sbin/nginx -g "daemon off;"
65
  autostart=true
66
  autorestart=true
67
  priority=20
68
+ stdout_logfile=/dev/stdout
69
+ stdout_logfile_maxbytes=0
70
+ stderr_logfile=/dev/stderr
71
+ stderr_logfile_maxbytes=0
entrypoint.sh CHANGED
@@ -114,13 +114,6 @@ protected-mode no
114
  EOF
115
  chmod -R 777 "$PERSISTENT_ROOT/redis"
116
 
117
- # Readiness test using password
118
- until REDISCLI_AUTH="$REDIS_PASSWORD" redis-cli -h 127.0.0.1 -p $REDIS_PORT ping 2>/dev/null | grep -q PONG; do
119
- echo "[entrypoint] Starting temporary Redis for readiness check..."
120
- /usr/bin/redis-server /etc/redis/redis.conf --daemonize yes
121
- sleep 1
122
- done
123
-
124
  # 4. Nginx Setup
125
  if [ -f /app/deploy/nginx.conf ]; then
126
  cp /app/deploy/nginx.conf /etc/nginx/conf.d/default.conf
 
114
  EOF
115
  chmod -R 777 "$PERSISTENT_ROOT/redis"
116
 
 
 
 
 
 
 
 
117
  # 4. Nginx Setup
118
  if [ -f /app/deploy/nginx.conf ]; then
119
  cp /app/deploy/nginx.conf /etc/nginx/conf.d/default.conf