Added miniflux stack

master
Jef Roosens 2022-03-19 09:42:09 +01:00
parent 0b1d936208
commit 995e32a7ba
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 72 additions and 0 deletions

View File

@ -0,0 +1,72 @@
version: '3.4'
services:
app:
image: 'miniflux/miniflux:2.0.36'
command: '/usr/bin/miniflux -c /etc/miniflux.conf'
deploy:
mode: 'replicated'
replicas: 1
placement:
constraints:
- 'node.labels.class.miniflux==true'
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.miniflux.rule=Host(`nws.rustybever.be`)'
- 'traefik.http.routers.miniflux.tls=true'
- 'traefik.http.routers.miniflux.tls.certresolver=letsEncrypt'
- 'traefik.http.services.miniflux.loadbalancer.server.port=8080'
configs:
- source: miniflux_v1
target: /etc/miniflux.conf
environment:
- 'ADMIN_PASSWORD_FILE=/run/secrets/miniflux_admin_password'
networks:
- default
- public
secrets:
- miniflux_admin_password
db:
image: 'postgres:14.2-alpine'
deploy:
mode: 'replicated'
replicas: 1
placement:
constraints:
- 'node.labels.class.miniflux==true'
environment:
- 'POSTGRES_DB=miniflux'
- 'POSTGRES_USER=miniflux'
- 'POSTGRES_PASSWORD=miniflux'
volumes:
- 'db-data:/var/lib/postgresql/data'
reddit:
image: 'johnny5w/reddit-top-rss:latest'
deploy:
mode: 'replicated'
replicas: 1
placement:
constraints:
- 'node.labels.class.miniflux==true'
configs:
miniflux_v3:
external: true
networks:
public:
external: true
secrets:
miniflux_admin_password:
external: true
volumes:
db-data: