mirror of
https://github.com/Dokploy/templates.git
synced 2026-07-08 07:25:23 +02:00
feat: add Miniflux template (#881)
* feat: add Miniflux template * fix: guard GitHub star count fallback --------- Co-authored-by: Artemis-ignis <Artemis-ignis@users.noreply.github.com>
This commit is contained in:
@@ -13,7 +13,9 @@ const Navigation = () => {
|
||||
"https://api.github.com/repos/dokploy/dokploy"
|
||||
);
|
||||
const data = await response.json();
|
||||
setGithubStars(data.stargazers_count);
|
||||
setGithubStars(
|
||||
Number.isFinite(data.stargazers_count) ? data.stargazers_count : 0
|
||||
);
|
||||
} catch (error) {
|
||||
console.error("Error fetching GitHub stars:", error);
|
||||
}
|
||||
|
||||
45
blueprints/miniflux/docker-compose.yml
Normal file
45
blueprints/miniflux/docker-compose.yml
Normal file
@@ -0,0 +1,45 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
miniflux:
|
||||
image: miniflux/miniflux:2.2.19
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
DATABASE_URL: user=miniflux password=${POSTGRES_PASSWORD} dbname=miniflux host=db sslmode=disable
|
||||
RUN_MIGRATIONS: "1"
|
||||
CREATE_ADMIN: "1"
|
||||
ADMIN_USERNAME: ${ADMIN_USERNAME}
|
||||
ADMIN_PASSWORD: ${ADMIN_PASSWORD}
|
||||
BASE_URL: https://${MINIFLUX_DOMAIN}
|
||||
expose:
|
||||
- "8080"
|
||||
healthcheck:
|
||||
test: ["CMD", "/usr/bin/miniflux", "-healthcheck", "auto"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
|
||||
db:
|
||||
image: postgres:18-alpine
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_USER: miniflux
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
POSTGRES_DB: miniflux
|
||||
expose:
|
||||
- "5432"
|
||||
volumes:
|
||||
- miniflux-db:/var/lib/postgresql
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U miniflux -d miniflux"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 30s
|
||||
|
||||
volumes:
|
||||
miniflux-db:
|
||||
1
blueprints/miniflux/miniflux.svg
Normal file
1
blueprints/miniflux/miniflux.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 78.9 512 354.1"><path d="M166.8 96.2c16.6-8.8 35.2-13.2 54-13.1 39.9 0 65.2 17.3 76.2 52 12.6-14.8 27.7-27.3 44.6-36.9 17.5-10.1 37-15.1 58.6-15.1 29.9 0 51.3 9.1 64.1 27.4s19.3 45.7 19.2 82.3v206.6c0 5.2.7 8.7 2.2 10.5 1.4 1.9 4.6 3.6 9.4 4.9l16.9 5.6V433H411.7c-8.7 0-15-3.3-18.8-9.8-3.8-6.6-5.8-16.4-5.8-29.5V180.1c0-21.1-2.3-36.1-7-45s-12.5-13.3-23.4-13.4c-17.4 0-35.8 10.3-55.4 30.9 2.1 13.3 3 26.7 2.9 40.1v206.6c0 5.2.7 8.7 2.2 10.5s4.6 3.6 9.4 4.9l16.9 5.6v12.6H232.4c-8.7 0-15-3.3-18.8-9.8s-5.8-16.4-5.8-29.5V180.1c0-21.1-2.3-36.1-7-45s-12.4-13.3-23.4-13.4c-17 0-34.6 9.4-52.5 28.1v249.4c0 5.2.7 8.8 2.2 10.9 1.4 2.1 4.4 3.9 8.9 5.3l16.4 4.9v12.6H0v-12.6l16.9-5.6c4.8-1.4 8-3 9.4-4.9s2.2-5.4 2.2-10.5V133.7c0-5.2-.7-8.7-2.2-10.5-1.4-1.9-4.6-3.5-9.4-4.9L0 112.7V100l115.7-21.1h8.2v49.2c12.5-12.8 27-23.6 42.9-31.9"/></svg>
|
||||
|
After Width: | Height: | Size: 882 B |
17
blueprints/miniflux/template.toml
Normal file
17
blueprints/miniflux/template.toml
Normal file
@@ -0,0 +1,17 @@
|
||||
[variables]
|
||||
main_domain = "${domain}"
|
||||
postgres_password = "${password:32}"
|
||||
admin_username = "admin"
|
||||
admin_password = "${password:32}"
|
||||
|
||||
[config]
|
||||
[[config.domains]]
|
||||
serviceName = "miniflux"
|
||||
port = 8080
|
||||
host = "${main_domain}"
|
||||
|
||||
[config.env]
|
||||
MINIFLUX_DOMAIN = "${main_domain}"
|
||||
POSTGRES_PASSWORD = "${postgres_password}"
|
||||
ADMIN_USERNAME = "${admin_username}"
|
||||
ADMIN_PASSWORD = "${admin_password}"
|
||||
17
meta.json
17
meta.json
@@ -4345,6 +4345,23 @@
|
||||
"docker"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "miniflux",
|
||||
"name": "Miniflux",
|
||||
"version": "2.2.19",
|
||||
"description": "Miniflux is a minimalist and opinionated feed reader for self-hosted RSS and Atom subscriptions.",
|
||||
"logo": "miniflux.svg",
|
||||
"links": {
|
||||
"github": "https://github.com/miniflux/v2",
|
||||
"website": "https://miniflux.app/",
|
||||
"docs": "https://miniflux.app/docs/"
|
||||
},
|
||||
"tags": [
|
||||
"rss",
|
||||
"feed-reader",
|
||||
"news"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "minio",
|
||||
"name": "Minio",
|
||||
|
||||
Reference in New Issue
Block a user