Merge pull request #55 from cgaspard/master

Supervisord to run webui, and cron at the same time.
v0.3.0
Suresh Alse 7 years ago committed by GitHub
commit c5f15736f2

@ -7,7 +7,10 @@ LABEL description "Crontab-UI docker"
RUN apk --no-cache add \ RUN apk --no-cache add \
nodejs \ nodejs \
wget \ wget \
curl curl \
supervisor
COPY supervisord.conf /etc/supervisord.conf
RUN npm install -g crontab-ui RUN npm install -g crontab-ui
@ -17,4 +20,4 @@ ENV PORT 8000
EXPOSE $PORT EXPOSE $PORT
CMD ["crontab-ui"] CMD ["supervisord", "-c", "/etc/supervisord.conf"]

@ -0,0 +1,12 @@
[supervisord]
nodaemon=true
[program:crontab]
command=crond -l 2 -f
stderr_logfile = /var/log/crontab-stderr.log
stdout_logfile = /var/log/crontab-stdout.log
[program:crontabui]
command=crontab-ui
stderr_logfile = /var/log/crontabui-stderr.log
stdout_logfile = /var/log/crontabui-stdout.log
Loading…
Cancel
Save