FreshRSS的Docker仓库地址为:https://hub.docker.com/r/freshrss/freshrss/
里面有详尽的部署说明,下面的配置也是从其中摘取了核心的部分。
这里直接用轻量的SQLite做数据库就足够了。
- 创建两个目录挂载FreshRSS的数据
1
| mkdir -p /opt/freshrss/{data,extensions} && cd /opt/freshrss
|
- 创建docker-compose文件
- 编写配置内容
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| services: freshrss: image: freshrss/freshrss:edge container_name: freshrss restart: unless-stopped logging: options: max-size: 10m environment: - CRON_MIN=360 volumes: - /opt/freshrss/data:/var/www/FreshRSS/data - /opt/freshrss/extensions:/var/www/FreshRSS/extensions ports: - "8081:80"
|
- 启动配置
1.2 Nginx配置反向代理
1 2 3 4 5 6 7 8 9 10 11 12
| #FreshRSS server { listen 443 ssl; server_name freshrss.guolog.ink;
ssl_certificate /etc/nginx/ssl/cert.pem; ssl_certificate_key /etc/nginx/ssl/key.pem;
location / { proxy_pass http://localhost:8081; } }
|
- 首次进入即安装页面

- 设置配置数据库

- 设置用户名和密码完成安装并登录
成功后默认订阅了FreshRSS的Github发布源,会看到历史的发布信息。
RSSHub的Docker仓库地址为:https://hub.docker.com/r/diygod/rsshub
官网地址为:https://docs.rsshub.app/
可以在https://docs.rsshub.app/zh/deploy/页面找到详尽的部署说明。下面也是摘取了官方文档的核心部分。
- 创建一个用于挂载数据的目录
1
| mkdir -p /opt/rsshub/redis-data && cd /opt/rsshub
|
- 编写 docker-compose 配置文件并启动
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| services: rsshub: image: diygod/rsshub restart: always container_name: rsshub ports: - '1200:1200' environment: NODE_ENV: production CACHE_TYPE: redis REDIS_URL: 'redis://redis:6379/' PUPPETEER_WS_ENDPOINT: 'ws://browserless:3000' healthcheck: test: ['CMD', 'curl', '-f', 'http://localhost:1200/healthz'] interval: 30s timeout: 10s retries: 3 depends_on: - redis
redis: image: redis:alpine restart: always container_name: rsshub-redis volumes: - /opt/rsshub/redis-data:/data healthcheck: test: ['CMD', 'redis-cli', 'ping'] interval: 30s timeout: 10s retries: 5 start_period: 5s
|
1.2 Nginx配置反向代理
1 2 3 4 5 6 7 8 9 10 11 12
| #RSSHub server { listen 443 ssl; server_name rsshub.guolog.ink;
ssl_certificate /etc/nginx/ssl/cert.pem; ssl_certificate_key /etc/nginx/ssl/key.pem;
location / { proxy_pass http://localhost:1200; } }
|
1.3 完成部署

3.1.1 打开API访问
在【设置 -> 管理 -> 认证】页面中勾选打开。

3.1.2 设置API访问密钥
在【设置 -> 账户 -> API管理】中输入API密码并提交。

3.2 安装ReadYou并添加账户
Read You 的Github仓库地址:https://github.com/ReadYouApp/ReadYou
安装完成后在【设置 -> 账户 -> 添加账户 -> FreshRSS】输入服务器和刚才设置的账户信息。

成功后即可查看订阅和阅读文章了。