2024-10-12 11:49:53 +08:00
|
|
|
networks:
|
|
|
|
1panel-network:
|
|
|
|
external: true
|
|
|
|
|
|
|
|
services:
|
2024-10-17 10:37:11 +08:00
|
|
|
browserless:
|
|
|
|
image: browserless/chrome
|
2024-10-17 10:39:33 +08:00
|
|
|
container_name: browserless-${CONTAINER_NAME}
|
2024-10-17 10:37:11 +08:00
|
|
|
labels:
|
|
|
|
createdBy: "Apps"
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- 1panel-network
|
|
|
|
ulimits:
|
|
|
|
core:
|
|
|
|
hard: 0
|
|
|
|
soft: 0
|
|
|
|
expose:
|
|
|
|
- 3000
|
|
|
|
healthcheck:
|
|
|
|
test: [ "CMD", "curl", "-f", "http://localhost:3000/pressure" ]
|
|
|
|
interval: 30s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 3
|
2024-10-12 11:49:53 +08:00
|
|
|
rsshub:
|
2024-11-28 00:38:40 +08:00
|
|
|
image: diygod/rsshub:2024-11-27
|
2024-10-17 10:39:33 +08:00
|
|
|
container_name: rsshub-${CONTAINER_NAME}
|
2024-10-12 11:49:53 +08:00
|
|
|
depends_on:
|
|
|
|
- browserless
|
|
|
|
labels:
|
|
|
|
createdBy: "Apps"
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- 1panel-network
|
|
|
|
ports:
|
|
|
|
- ${PANEL_APP_PORT_HTTP}:1200
|
|
|
|
env_file:
|
2024-11-27 17:54:18 +08:00
|
|
|
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
2024-10-12 11:49:53 +08:00
|
|
|
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
|
|
|
environment:
|
|
|
|
- NODE_ENV=production
|
|
|
|
- PUPPETEER_WS_ENDPOINT=ws://browserless:3000
|
|
|
|
- PORT=1200
|
|
|
|
- LISTEN_INADDR_ANY=1
|
|
|
|
- REQUEST_RETRY=2
|
|
|
|
- REQUEST_TIMEOUT=3000
|
|
|
|
- ALLOW_ORIGIN=*
|
|
|
|
- CACHE_CONTENT_EXPIRE=360
|
|
|
|
- CACHE_EXPIRE=300
|
|
|
|
- MEMORY_MAX=256
|
|
|
|
- LOGGER_LEVEL=info
|
|
|
|
- NO_LOGFILES=false
|
|
|
|
- DISALLOW_ROBOT=true
|
|
|
|
- ENABLE_CLUSTER=false
|
|
|
|
- NODE_NAME=rsshub
|
|
|
|
healthcheck:
|
2024-10-12 12:09:59 +08:00
|
|
|
test: [ "CMD", "curl", "-f", "http://localhost:1200/healthz?key=${ACCESS_KEY}" ]
|
2024-10-12 11:49:53 +08:00
|
|
|
interval: 30s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 3
|