mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
feat: add jellyfin template
This commit is contained in:
25
templates/jellyfin/docker-compose.yml
Normal file
25
templates/jellyfin/docker-compose.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
version: '3.8'
|
||||
services:
|
||||
jellyfin:
|
||||
image: jellyfin/jellyfin
|
||||
networks:
|
||||
- dokploy-network
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.${HASH}.rule=Host(`${JELLYFIN_HOST}`)"
|
||||
- "traefik.http.services.${HASH}.loadbalancer.server.port"
|
||||
volumes:
|
||||
- ./config:/config
|
||||
- ./cache:/cache
|
||||
- ./media:/media
|
||||
restart: 'unless-stopped'
|
||||
# Optional - alternative address used for autodiscovery
|
||||
environment:
|
||||
- JELLYFIN_PublishedServerUrl=http://${JELLYFIN_HOST}
|
||||
# Optional - may be necessary for docker healthcheck to pass if running in host network mode
|
||||
extra_hosts:
|
||||
- 'host.docker.internal:host-gateway'
|
||||
|
||||
networks:
|
||||
dokploy-network:
|
||||
external: true
|
||||
19
templates/jellyfin/index.ts
Normal file
19
templates/jellyfin/index.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
// EXAMPLE
|
||||
import {
|
||||
generateHash,
|
||||
generateRandomDomain,
|
||||
type Template,
|
||||
type Schema,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
const randomDomain = generateRandomDomain(schema);
|
||||
|
||||
const envs = [
|
||||
`JELLYFIN_HOST=${randomDomain}`,
|
||||
];
|
||||
|
||||
return {
|
||||
envs,
|
||||
};
|
||||
}
|
||||
@@ -378,4 +378,19 @@ export const templates: TemplateData[] = [
|
||||
tags: ["analytics"],
|
||||
load: () => import("./umami/index").then((m) => m.generate),
|
||||
},
|
||||
{
|
||||
id: "jellyfin",
|
||||
name: "jellyfin",
|
||||
version: "v10.9.7",
|
||||
description:
|
||||
"Jellyfin is a Free Software Media System that puts you in control of managing and streaming your media. ",
|
||||
logo: "jellyfin.svg",
|
||||
links: {
|
||||
github: "https://github.com/jellyfin/jellyfin",
|
||||
website: "https://jellyfin.org/",
|
||||
docs: "https://jellyfin.org/docs/",
|
||||
},
|
||||
tags: ["media system"],
|
||||
load: () => import("./jellyfin/index").then((m) => m.generate),
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user