version: '3.4' services: miniflux: image: miniflux/miniflux:latest container_name: miniflux-web depends_on: - db environment: - DATABASE_URL=postgres://{{ database_user }}:{{ database_password }}@db/miniflux?sslmode=disable networks: - default - traefik labels: - traefik.http.routers.miniflux.entrypoints=websecure - traefik.http.routers.miniflux.rule=Host(`rss.pizzapim.nl`) - traefik.http.routers.miniflux.tls=true - traefik.http.routers.miniflux.tls.certresolver=pizzapim - traefik.tcp.routers.miniflux.service=miniflux - traefik.http.services.miniflux.loadbalancer.server.port=8080 db: image: postgres:15 container_name: miniflux_db environment: - POSTGRES_USER={{ database_user }} - POSTGRES_PASSWORD={{ database_password }} volumes: - {{ data_dir }}:/var/lib/postgresql/data healthcheck: test: ["CMD", "pg_isready", "-U", "miniflux"] interval: 10s start_period: 30s networks: - default networks: traefik: external: true