feat: add rss feeder (#24)
continuous-integration/drone/push Build is passing Details

Co-authored-by: Davide Polonio <poloniodavide@gmail.com>
Reviewed-on: #24
pull/25/head
Davide Polonio 2023-08-17 09:48:16 +02:00
parent a92ec91cc5
commit e9991e2c1b
1 changed files with 80 additions and 0 deletions

80
rss/docker-compose.yml Normal file
View File

@ -0,0 +1,80 @@
version: '3.9'
services:
rss:
image: miniflux/miniflux:latest
restart: unless-stopped
healthcheck:
test: ["CMD", "/usr/bin/miniflux", "-healthcheck", "auto"]
depends_on:
db:
condition: service_healthy
morss:
condition: service_healthy
environment:
- RUN_MIGRATIONS=1
env_file:
- .env
networks:
- internal
- proxy
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "1"
db:
image: postgres:15-alpine
restart: unless-stopped
volumes:
- db:/var/lib/postgresql/data
env_file:
- .env
healthcheck:
test: ["CMD", "pg_isready", "-U", "rss"]
interval: 10s
start_period: 30s
networks:
- internal
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "1"
morss:
image: pictuga/morss:latest
restart: unless-stopped
environment:
- MAX_TIME=10
- MAX_ITEM=-1
- LIM_TIME=120
- LIM_ITEM=-1
- CACHE=diskcache
- CACHE_SIZE=2048000000
healthcheck:
test: ["CMD", "/usr/bin/wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8000"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 30s
networks:
- internal
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "1"
volumes:
db:
driver: local
driver_opts:
type: none
o: bind
device: "/srv/docker/rss/db"
networks:
internal:
ipam:
driver: default
proxy:
external: true