-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
81 lines (76 loc) · 1.89 KB
/
Copy pathdocker-compose.yml
File metadata and controls
81 lines (76 loc) · 1.89 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
services:
library:
build: .
network_mode: "host"
environment:
- CRAWL_IP=${CRAWL_IP:-}
- R2_ENDPOINT=${R2_ENDPOINT}
- R2_ACCESS_KEY_ID=${R2_ACCESS_KEY_ID}
- R2_SECRET_ACCESS_KEY=${R2_SECRET_ACCESS_KEY}
- R2_BUCKET=${R2_BUCKET:-library}
- DATABASE_URL=${DATABASE_URL:-postgresql://read:read@localhost:5433/read}
- REDIS_URL=${REDIS_URL:-redis://localhost:6379}
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- AUTH_SECRET=${AUTH_SECRET}
- SITE_RULE_MODEL=${SITE_RULE_MODEL:-gpt-5.4}
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
restart: unless-stopped
rsshub:
image: diygod/rsshub:latest
restart: always
ports:
- "127.0.0.1:1200:1200"
environment:
NODE_ENV: production
CACHE_TYPE: redis
REDIS_URL: redis://rsshub-redis:6379/
TWITTER_AUTH_TOKEN: ${RSSHUB_TWITTER_AUTH_TOKEN:-}
TWITTER_CT0: ${RSSHUB_TWITTER_CT0:-}
CACHE_CONTENT_EXPIRE: 14400
depends_on:
- rsshub-redis
db:
image: pgvector/pgvector:pg16
restart: always
ports:
- "127.0.0.1:5433:5432"
environment:
POSTGRES_USER: read
POSTGRES_PASSWORD: read
POSTGRES_DB: read
volumes:
- db-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "read"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
restart: always
ports:
- "127.0.0.1:6379:6379"
volumes:
- redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
rsshub-redis:
image: redis:alpine
restart: always
volumes:
- rsshub-redis-data:/data
volumes:
db-data:
external: true
name: read_db-data
redis-data:
external: true
name: read_redis-data
rsshub-redis-data: