update 26.7.24
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
services:
|
||||
rsshub:
|
||||
image: diygod/rsshub # or ghcr.io/diygod/rsshub
|
||||
restart: always
|
||||
ports:
|
||||
- '1200:1200'
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
CACHE_TYPE: redis
|
||||
REDIS_URL: 'redis://redis:6379/'
|
||||
PLAYWRIGHT_WS_ENDPOINT: 'ws://browserless:3000'
|
||||
healthcheck:
|
||||
test: ['CMD', 'curl', '-f', 'http://localhost:1200/healthz']
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
depends_on:
|
||||
- redis
|
||||
- browserless
|
||||
|
||||
browserless:
|
||||
image: browserless/chrome
|
||||
restart: always
|
||||
ulimits:
|
||||
core:
|
||||
hard: 0
|
||||
soft: 0
|
||||
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:
|
||||
Reference in New Issue
Block a user