mirror of
https://github.com/Dokploy/templates
synced 2025-06-26 18:16:07 +00:00
feat: Add numerous new blueprint templates for various applications
This commit is contained in:
9
blueprints/spacedrive/docker-compose.yml
Normal file
9
blueprints/spacedrive/docker-compose.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
services:
|
||||
server:
|
||||
image: ghcr.io/spacedriveapp/spacedrive/server:latest
|
||||
ports:
|
||||
- 8080
|
||||
environment:
|
||||
- SD_AUTH=${SD_USERNAME}:${SD_PASSWORD}
|
||||
volumes:
|
||||
- /var/spacedrive:/var/spacedrive
|
||||
28
blueprints/spacedrive/index.ts
Normal file
28
blueprints/spacedrive/index.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import {
|
||||
type DomainSchema,
|
||||
type Schema,
|
||||
type Template,
|
||||
generatePassword,
|
||||
generateRandomDomain,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
const randomDomain = generateRandomDomain(schema);
|
||||
const secretKey = generatePassword();
|
||||
const randomUsername = "admin"; // Default username
|
||||
|
||||
const domains: DomainSchema[] = [
|
||||
{
|
||||
host: randomDomain,
|
||||
port: 8080,
|
||||
serviceName: "server",
|
||||
},
|
||||
];
|
||||
|
||||
const envs = [`SD_USERNAME=${randomUsername}`, `SD_PASSWORD=${secretKey}`];
|
||||
|
||||
return {
|
||||
envs,
|
||||
domains,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user