docker-compose.yml
· 1.4 KiB · YAML
Surowy
services:
rsshub:
# two ways to enable puppeteer:
# * comment out marked lines, then use this image instead: diygod/rsshub:chromium-bundled
# * (consumes more disk space and memory) leave everything 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
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:
1 | services: |
2 | rsshub: |
3 | # two ways to enable puppeteer: |
4 | # * comment out marked lines, then use this image instead: diygod/rsshub:chromium-bundled |
5 | # * (consumes more disk space and memory) leave everything unchanged |
6 | image: diygod/rsshub |
7 | restart: always |
8 | ports: |
9 | - "1200:1200" |
10 | environment: |
11 | NODE_ENV: production |
12 | CACHE_TYPE: redis |
13 | REDIS_URL: "redis://redis:6379/" |
14 | PUPPETEER_WS_ENDPOINT: "ws://browserless:3000" # marked |
15 | healthcheck: |
16 | test: ["CMD", "curl", "-f", "http://localhost:1200/healthz"] |
17 | interval: 30s |
18 | timeout: 10s |
19 | retries: 3 |
20 | depends_on: |
21 | - redis |
22 | - browserless # marked |
23 | |
24 | browserless: # marked |
25 | image: browserless/chrome # marked |
26 | restart: always # marked |
27 | ulimits: # marked |
28 | core: # marked |
29 | hard: 0 # marked |
30 | soft: 0 # marked |
31 | healthcheck: |
32 | test: ["CMD", "curl", "-f", "http://localhost:3000/pressure"] |
33 | interval: 30s |
34 | timeout: 10s |
35 | retries: 3 |
36 | |
37 | redis: |
38 | image: redis:alpine |
39 | restart: always |
40 | volumes: |
41 | - redis-data:/data |
42 | healthcheck: |
43 | test: ["CMD", "redis-cli", "ping"] |
44 | interval: 30s |
45 | timeout: 10s |
46 | retries: 5 |
47 | start_period: 5s |
48 | |
49 | volumes: |
50 | redis-data: |
51 |