Merge pull request #1356 from drudge/templates/pocket-id

feat: add Pocket ID template
This commit is contained in:
Mauricio Siu
2025-02-23 14:51:53 -06:00
committed by GitHub
4 changed files with 66 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
services:
pocket-id:
image: ghcr.io/pocket-id/pocket-id:v0.35.1
restart: unless-stopped
environment:
- PUBLIC_UI_CONFIG_DISABLED
- PUBLIC_APP_URL
- TRUST_PROXY
ports:
- 80
volumes:
- pocket-id-data:/app/backend/data
healthcheck:
test: "curl -f http://localhost/health"
interval: 1m30s
timeout: 5s
retries: 2
start_period: 10s
volumes:
pocket-id-data:

View File

@@ -0,0 +1,29 @@
import {
type DomainSchema,
type Schema,
type Template,
generateRandomDomain,
} from "../utils";
export function generate(schema: Schema): Template {
const mainDomain = generateRandomDomain(schema);
const domains: DomainSchema[] = [
{
host: mainDomain,
port: 80,
serviceName: "pocket-id",
},
];
const envs = [
"PUBLIC_UI_CONFIG_DISABLED=false",
`PUBLIC_APP_URL=http://${mainDomain}`,
"TRUST_PROXY=true",
];
return {
domains,
envs,
};
}

View File

@@ -1123,6 +1123,21 @@ export const templates: TemplateData[] = [
tags: ["identity", "auth"],
load: () => import("./logto/index").then((m) => m.generate),
},
{
id: "pocket-id",
name: "Pocket ID",
version: "0.35.1",
description:
"A simple and easy-to-use OIDC provider that allows users to authenticate with their passkeys to your services.",
logo: "pocket-id.svg",
links: {
github: "https://github.com/pocket-id/pocket-id",
website: "https://pocket-id.org/",
docs: "https://pocket-id.org/docs",
},
tags: ["identity", "auth"],
load: () => import("./pocket-id/index").then((m) => m.generate),
},
{
id: "penpot",
name: "Penpot",