Skip to content

Commit 9aa13c5

Browse files
authored
Merge pull request #1356 from drudge/templates/pocket-id
feat: add Pocket ID template
2 parents 398fd54 + 1294c2a commit 9aa13c5

File tree

4 files changed

+66
-0
lines changed

4 files changed

+66
-0
lines changed
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
services:
2+
pocket-id:
3+
image: ghcr.io/pocket-id/pocket-id:v0.35.1
4+
restart: unless-stopped
5+
environment:
6+
- PUBLIC_UI_CONFIG_DISABLED
7+
- PUBLIC_APP_URL
8+
- TRUST_PROXY
9+
ports:
10+
- 80
11+
volumes:
12+
- pocket-id-data:/app/backend/data
13+
healthcheck:
14+
test: "curl -f http://localhost/health"
15+
interval: 1m30s
16+
timeout: 5s
17+
retries: 2
18+
start_period: 10s
19+
20+
volumes:
21+
pocket-id-data:
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import {
2+
type DomainSchema,
3+
type Schema,
4+
type Template,
5+
generateRandomDomain,
6+
} from "../utils";
7+
8+
export function generate(schema: Schema): Template {
9+
const mainDomain = generateRandomDomain(schema);
10+
11+
const domains: DomainSchema[] = [
12+
{
13+
host: mainDomain,
14+
port: 80,
15+
serviceName: "pocket-id",
16+
},
17+
];
18+
19+
const envs = [
20+
"PUBLIC_UI_CONFIG_DISABLED=false",
21+
`PUBLIC_APP_URL=http://${mainDomain}`,
22+
"TRUST_PROXY=true",
23+
];
24+
25+
return {
26+
domains,
27+
envs,
28+
};
29+
}

apps/dokploy/templates/templates.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,6 +1123,21 @@ export const templates: TemplateData[] = [
11231123
tags: ["identity", "auth"],
11241124
load: () => import("./logto/index").then((m) => m.generate),
11251125
},
1126+
{
1127+
id: "pocket-id",
1128+
name: "Pocket ID",
1129+
version: "0.35.1",
1130+
description:
1131+
"A simple and easy-to-use OIDC provider that allows users to authenticate with their passkeys to your services.",
1132+
logo: "pocket-id.svg",
1133+
links: {
1134+
github: "https://github.com/pocket-id/pocket-id",
1135+
website: "https://pocket-id.org/",
1136+
docs: "https://pocket-id.org/docs",
1137+
},
1138+
tags: ["identity", "auth"],
1139+
load: () => import("./pocket-id/index").then((m) => m.generate),
1140+
},
11261141
{
11271142
id: "penpot",
11281143
name: "Penpot",

0 commit comments

Comments
 (0)