emanuelegori revised this gist 10 months ago. Go to revision
No changes
emanuelegori revised this gist 10 months ago. Go to revision
No changes
emanuelegori revised this gist 10 months ago. Go to revision
1 file changed, 2 insertions, 8 deletions
docker-compose.yml
| @@ -1,12 +1,9 @@ | |||
| 1 | 1 | services: | |
| 2 | 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 | 3 | image: diygod/rsshub | |
| 7 | 4 | restart: always | |
| 8 | 5 | ports: | |
| 9 | - | - "1200:1200" | |
| 6 | + | - 1200:1200 | |
| 10 | 7 | environment: | |
| 11 | 8 | NODE_ENV: production | |
| 12 | 9 | CACHE_TYPE: redis | |
| @@ -44,7 +41,4 @@ services: | |||
| 44 | 41 | interval: 30s | |
| 45 | 42 | timeout: 10s | |
| 46 | 43 | retries: 5 | |
| 47 | - | start_period: 5s | |
| 48 | - | ||
| 49 | - | volumes: | |
| 50 | - | redis-data: | |
| 44 | + | start_period: 5s | |
emanuelegori revised this gist 10 months ago. Go to revision
1 file changed, 50 insertions
docker-compose.yml(file created)
| @@ -0,0 +1,50 @@ | |||
| 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: | |