Giter VIP home page Giter VIP logo

docker-pyone's Introduction

Docker-PyOne

CircleCI Docker Pulls

👋 本项目为 abbeyokgo/PyOne docker镜像版本。受 thanch2n/pyone 启发,借鉴其部分功能,在这里向这两个项目的作者表示感谢。

版本:

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

运行:

  • 使用docker run命令运行:

    docker run -d --name pyone \
        -p 80:80 --restart=always \
        -e REFRESH_CACHE_NEW='*/15 * * * *' \
        -e REFRESH_CACHE_ALL='0 3 */1 * *' \
        -v ~/pyone/data:/data \
        -v ~/pyone/PyOne:/root/PyOne \
        setzero/pyone
    
    • 停止删除容器:
      docker stop pyone
      docker rm -v pyone
      
  • 使用docker-compose运行:

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

变量:

  • TZ:时区,默认Asia/Shanghai
  • PORT:服务监听端口,默认为80
  • DISABLE_REFRESH_CACHE:是否禁用crontab自动刷新缓存,设置任意值则不启用
  • REFRESH_CACHE_NEW:使用crontab进行增量更新,默认*/15 * * * *,即每15分钟更新一次
  • REFRESH_CACHE_ALL:使用crontab进行全量更新,默认0 3 */1 * *,即每天凌晨3点更新一次
  • SSH_PASSWORD:sshd用户密码,用户名为root,若不设置则不启用sshd
  • ARIA2_SECRET:aria2的rpc secret,默认aria2-secret
  • HEALTHCHECK_INTERVAL:健康检查间隔周期,默认3秒。

持久化:

  • /data:mongodb及aria2的配置文件及数据
  • /root/PyOne:PyOne源代码

docker-pyone's People

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.