Last active
April 4, 2020 14:15
-
-
Save WingLim/31adc909fb9181e163ae5c6dc7606e3c to your computer and use it in GitHub Desktop.
Use miniflus, caddy and rsshub with docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rss.yourdomain.com { | |
| gzip | |
| proxy / miniflux:8080 { | |
| transparent | |
| } | |
| } | |
| rsshub.yourdomain.com { | |
| gzip | |
| proxy / rsshub:1200 { | |
| transparent | |
| websocket | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3' | |
| services: | |
| caddy: | |
| image: abiosoft/caddy:no-stats | |
| environment: | |
| - ACME_AGREE=true | |
| ports: | |
| - "80:80" | |
| - "443:443" | |
| volumes: | |
| - ./caddy/Caddyfile:/etc/Caddyfile | |
| - ./caddy/.caddy:/root/.caddy | |
| - ./caddy/www:/srv | |
| - /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime | |
| restart: always | |
| miniflux: | |
| image: miniflux/miniflux:latest | |
| depends_on: | |
| - db | |
| environment: | |
| - DATABASE_URL=postgres://miniflux:secret@db/miniflux?sslmode=disable | |
| - RUN_MIGRATIONS=1 | |
| - CREATE_ADMIN=1 | |
| - ADMIN_USERNAME=admin | |
| - ADMIN_PASSWORD=test123 | |
| db: | |
| image: postgres:latest | |
| environment: | |
| - POSTGRES_USER=miniflux | |
| - POSTGRES_PASSWORD=secret | |
| volumes: | |
| - ./miniflux-db:/var/lib/postgresql/data | |
| 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 | |
| depends_on: | |
| - redis | |
| - browserless | |
| browserless: | |
| image: browserless/chrome | |
| restart: always | |
| redis: | |
| image: redis:alpine | |
| restart: always | |
| volumes: | |
| - ./redis-data:/data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment