mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
* build(docker): optimize; add Chromium bundled ver Signed-off-by: Rongrong <i@rong.moe> * build(Dockerfile): fix redundant command and label Signed-off-by: Rongrong <i@rong.moe> * build(docker): only install prod deps to speed up Signed-off-by: Rongrong <i@rong.moe> * docs(install): minor fixes Signed-off-by: Rongrong <i@rong.moe> * build(Dockerfile): bump to `node:16-bullseye-slim` Signed-off-by: Rongrong <i@rong.moe> * build(Dockerfile): fix yarn registry mirror Signed-off-by: Rongrong <i@rong.moe> * build(Dockerfile): minimize dependencies for Chromium-bundled version Signed-off-by: Rongrong <i@rong.moe>
37 lines
1.0 KiB
YAML
37 lines
1.0 KiB
YAML
version: '3'
|
|
|
|
services:
|
|
rsshub:
|
|
# two ways to enable puppeteer:
|
|
# * (only on amd64/x86_64) comment out marked lines, then use this image instead: diygod/rsshub:chromium-bundled
|
|
# * (on all supported architectures, but consumes more disk space and memory) leave anything unchanged
|
|
image: diygod/rsshub
|
|
restart: always
|
|
ports:
|
|
- '1200:1200'
|
|
environment:
|
|
NODE_ENV: production
|
|
CACHE_TYPE: redis
|
|
REDIS_URL: 'redis://redis:6379/'
|
|
PUPPETEER_WS_ENDPOINT: 'ws://browserless:3000' # marked
|
|
depends_on:
|
|
- redis
|
|
- browserless # marked
|
|
|
|
browserless: # marked
|
|
image: browserless/chrome # marked
|
|
restart: always # marked
|
|
ulimits: # marked
|
|
core: # marked
|
|
hard: 0 # marked
|
|
soft: 0 # marked
|
|
|
|
redis:
|
|
image: redis:alpine
|
|
restart: always
|
|
volumes:
|
|
- redis-data:/data
|
|
|
|
volumes:
|
|
redis-data:
|