tanbushi commited on
Commit
2e6831e
·
1 Parent(s): dac4581
Files changed (1) hide show
  1. docker-compose.yml +62 -0
docker-compose.yml ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ services:
2
+ rsshub:
3
+ # two ways to enable puppeteer:
4
+ # * comment out marked lines, then use this image instead: diygod/rsshub:chromium-bundled
5
+ # * (consumes more disk space and memory) leave everything unchanged
6
+ image: diygod/rsshub # or ghcr.io/diygod/rsshub
7
+ restart: always
8
+ ports:
9
+ - '1200:1200'
10
+ environment:
11
+ NODE_ENV: production
12
+ CACHE_TYPE: redis
13
+ REDIS_URL: 'redis://redis:6379/'
14
+ PUPPETEER_WS_ENDPOINT: 'ws://browserless:3000' # marked
15
+ PUPPETEER_REAL_BROWSER_SERVICE: 'http://real-browser:3000' # marked
16
+ healthcheck:
17
+ test: ['CMD', 'curl', '-f', 'http://localhost:1200/healthz']
18
+ interval: 30s
19
+ timeout: 10s
20
+ retries: 3
21
+ depends_on:
22
+ - redis
23
+ - browserless # marked
24
+
25
+ real-browser:
26
+ image: ghcr.io/hyoban/puppeteer-real-browser-hono
27
+ restart: always
28
+ ports:
29
+ - '3001:3000'
30
+ healthcheck:
31
+ test: ['CMD', 'curl', '-f', 'http://localhost:3000']
32
+ interval: 30s
33
+ timeout: 10s
34
+ retries: 3
35
+
36
+ browserless: # marked
37
+ image: browserless/chrome # marked
38
+ restart: always # marked
39
+ ulimits: # marked
40
+ core: # marked
41
+ hard: 0 # marked
42
+ soft: 0 # marked
43
+ healthcheck: # marked
44
+ test: ['CMD', 'curl', '-f', 'http://localhost:3000/pressure'] # marked
45
+ interval: 30s # marked
46
+ timeout: 10s # marked
47
+ retries: 3 # marked
48
+
49
+ redis:
50
+ image: redis:alpine
51
+ restart: always
52
+ volumes:
53
+ - redis-data:/data
54
+ healthcheck:
55
+ test: ['CMD', 'redis-cli', 'ping']
56
+ interval: 30s
57
+ timeout: 10s
58
+ retries: 5
59
+ start_period: 5s
60
+
61
+ volumes:
62
+ redis-data: