60 lines
1.4 KiB
Plaintext
60 lines
1.4 KiB
Plaintext
[supervisord]
|
|
nodaemon=true
|
|
user=root
|
|
logfile=/var/log/supervisor/supervisord.log
|
|
pidfile=/var/run/supervisord.pid
|
|
loglevel=info
|
|
|
|
[program:meta-core]
|
|
command=/usr/local/bin/meta-core
|
|
priority=5
|
|
autostart=true
|
|
autorestart=true
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
startsecs=3
|
|
environment=
|
|
META_CORE_PATH="/meta-core",
|
|
FILES_PATH="/files",
|
|
SERVICE_NAME="meta-sort",
|
|
SERVICE_VERSION="1.0.0",
|
|
META_CORE_HTTP_PORT="9000",
|
|
REDIS_PORT="6379"
|
|
|
|
[program:nginx]
|
|
command=/usr/sbin/nginx -g "daemon off;"
|
|
priority=20
|
|
autostart=true
|
|
autorestart=true
|
|
stdout_logfile=/var/log/supervisor/nginx.log
|
|
stderr_logfile=/var/log/supervisor/nginx_error.log
|
|
startsecs=2
|
|
|
|
[program:rclone]
|
|
command=/usr/bin/rclone rcd --rc-web-gui --rc-web-gui-no-open-browser --rc-addr=:5572 --rc-user=admin --rc-pass=admin
|
|
priority=30
|
|
autostart=true
|
|
autorestart=true
|
|
stdout_logfile=/var/log/supervisor/rclone.log
|
|
stderr_logfile=/var/log/supervisor/rclone_error.log
|
|
startsecs=3
|
|
|
|
[program:meta-sort]
|
|
command=/usr/bin/node /app/backend/dist/index.js
|
|
directory=/app/backend
|
|
priority=40
|
|
autostart=true
|
|
autorestart=true
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
startsecs=5
|
|
environment=
|
|
REDIS_URL="redis://127.0.0.1:6379",
|
|
REDIS_PREFIX="",
|
|
API_HOST="0.0.0.0",
|
|
API_PORT="3000"
|