-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
83 lines (77 loc) · 2.15 KB
/
Copy pathdocker-compose.yml
File metadata and controls
83 lines (77 loc) · 2.15 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: rss-feed-hub
services:
rsshub:
image: diygod/rsshub:chromium-bundled
ports:
- "1200:1200"
environment:
- NODE_ENV=production
- CACHE_TYPE=memory
- BILIBILI_COOKIE=${BILIBILI_COOKIE:-}
- BILIBILI_COOKIE_3690992282634800=${BILIBILI_COOKIE_3690992282634800:-}
- XIAOHONGSHU_COOKIE=${XIAOHONGSHU_COOKIE:-}
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "node -e \"require('http').get('http://localhost:1200/', r => process.exit(r.statusCode === 200 ? 0 : 1)).on('error', () => process.exit(1))\""]
interval: 30s
start_period: 60s
timeout: 10s
retries: 3
miniflux:
image: miniflux/miniflux:latest
ports:
- "8080:8080"
depends_on:
db:
condition: service_healthy
environment:
- DATABASE_URL=postgres://miniflux:${DB_PASSWORD}@db/miniflux?sslmode=disable
- RUN_MIGRATIONS=1
- CREATE_ADMIN=1
- ADMIN_USERNAME=${ADMIN_USERNAME}
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
- POLLING_FREQUENCY=15
- FETCHER_ALLOW_PRIVATE_NETWORKS=1
- GOOGLE_READER=1
healthcheck:
test: ["CMD", "/usr/bin/miniflux", "-healthcheck", "http://localhost:8080/healthcheck"]
interval: 30s
timeout: 10s
retries: 3
restart: unless-stopped
db:
image: postgres:16-alpine
environment:
- POSTGRES_USER=miniflux
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=miniflux
volumes:
- miniflux-db:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "miniflux"]
interval: 10s
timeout: 5s
retries: 3
restart: unless-stopped
digest-worker:
build: ./digest
volumes:
- digest-output:/output
environment:
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
- MINIFLUX_URL=http://miniflux:8080
- MINIFLUX_API_KEY=${MINIFLUX_API_KEY}
depends_on:
miniflux:
condition: service_healthy
restart: unless-stopped
nginx:
image: nginx:alpine
ports:
- "8888:80"
volumes:
- digest-output:/usr/share/nginx/html:ro
restart: unless-stopped
volumes:
miniflux-db:
digest-output: