Giter VIP home page Giter VIP logo

oneindex's Introduction

Docker-oneindex

CircleCI Docker Pulls

👋 本项目为 donwa/oneindex docker 镜像。

版本:

  • latest:以alpine为基础系统,跟踪 donwa/oneindex 的最新提交。
  • alpine-commit_sha:以alpine为基础系统,donwa/oneindex Commit sha对应的提交。

运行:

  • 使用docker run命令运行:

    docker run -d --name oneindex \
        -p 80:80 --restart=always \
        -v ~/oneindex/config:/var/www/html/config \
        -v ~/oneindex/cache:/var/www/html/cache \
        -e REFRESH_TOKEN='0 * * * *' \
        -e REFRESH_CACHE='*/10 * * * *' \
        setzero/oneindex
    
    • 停止删除容器:
      docker stop oneindex
      docker rm -v oneindex
      
  • 使用docker-compose运行:

    docker-compose up -d
    
    • 停止删除容器:
      docker-compose down
      

变量:

  • TZ:时区,默认Asia/Shanghai
  • PORT:服务监听端口,默认为80
  • DISABLE_CRON:是否禁用crontab自动刷新缓存,设置任意值则不启用
  • REFRESH_TOKEN:使用crontab进行token更新,默认0 * * * *,即每小时更新一次
  • REFRESH_CACHE:使用crontab进行缓存更新,默认*/10 * * * *,即每10分钟更新一次
  • SSH_PASSWORD:sshd用户密码,用户名为root,若不设置则不启用sshd

持久化:

  • /var/www/html/cache:缓存存储目录
  • /var/www/html/config:配置文件存储目录

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.