Miniflux是一个开源的RSS阅读器,可以使用Miniflux部署我们自己的RSS服务。 作为曾经的Google Reader重度用户,在Google Reader之后使用过Feedly、Inoreader,通过自建Miniflux可替代Feedly和Inoreader。

部署

安装docker和docker compose, 可参考Get Docker CE for CentOScompose install

1
2
3
cd /home
mkdir miniflux
cd miniflux

在miniflux下创建docker-compose.yml:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
version: '3'
services:
  miniflux:
    image: miniflux/miniflux:latest
    ports:
      - "127.0.0.1:8080:8080"
    depends_on:
      - db
    environment:
      - DATABASE_URL=postgres://miniflux:secret@db/miniflux?sslmode=disable
  db:
    image: postgres:10.1
    environment:
      - POSTGRES_USER=miniflux
      - POSTGRES_PASSWORD=secret
    volumes:
      - /home/miniflux/miniflux-db:/var/lib/postgresql/data
1
2
3
docker-compose up -d
Creating miniflux_db_1 ... done
Creating miniflux_miniflux_1 ... done

执行数据库迁移:

 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
docker exec -ti <container-name> /usr/bin/miniflux -migrate

docker exec -it e7f4ecead235 /usr/bin/miniflux -migrate
Current schema version: 0
Latest schema version: 22
Migrating to version: 1
Migrating to version: 2
Migrating to version: 3
Migrating to version: 4
Migrating to version: 5
Migrating to version: 6
Migrating to version: 7
Migrating to version: 8
Migrating to version: 9
Migrating to version: 10
Migrating to version: 11
Migrating to version: 12
Migrating to version: 13
Migrating to version: 14
Migrating to version: 15
Migrating to version: 16
Migrating to version: 17
Migrating to version: 18
Migrating to version: 19
Migrating to version: 20
Migrating to version: 21
Migrating to version: 22

创建第一个用户:

1
2
3
docker exec -ti <container-name> /usr/bin/miniflux -create-admin

docker exec -it e7f4ecead235 /usr/bin/miniflux -create-admin

最后以 http://127.0.0.1:8080访问。

参考