Supervisord to run webui, and cron both

pull/55/head
Corey Gaspard 7 years ago
parent edd837e2a1
commit 00103f46c6

@ -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