[新服务] rsshub docker-compose

date
Nov 30, 2022
slug
newservice-rsshub-docker-compose
status
Published
summary
新服务-
tags
service
type
Post
notion image

Summary

  • https://github.com/DIYgod/RSSHub-Radar

    步骤

    #1 带key https://rsshub.xx.xx/path?key=YOUR-KEY

    export DOCKER_PROJ=rsshub
    #export DOCKER_PORT=18870
    mkdir /data/$DOCKER_PROJ; cd /data/$DOCKER_PROJ
    
    wget https://raw.githubusercontent.com/DIYgod/RSSHub/master/docker-compose.yml
    
    # vi docker-compose.yml
    # or
    
    cat > docker-compose.yml <<EOF
    
    version: '3'
    
    services:
        rsshub:
            # two ways to enable puppeteer:
            # * comment out marked lines, then use this image instead: diygod/rsshub:chromium-bundled
            # * (consumes more disk space and memory) leave everything unchanged
            image: diygod/rsshub
            restart: always
            #ports:
            #    - '1200:1200'
            environment:
                NODE_ENV: production
                CACHE_TYPE: redis
                REDIS_URL: 'redis://rsshub_redis:6379/'
                PUPPETEER_WS_ENDPOINT: 'ws://rsshub_browserless:3000'  # marked
                CACHE_EXPIRE: 3600
                ACCESS_KEY: 'Rsshubxxxxxxx-change'
            depends_on:
                - rsshub_redis
                - rsshub_browserless  # marked
    
        rsshub_browserless:  # marked
            image: browserless/chrome  # marked
            restart: always  # marked
            ulimits:  # marked
              core:  # marked
                hard: 0  # marked
                soft: 0  # marked
    
        rsshub_redis:
            image: redis:alpine
            restart: always
            volumes:
                - ./redis-data:/data
    networks:
      default:
        name: npm_nginx_proxy_manager-network
        external: true
    
    EOF

    cloudflare + npm

    notion image

    rssradar

    notion image

    © Ying Bun 2021 - 2024