mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Merge pull request #1356 from drudge/templates/pocket-id
feat: add Pocket ID template
This commit is contained in:
1
apps/dokploy/public/templates/pocket-id.svg
Normal file
1
apps/dokploy/public/templates/pocket-id.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" id="a" viewBox="0 0 1015 1015"><path d="M506.6,0c209.52,0,379.98,170.45,379.98,379.96,0,82.33-25.9,160.68-74.91,226.54-48.04,64.59-113.78,111.51-190.13,135.71l-21.1,6.7-50.29-248.04,13.91-6.73c45.41-21.95,74.76-68.71,74.76-119.11,0-72.91-59.31-132.23-132.21-132.23s-132.23,59.32-132.23,132.23c0,50.4,29.36,97.16,74.77,119.11l13.65,6.61-81.01,499.24h-226.36V0h351.18Z"/><style>@media (prefers-color-scheme:dark){#a path{fill:#fff}}@media (prefers-color-scheme:light){#a path{fill:#000}}</style></svg>
|
||||
|
After Width: | Height: | Size: 539 B |
21
apps/dokploy/templates/pocket-id/docker-compose.yml
Normal file
21
apps/dokploy/templates/pocket-id/docker-compose.yml
Normal 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:
|
||||
29
apps/dokploy/templates/pocket-id/index.ts
Normal file
29
apps/dokploy/templates/pocket-id/index.ts
Normal 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,
|
||||
};
|
||||
}
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user