docker-compose.yml
· 1.2 KiB · YAML
原始檔案
services:
rsshub:
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
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
| 1 | services: |
| 2 | rsshub: |
| 3 | image: diygod/rsshub |
| 4 | restart: always |
| 5 | ports: |
| 6 | - 1200:1200 |
| 7 | environment: |
| 8 | NODE_ENV: production |
| 9 | CACHE_TYPE: redis |
| 10 | REDIS_URL: "redis://redis:6379/" |
| 11 | PUPPETEER_WS_ENDPOINT: "ws://browserless:3000" # marked |
| 12 | healthcheck: |
| 13 | test: ["CMD", "curl", "-f", "http://localhost:1200/healthz"] |
| 14 | interval: 30s |
| 15 | timeout: 10s |
| 16 | retries: 3 |
| 17 | depends_on: |
| 18 | - redis |
| 19 | - browserless # marked |
| 20 | |
| 21 | browserless: # marked |
| 22 | image: browserless/chrome # marked |
| 23 | restart: always # marked |
| 24 | ulimits: # marked |
| 25 | core: # marked |
| 26 | hard: 0 # marked |
| 27 | soft: 0 # marked |
| 28 | healthcheck: |
| 29 | test: ["CMD", "curl", "-f", "http://localhost:3000/pressure"] |
| 30 | interval: 30s |
| 31 | timeout: 10s |
| 32 | retries: 3 |
| 33 | |
| 34 | redis: |
| 35 | image: redis:alpine |
| 36 | restart: always |
| 37 | volumes: |
| 38 | - redis-data:/data |
| 39 | healthcheck: |
| 40 | test: ["CMD", "redis-cli", "ping"] |
| 41 | interval: 30s |
| 42 | timeout: 10s |
| 43 | retries: 5 |
| 44 | start_period: 5s |