|
| 1 | +[supervisord] |
| 2 | +logfile=%(ENV_WORKDIR)s/data/log/supervisord.log |
| 3 | +logfile_maxbytes=10MB |
| 4 | +logfile_backups=10 |
| 5 | +loglevel=info |
| 6 | +pidfile=/tmp/supervisord.pid |
| 7 | +nodaemon=true |
| 8 | +childlogdir=%(ENV_WORKDIR)s/data/log |
| 9 | + |
| 10 | +[inet_http_server] |
| 11 | +port=0.0.0.0:9001 |
| 12 | +username=onl |
| 13 | +password=onl |
| 14 | + |
| 15 | +[rpcinterface:supervisor] |
| 16 | +supervisor.rpcinterface_factory=supervisor.rpcinterface:make_main_rpcinterface |
| 17 | + |
| 18 | +[unix_http_server] |
| 19 | +file=/tmp/supervisor.sock ; unix socket file |
| 20 | + |
| 21 | +[supervisorctl] |
| 22 | +serverurl=unix:///tmp/supervisor.sock ; connect to supervisord through unix socket |
| 23 | + |
| 24 | +[program:redis] |
| 25 | +command=redis-server --port 7777 |
| 26 | +directory=%(ENV_WORKDIR)s |
| 27 | +stdout_logfile=%(ENV_WORKDIR)s/data/log/redis.log |
| 28 | +stderr_logfile=%(ENV_WORKDIR)s/data/log/redis.log |
| 29 | +stdout_logfile_maxbytes = 10MB |
| 30 | +autostart=true |
| 31 | +autorestart=true |
| 32 | + |
| 33 | +[program:gunicorn] |
| 34 | +command=python3 manage.py runserver 0.0.0.0:7890 |
| 35 | +directory=%(ENV_WORKDIR)s |
| 36 | +stdout_logfile=%(ENV_WORKDIR)s/data/log/onl_backend.log |
| 37 | +stderr_logfile=%(ENV_WORKDIR)s/data/log/onl_backend.log |
| 38 | +stdout_logfile_maxbytes = 10MB |
| 39 | +autostart=true |
| 40 | +autorestart=true |
| 41 | +killasgroup=true |
| 42 | + |
| 43 | +[program:onl_frontend] |
| 44 | +command=node build/dev-server.js |
| 45 | +directory=%(ENV_FRONTEND)s |
| 46 | +stdout_logfile=%(ENV_WORKDIR)s/data/log/onl_fe.log |
| 47 | +stderr_logfile=%(ENV_WORKDIR)s/data/log/onl_fe.log |
| 48 | +stdout_logfile_maxbytes = 10MB |
| 49 | +autostart=true |
| 50 | +autorestart=true |
| 51 | +startsecs=5 |
| 52 | +stopwaitsecs = 5 |
| 53 | + |
| 54 | +[program:dramatiq] |
| 55 | +command=python3 manage.py rundramatiq --processes %(ENV_MAX_WORKER_NUM)s --threads 1 |
| 56 | +directory=%(ENV_WORKDIR)s |
| 57 | +stdout_logfile=%(ENV_WORKDIR)s/data/log/dramatiq.log |
| 58 | +stderr_logfile=%(ENV_WORKDIR)s/data/log/dramatiq.log |
| 59 | +stdout_logfile_maxbytes = 10MB |
| 60 | +autostart=true |
| 61 | +autorestart=true |
| 62 | +killasgroup=true |
0 commit comments