diff --git a/apps/dokploy/templates/templates.ts b/apps/dokploy/templates/templates.ts index 78b9f67eb..c3a8d718d 100644 --- a/apps/dokploy/templates/templates.ts +++ b/apps/dokploy/templates/templates.ts @@ -218,7 +218,6 @@ export const templates: TemplateData[] = [ version: "v1.5.6", description: "Documenso is the open source alternative to DocuSign for signing documents digitally", - links: { github: "https://github.com/documenso/documenso", website: "https://documenso.com/", @@ -593,7 +592,7 @@ export const templates: TemplateData[] = [ version: "0.4.1", description: "Docmost, an open-source collaborative wiki and documentation software.", - logo: "", + logo: "docmost.png", links: { github: "https://github.com/docmost/docmost", website: "https://docmost.com/", @@ -602,4 +601,19 @@ export const templates: TemplateData[] = [ tags: ["self-hosted", "open-source", "manager"], load: () => import("./docmost/index").then((m) => m.generate), }, + { + id: "vaultwarden", + name: "Vaultwarden", + version: "1.32.3", + description: + "Unofficial Bitwarden compatible server written in Rust, formerly known as bitwarden_rs", + logo: "vaultwarden.png", + links: { + github: "https://github.com/dani-garcia/vaultwarden", + website: "", + docs: "https://github.com/dani-garcia/vaultwarden/wiki", + }, + tags: ["open-source"], + load: () => import("./vaultwarden/index").then((m) => m.generate), + }, ]; diff --git a/apps/dokploy/templates/vaultwarden/docker-compose.yml b/apps/dokploy/templates/vaultwarden/docker-compose.yml new file mode 100644 index 000000000..4ccc5cbf8 --- /dev/null +++ b/apps/dokploy/templates/vaultwarden/docker-compose.yml @@ -0,0 +1,14 @@ +services: + vaultwarden: + image: vaultwarden/server:1.32.3 + restart: always + environment: + DOMAIN: ${DOMAIN} + SIGNUPS_ALLOWED: ${SIGNUPS_ALLOWED} + volumes: + - vaultwarden:/data + ports: + - 11001:80 + +volumes: + vaultwarden: \ No newline at end of file diff --git a/apps/dokploy/templates/vaultwarden/index.ts b/apps/dokploy/templates/vaultwarden/index.ts new file mode 100644 index 000000000..66aa14657 --- /dev/null +++ b/apps/dokploy/templates/vaultwarden/index.ts @@ -0,0 +1,28 @@ +import { + type DomainSchema, + type Schema, + type Template, + generateRandomDomain, +} from "../utils"; + +export function generate(schema: Schema): Template { + const domains: DomainSchema[] = [ + { + host: generateRandomDomain(schema), + port: 80, + serviceName: "vaultwarden", + }, + ]; + + const envs = [ + "# Deactivate this with 'false' after you have created your account so that no strangers can register", + "SIGNUPS_ALLOWED=true", + "# required when using a reverse proxy; your domain; vaultwarden needs to know it's https to work properly with attachments", + "DOMAIN=https://vaultwarden.example.com", + ]; + + return { + domains, + envs, + }; +}