使用docker compose部署miniflux
📅 2019-04-10 | 🖱️
Miniflux是一个开源的RSS阅读器,可以使用Miniflux部署我们自己的RSS服务。 作为曾经的Google Reader重度用户,在Google Reader之后使用过Feedly、Inoreader,通过自建Miniflux可替代Feedly和Inoreader。
部署 #
安装docker和docker compose, 可参考Get Docker CE for CentOS和compose install。
1cd /home
2mkdir miniflux
3cd miniflux
在miniflux下创建docker-compose.yml:
1version: '3'
2services:
3 miniflux:
4 image: miniflux/miniflux:latest
5 ports:
6 - "127.0.0.1:8080:8080"
7 depends_on:
8 - db
9 environment:
10 - DATABASE_URL=postgres://miniflux:secret@db/miniflux?sslmode=disable
11 db:
12 image: postgres:10.1
13 environment:
14 - POSTGRES_USER=miniflux
15 - POSTGRES_PASSWORD=secret
16 volumes:
17 - /home/miniflux/miniflux-db:/var/lib/postgresql/data
1docker-compose up -d
2Creating miniflux_db_1 ... done
3Creating miniflux_miniflux_1 ... done
执行数据库迁移:
1docker exec -ti <container-name> /usr/bin/miniflux -migrate
2
3docker exec -it e7f4ecead235 /usr/bin/miniflux -migrate
4Current schema version: 0
5Latest schema version: 22
6Migrating to version: 1
7Migrating to version: 2
8Migrating to version: 3
9Migrating to version: 4
10Migrating to version: 5
11Migrating to version: 6
12Migrating to version: 7
13Migrating to version: 8
14Migrating to version: 9
15Migrating to version: 10
16Migrating to version: 11
17Migrating to version: 12
18Migrating to version: 13
19Migrating to version: 14
20Migrating to version: 15
21Migrating to version: 16
22Migrating to version: 17
23Migrating to version: 18
24Migrating to version: 19
25Migrating to version: 20
26Migrating to version: 21
27Migrating to version: 22
创建第一个用户:
1docker exec -ti <container-name> /usr/bin/miniflux -create-admin
2
3docker exec -it e7f4ecead235 /usr/bin/miniflux -create-admin
最后以 http://127.0.0.1:8080访问。