miniflux.yml

 

2023-10-14

Docker Compose 配置文件:

1
version: "3"
2
3
services:
4
miniflux:
5
image: miniflux/miniflux:latest
6
ports:
7
- "127.0.0.1:8080:8080"
8
depends_on:
9
db:
10
condition: service_healthy
11
environment:
12
- DATABASE_URL=postgres://miniflux:secret@db/miniflux?sslmode=disable
13
- RUN_MIGRATIONS=1
14
- CREATE_ADMIN=1
15
- ADMIN_USERNAME=admin
16
- ADMIN_PASSWORD=test123
17
- BASE_URL=通过 Nginx 访问的域名
18
db:
19
image: postgres:latest
20
environment:
21
- POSTGRES_USER=miniflux
22
- POSTGRES_PASSWORD=secret
23
volumes:
24
- /data/postgres:/var/lib/postgresql/data
25
healthcheck:
26
test: ["CMD", "pg_isready", "-U", "miniflux"]
27
interval: 10s
28
start_period: 30s

如果需要通过 Nginx 代理,可以在 Docker Compose 增加 nginx.yml|nginx 配置。

参考