Last active
January 5, 2021 04:39
-
-
Save izackwu/9a9d88c4452d960b2f82356b9d52ff75 to your computer and use it in GitHub Desktop.
Docker compose: Miniflux + RSSHub + Caddy
This file contains 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
{ | |
email hi@imwzk.com | |
} | |
reader.imwzk.com { | |
encode zstd gzip | |
reverse_proxy miniflux:8080 | |
} | |
rsshub.imwzk.com { | |
encode zstd gzip | |
reverse_proxy rsshub:1200 | |
} |
This file contains 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: | |
miniflux: | |
image: miniflux/miniflux:latest | |
container_name: miniflux | |
restart: always | |
depends_on: | |
- db | |
environment: | |
- DATABASE_URL=postgres://miniflux:secret@db/miniflux?sslmode=disable | |
- RUN_MIGRATIONS=1 | |
- CREATE_ADMIN=1 | |
- ADMIN_USERNAME=admin | |
- ADMIN_PASSWORD=password | |
- BASE_URL=https://reader.imwzk.com | |
- LOG_DATE_TIME=1 | |
db: | |
image: postgres:latest | |
container_name: postgres | |
restart: always | |
environment: | |
- POSTGRES_USER=miniflux | |
- POSTGRES_PASSWORD=secret | |
volumes: | |
- miniflux-db:/var/lib/postgresql/data | |
rsshub: | |
image: diygod/rsshub | |
container_name: rsshub | |
restart: always | |
environment: | |
NODE_ENV: production | |
DEBUG_INFO: 1 | |
CACHE_TYPE: redis | |
REDIS_URL: 'redis://redis:6379/' | |
PUPPETEER_WS_ENDPOINT: 'ws://browserless:3000' | |
depends_on: | |
- redis | |
- browserless | |
browserless: | |
image: browserless/chrome | |
container_name: browserless | |
restart: always | |
redis: | |
image: redis:alpine | |
container_name: redis | |
restart: always | |
volumes: | |
- redis-data:/data | |
caddy: | |
image: caddy:2 | |
container_name: caddy | |
restart: always | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: | |
- $PWD/Caddyfile:/etc/caddy/Caddyfile | |
- caddy_data:/data | |
- caddy_config:/config | |
volumes: | |
redis-data: | |
miniflux-db: | |
caddy_data: | |
caddy_config: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment