59 lines
1.7 KiB
Plaintext
59 lines
1.7 KiB
Plaintext
[supervisord]
|
|
nodaemon=true
|
|
logfile=/dev/stdout
|
|
logfile_maxbytes=0
|
|
|
|
# ------------------------------------------------------------------
|
|
# 1. Apache (from the base image)
|
|
# ------------------------------------------------------------------
|
|
[program:apache2]
|
|
command=/usr/sbin/apache2ctl -D FOREGROUND
|
|
stdout_logfile=/dev/stdout
|
|
stderr_logfile=/dev/stderr
|
|
autorestart=true
|
|
priority=1
|
|
|
|
# ------------------------------------------------------------------
|
|
# 2. Redis
|
|
# ------------------------------------------------------------------
|
|
[program:redis]
|
|
command=/usr/bin/redis-server --daemonize no --protected-mode no
|
|
stdout_logfile=/dev/stdout
|
|
stderr_logfile=/dev/stderr
|
|
autorestart=true
|
|
priority=2
|
|
|
|
# ------------------------------------------------------------------
|
|
# 3. Nginx (will listen on 8080 by default)
|
|
# ------------------------------------------------------------------
|
|
[program:nginx]
|
|
command=/usr/sbin/nginx -g 'daemon off;'
|
|
stdout_logfile=/dev/stdout
|
|
stderr_logfile=/dev/stderr
|
|
autorestart=true
|
|
priority=3
|
|
|
|
# ------------------------------------------------------------------
|
|
# 4. Node.js
|
|
# ------------------------------------------------------------------
|
|
# NOTE: Adjust the command/path to match your app
|
|
[program:node]
|
|
command=sh -c "npm install && node server.js"
|
|
#command=npm start
|
|
directory=/usr/src/app
|
|
stdout_logfile=/dev/stdout
|
|
stderr_logfile=/dev/stderr
|
|
autorestart=true
|
|
priority=4
|
|
|
|
|
|
# ----------------------------------------------------------
|
|
# 5. DriveHealth app
|
|
# ----------------------------------------------------------
|
|
[program:DriveHealth]
|
|
command=/opt/DriveHealth/venv/bin/python3 /opt/DriveHealth/app.py
|
|
directory=/opt/DriveHealth
|
|
stdout_logfile=/dev/stdout
|
|
stderr_logfile=/dev/stderr
|
|
autorestart=true
|
|
priority=5 |