mirror of
https://github.com/omg-xtao/ytdlbot.git
synced 2024-11-16 03:45:23 +00:00
use supervisor
This commit is contained in:
parent
f2aabf6a1d
commit
e5ad85e6ff
@ -14,6 +14,5 @@ COPY --from=builder /root/.local /usr/local
|
||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||
COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo
|
||||
COPY . /ytdlbot
|
||||
RUN echo "/usr/sbin/vnstatd -d;/usr/local/bin/python ytdl.py"> /ytdlbot/start.sh
|
||||
|
||||
CMD ["sh", "start.sh"]
|
||||
CMD ["/usr/local/bin/supervisord", "-c" ,"/ytdlbot/supervisor.conf"]
|
@ -7,4 +7,5 @@ filetype
|
||||
redis
|
||||
requests
|
||||
APScheduler==3.7.0
|
||||
beautifultable==1.0.1
|
||||
beautifultable==1.0.1
|
||||
supervisor
|
18
supervisor.conf
Normal file
18
supervisor.conf
Normal file
@ -0,0 +1,18 @@
|
||||
[supervisord]
|
||||
nodaemon=true
|
||||
logfile=/dev/null
|
||||
logfile_maxbytes=0
|
||||
user=root
|
||||
|
||||
[program:vnstat]
|
||||
command=vnstatd -n
|
||||
autorestart=true
|
||||
|
||||
[program:ytdl]
|
||||
directory=/ytdlbot
|
||||
command=python ytdl.py
|
||||
autorestart=true
|
||||
|
||||
stdout_logfile=/dev/fd/1
|
||||
stdout_logfile_maxbytes=0
|
||||
redirect_stderr=true
|
Loading…
Reference in New Issue
Block a user