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:
@@ -1,17 +1,17 @@
|
|||||||
version: '3.8'
|
version: '3.8'
|
||||||
services:
|
services:
|
||||||
jellyfin:
|
jellyfin:
|
||||||
image: jellyfin/jellyfin
|
image: jellyfin/jellyfin:10
|
||||||
networks:
|
networks:
|
||||||
- dokploy-network
|
- dokploy-network
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.${HASH}.rule=Host(`${JELLYFIN_HOST}`)"
|
- "traefik.http.routers.${HASH}.rule=Host(`${JELLYFIN_HOST}`)"
|
||||||
- "traefik.http.services.${HASH}.loadbalancer.server.port"
|
- "traefik.http.services.${HASH}.loadbalancer.server.port=${JELLYFIN_PORT}"
|
||||||
volumes:
|
volumes:
|
||||||
- ./config:/config
|
- config:/config
|
||||||
- ./cache:/cache
|
- cache:/cache
|
||||||
- ./media:/media
|
- media:/media
|
||||||
restart: 'unless-stopped'
|
restart: 'unless-stopped'
|
||||||
# Optional - alternative address used for autodiscovery
|
# Optional - alternative address used for autodiscovery
|
||||||
environment:
|
environment:
|
||||||
@@ -19,7 +19,10 @@ services:
|
|||||||
# Optional - may be necessary for docker healthcheck to pass if running in host network mode
|
# Optional - may be necessary for docker healthcheck to pass if running in host network mode
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- 'host.docker.internal:host-gateway'
|
- 'host.docker.internal:host-gateway'
|
||||||
|
volumes:
|
||||||
|
config:
|
||||||
|
cache:
|
||||||
|
media:
|
||||||
networks:
|
networks:
|
||||||
dokploy-network:
|
dokploy-network:
|
||||||
external: true
|
external: true
|
||||||
|
|||||||
@@ -7,10 +7,13 @@ import {
|
|||||||
} from "../utils";
|
} from "../utils";
|
||||||
|
|
||||||
export function generate(schema: Schema): Template {
|
export function generate(schema: Schema): Template {
|
||||||
|
const mainServiceHash = generateHash(schema.projectName);
|
||||||
const randomDomain = generateRandomDomain(schema);
|
const randomDomain = generateRandomDomain(schema);
|
||||||
|
const port = 8096;
|
||||||
const envs = [
|
const envs = [
|
||||||
`JELLYFIN_HOST=${randomDomain}`,
|
`JELLYFIN_HOST=${randomDomain}`,
|
||||||
|
`HASH=${mainServiceHash}`,
|
||||||
|
`JELLYFIN_PORT=${port}`
|
||||||
];
|
];
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user