forked from DIYgod/RSSHub
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
35 lines (31 loc) · 946 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
version: '3'
services:
service.rsshub:
build:
dockerfile: ./Dockerfile
context: .
args:
# 是否在构建过程中使用淘宝NPM源进行加速
USE_CHINA_NPM_REGISTRY: 0
# 是否在构建过程中跳过安装 Chromium, 参见 https://docs.rsshub.app/install/#docker-compose-deployment
# whether to skip puppeteer Chromium installation or not, refer to https://docs.rsshub.app/en/install/#docker-compose-deployment
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 1
restart: always
image: rsshub
ports:
- 1200:1200
environment:
NODE_ENV: production
CACHE_TYPE: redis
REDIS_URL: 'redis://db.redis:6379/'
volumes:
- ./lib/config/app.json:/app/lib/app.json
- ./lib/config/config.js:/app/lib/config.js
depends_on:
- db.redis
db.redis:
image: redis:4.0.11-alpine
volumes:
- redis-data:/data
volumes:
redis-data: