Sign inSign up

jearton1024/crontab-ui

By jearton1024

•Updated over 4 years ago

crontab-ui for root.

Image
1

894

jearton1024/crontab-ui repository overview

⁠Adjusted Features

  1. Just adjust for root user.
  2. Only execute command on host.
  3. Automatically create logs directory under the CRON_DB_PATH.
  4. Change the default value of CRON_PATH to /data/crontabs.
  5. Change the default value of CRON_DB_PATH to /data/crontabs/db.

⁠Run container

Notice: The value of CRON_DB_PATH must be the same with the mounted directory on host.

⁠By docker run
docker run --name crontabui \
    -v /var/spool/cron/crontabs:/var/spool/cron/crontabs \
    -v /root/docker/crontabui:/root/docker/crontabui \
    -e CRON_DB_PATH=/root/docker/crontabui \
    -e TZ=Asia/Shanghai \
    -e BASIC_AUTH_USER=admin \
    -e BASIC_AUTH_PWD=123456 \
    -p 80:8000 \
    -d jearton1024/crontab-ui
⁠By docker compose
version: '3.9'
services:
  crontabui:
    image: jearton1024/crontab-ui:latest
    container_name: crontabui
    restart: unless-stopped
    volumes:
      - /var/spool/cron/crontabs:/var/spool/cron/crontabs
      - /root/docker/crontabui:/root/docker/crontabui
    environment:
      - CRON_DB_PATH=/root/docker/crontabui
      - TZ=Asia/Shanghai
      - BASIC_AUTH_USER=admin
      - BASIC_AUTH_PWD=123456
    ports:
      - 80:8000

⁠Contact me if any feedback

[email protected]⁠

Tag summary

Content type

Image

Digest

Size

50.1 MB

Last updated

over 4 years ago

docker pull jearton1024/crontab-ui