[supervisord] 
nodaemon=true 
logfile=/app/logs/supervisord.log 
logfile_maxbytes=50MB 
logfile_backups=10 
pidfile=/app/logs/supervisord.pid

[program:flask] 
command=/app/venv/bin/python /app/app.py 
directory=/app 
environment=FLASK_APP="app.py",FLASK_ENV="development",NODE_PATH="/usr/lib/node_modules" 
autostart=true 
autorestart=true 
startsecs=10 
stopwaitsecs=10 
stdout_logfile=/app/logs/flask.log 
stdout_logfile_maxbytes=10MB 
stdout_logfile_backups=5 
stderr_logfile=/app/logs/flask_err.log 
stderr_logfile_maxbytes=10MB 
stderr_logfile_backups=5

[program:tomcat] 
command=/usr/local/tomcat/bin/catalina.sh run 
directory=/usr/local/tomcat 
environment=SPRING_CONFIG_LOCATION="file:/usr/local/tomcat/conf/application.yaml",NODE_PATH="/usr/lib/node_modules" 
autostart=false 
autorestart=false 
startsecs=30 
stopwaitsecs=30 
stdout_logfile=/app/logs/tomcat.log 
stdout_logfile_maxbytes=10MB 
stdout_logfile_backups=5 
stderr_logfile=/app/logs/tomcat_err.log 
stderr_logfile_maxbytes=10MB 
stderr_logfile_backups=5