Update compose/specialized/rsshub/compose.yml
This commit is contained in:
parent
ed532209f3
commit
ac023120ad
1 changed files with 59 additions and 9 deletions
|
|
@ -1,11 +1,61 @@
|
||||||
services:
|
services:
|
||||||
rsshub:
|
rsshub:
|
||||||
image:
|
# two ways to enable puppeteer:
|
||||||
container_name: rsshub
|
# * comment out marked lines, then use this image instead: diygod/rsshub:chromium-bundled
|
||||||
restart: unless-stopped
|
# * (consumes more disk space and memory) leave everything unchanged
|
||||||
# ports:
|
image: diygod/rsshub:chromium-bundled
|
||||||
# - ":"
|
restart: always
|
||||||
# volumes:
|
ports:
|
||||||
# - ./data:/data
|
- 1200:1200
|
||||||
# environment:
|
environment:
|
||||||
# - VARIABLE=value
|
NODE_ENV: production
|
||||||
|
CACHE_TYPE: redis
|
||||||
|
REDIS_URL: redis://redis:6379/
|
||||||
|
PUPPETEER_WS_ENDPOINT: ws://browserless:3000 # marked
|
||||||
|
healthcheck:
|
||||||
|
test:
|
||||||
|
- CMD
|
||||||
|
- curl
|
||||||
|
- -f
|
||||||
|
- http://localhost:1200/healthz
|
||||||
|
interval: 30s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 3
|
||||||
|
depends_on:
|
||||||
|
- redis
|
||||||
|
- browserless # marked
|
||||||
|
browserless:
|
||||||
|
# marked
|
||||||
|
image: browserless/chrome # marked
|
||||||
|
restart: always # marked
|
||||||
|
ulimits:
|
||||||
|
# marked
|
||||||
|
core:
|
||||||
|
# marked
|
||||||
|
hard: 0 # marked
|
||||||
|
soft: 0 # marked
|
||||||
|
healthcheck:
|
||||||
|
test:
|
||||||
|
- CMD
|
||||||
|
- curl
|
||||||
|
- -f
|
||||||
|
- http://localhost:3000/pressure
|
||||||
|
interval: 30s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 3
|
||||||
|
redis:
|
||||||
|
image: redis:alpine
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- redis-data:/data
|
||||||
|
healthcheck:
|
||||||
|
test:
|
||||||
|
- CMD
|
||||||
|
- redis-cli
|
||||||
|
- ping
|
||||||
|
interval: 30s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 5
|
||||||
|
start_period: 5s
|
||||||
|
volumes:
|
||||||
|
redis-data: null
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue