{
  "manifest_version": "1.0.0",
  "template": {
    "id": "8c7af74b-9014-4b17-bd37-c06ecbb83901",
    "slug": "miniflux-railway",
    "name": "Miniflux",
    "description": "Feedly alternative. Minimalist self-hosted RSS/Atom feed reader",
    "url": "https://railway.com/deploy/miniflux-railway",
    "upstream": {
      "image": "miniflux/miniflux:latest"
    }
  },
  "services": [
    {
      "name": "miniflux-scheduler",
      "source": {
        "image": "miniflux/miniflux:latest"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "miniflux",
      "source": {
        "image": "miniflux/miniflux:latest"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "miniflux-scheduler",
      "description": "Health-check port, kept private",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "HTTPS",
      "service": "miniflux-scheduler",
      "description": "Secure cookies and HSTS header",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "BASE_URL",
      "service": "miniflux-scheduler",
      "description": "Public URL in generated links",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "LOG_LEVEL",
      "service": "miniflux-scheduler",
      "description": "Log verbosity: debug, info, warning, error",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "BATCH_SIZE",
      "service": "miniflux-scheduler",
      "description": "Feeds queued per batch",
      "secret": false,
      "strategy": "default",
      "default": "100"
    },
    {
      "key": "DATABASE_URL",
      "service": "miniflux-scheduler",
      "description": "Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WORKER_POOL_SIZE",
      "service": "miniflux-scheduler",
      "description": "Background feed-fetch workers",
      "secret": false,
      "strategy": "default",
      "default": "16"
    },
    {
      "key": "POLLING_FREQUENCY",
      "service": "miniflux-scheduler",
      "description": "Minutes between scheduler batches",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "miniflux",
      "description": "HTTP listening port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "HTTPS",
      "service": "miniflux",
      "description": "Secure cookies and HSTS header",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "BASE_URL",
      "service": "miniflux",
      "description": "Public URL in generated links",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "LOG_LEVEL",
      "service": "miniflux",
      "description": "Log verbosity: debug, info, warning, error",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "CREATE_ADMIN",
      "service": "miniflux",
      "description": "Create first administrator on boot",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "DATABASE_URL",
      "service": "miniflux",
      "description": "Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "miniflux",
      "description": "First administrator password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "ADMIN_USERNAME",
      "service": "miniflux",
      "description": "First administrator username",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "DISABLE_SCHEDULER_SERVICE",
      "service": "miniflux",
      "description": "Web tier never polls feeds",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "TRUSTED_REVERSE_PROXY_NETWORKS",
      "service": "miniflux",
      "description": "Trust Railway edge for XFF",
      "secret": false,
      "strategy": "default",
      "default": "100.64.0.0/10,fd00::/8"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Cluster location on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Superuser created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate expiry in days",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Superuser password, read by the server",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "miniflux-railway"
      }
    },
    "cli": "railway deploy --template miniflux-railway",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "8c7af74b-9014-4b17-bd37-c06ecbb83901",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "09a393e3-bbfd-4080-a6d0-7e0e63ec64f5": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/miniflux.svg",
                  "name": "miniflux-scheduler",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'for i in $(seq 1 60); do /usr/bin/miniflux -migrate && exec /usr/bin/miniflux; echo \"waiting for database ($i/60)\"; sleep 5; done; echo \"database never became ready\"; exit 1'",
                    "healthcheckPath": "/healthcheck",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "miniflux/miniflux:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Health-check port, kept private",
                      "defaultValue": "8080"
                    },
                    "HTTPS": {
                      "isOptional": false,
                      "description": "Secure cookies and HSTS header",
                      "defaultValue": "1"
                    },
                    "BASE_URL": {
                      "isOptional": false,
                      "description": "Public URL in generated links",
                      "defaultValue": "https://${{miniflux.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Log verbosity: debug, info, warning, error",
                      "defaultValue": "info"
                    },
                    "BATCH_SIZE": {
                      "isOptional": false,
                      "description": "Feeds queued per batch",
                      "defaultValue": "100"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "WORKER_POOL_SIZE": {
                      "isOptional": false,
                      "description": "Background feed-fetch workers",
                      "defaultValue": "16"
                    },
                    "POLLING_FREQUENCY": {
                      "isOptional": false,
                      "description": "Minutes between scheduler batches",
                      "defaultValue": "60"
                    }
                  }
                },
                "66e63466-7920-4862-ac0c-c1c0f65c59d3": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/miniflux.svg",
                  "name": "miniflux",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'for i in $(seq 1 60); do /usr/bin/miniflux -migrate && exec /usr/bin/miniflux; echo \"waiting for database ($i/60)\"; sleep 5; done; echo \"database never became ready\"; exit 1'",
                    "healthcheckPath": "/healthcheck",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "miniflux/miniflux:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP listening port",
                      "defaultValue": "8080"
                    },
                    "HTTPS": {
                      "isOptional": false,
                      "description": "Secure cookies and HSTS header",
                      "defaultValue": "1"
                    },
                    "BASE_URL": {
                      "isOptional": false,
                      "description": "Public URL in generated links",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Log verbosity: debug, info, warning, error",
                      "defaultValue": "info"
                    },
                    "CREATE_ADMIN": {
                      "isOptional": false,
                      "description": "Create first administrator on boot",
                      "defaultValue": "1"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "First administrator password",
                      "defaultValue": "{{ADMIN_PASSWORD}}"
                    },
                    "ADMIN_USERNAME": {
                      "isOptional": false,
                      "description": "First administrator username",
                      "defaultValue": "admin"
                    },
                    "DISABLE_SCHEDULER_SERVICE": {
                      "isOptional": false,
                      "description": "Web tier never polls feeds",
                      "defaultValue": "1"
                    },
                    "TRUSTED_REVERSE_PROXY_NETWORKS": {
                      "isOptional": false,
                      "description": "Trust Railway edge for XFF",
                      "defaultValue": "100.64.0.0/10,fd00::/8"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "c77a2667-62f6-4133-aa9c-f5da400bb5a8": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Cluster location on the volume",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{ POSTGRES_USER }}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created on first boot",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Superuser created on first boot",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "SSL certificate expiry in days",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password, read by the server",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "c77a2667-62f6-4133-aa9c-f5da400bb5a8": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "miniflux",
      "method": "GET",
      "path": "/healthcheck",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T17:13:33.828Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_b358457617bc4cfc9f59",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 77,
    "typical_build_seconds": 0,
    "typical_start_seconds": 5,
    "slowest_service": "miniflux-scheduler"
  }
}
