gmao/docker/supervisord.conf

77 lines
2.3 KiB
Text

[supervisord]
nodaemon=true
logfile=/var/log/supervisor/supervisord.log
pidfile=/run/supervisor/supervisord.pid
childlogdir=/var/log/supervisor
[program:flask]
command=/bin/sh -c "exec /home/gmao/.local/bin/gunicorn --workers 2 --timeout 120 --graceful-timeout 30 --bind 0.0.0.0:5080 --access-logfile - --error-logfile - %(ENV_GMAO_GUNICORN_FLAGS)s wsgi:app"
environment=PYTHONPATH="/app",HOME="/home/gmao"
directory=/app
user=gmao
autostart=true
autorestart=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
stderr_logfile=/dev/fd/2
stderr_logfile_maxbytes=0
[program:gmao_watchdog]
command=python3 /app/watchdog_gate.py outlook /app/gmao_watchdog.py
environment=DOCKER_GMAO_WORKDIR="/app",DOCKER_GMAO_ENVFILE="/app/.env.docker",PYTHONPATH="/app",HOME="/home/gmao"
directory=/app
user=gmao
autostart=true
autorestart=false
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
stderr_logfile=/dev/fd/2
stderr_logfile_maxbytes=0
[program:ent_watchdog]
command=python3 /app/watchdog_gate.py ent /app/ent_watchdog.py
environment=DOCKER_GMAO_WORKDIR="/app",DOCKER_GMAO_ENVFILE="/app/.env.docker",PYTHONPATH="/app",HOME="/home/gmao"
directory=/app
user=gmao
autostart=true
autorestart=false
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
stderr_logfile=/dev/fd/2
stderr_logfile_maxbytes=0
[program:pronote_watchdog]
command=python3 /app/watchdog_gate.py pronote /app/pronote_watchdog.py
environment=DOCKER_GMAO_WORKDIR="/app",DOCKER_GMAO_ENVFILE="/app/.env.docker",PYTHONPATH="/app",HOME="/home/gmao"
directory=/app
user=gmao
autostart=true
autorestart=false
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
stderr_logfile=/dev/fd/2
stderr_logfile_maxbytes=0
[program:db_backup]
command=python3 /app/backup_loop.py
environment=PYTHONPATH="/app",HOME="/home/gmao",DB_HOST="mariadb",DB_PORT="3306",MARIADB_ROOT_PASSWORD="%(ENV_MARIADB_ROOT_PASSWORD)s",MARIADB_DATABASE="%(ENV_MARIADB_DATABASE)s"
directory=/app
user=gmao
autostart=true
autorestart=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
stderr_logfile=/dev/fd/2
stderr_logfile_maxbytes=0
[program:watchdog_dnd]
command=python3 /app/watchdog_gate.py yeastar /app/watchdog_dnd.py
environment=PYTHONPATH="/app",HOME="/home/gmao"
directory=/app
user=gmao
autostart=true
autorestart=false
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
stderr_logfile=/dev/fd/2
stderr_logfile_maxbytes=0