mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
feat(add): Ryot
This commit is contained in:
39
apps/dokploy/templates/ryot/docker-compose.yml
Normal file
39
apps/dokploy/templates/ryot/docker-compose.yml
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
version: '3.7'
|
||||||
|
|
||||||
|
services:
|
||||||
|
ryot-app:
|
||||||
|
image: ignisda/ryot:v7.10
|
||||||
|
networks:
|
||||||
|
- dokploy-network
|
||||||
|
environment:
|
||||||
|
- DATABASE_URL=postgres://postgres:${POSTGRES_PASSWORD}@ryot-db:5432/postgres
|
||||||
|
- SERVER_ADMIN_ACCESS_TOKEN=${ADMIN_ACCESS_TOKEN}
|
||||||
|
- TZ=UTC
|
||||||
|
# Optional: Uncomment and set your pro key if you have one
|
||||||
|
# - SERVER_PRO_KEY=${SERVER_PRO_KEY}
|
||||||
|
depends_on:
|
||||||
|
ryot-db:
|
||||||
|
condition: service_healthy
|
||||||
|
restart: always
|
||||||
|
pull_policy: always
|
||||||
|
|
||||||
|
ryot-db:
|
||||||
|
image: postgres:16-alpine
|
||||||
|
networks:
|
||||||
|
- dokploy-network
|
||||||
|
volumes:
|
||||||
|
- ryot-postgres-data:/var/lib/postgresql/data
|
||||||
|
environment:
|
||||||
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||||
|
- POSTGRES_USER=postgres
|
||||||
|
- POSTGRES_DB=postgres
|
||||||
|
- TZ=UTC
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
ryot-postgres-data:
|
||||||
34
apps/dokploy/templates/ryot/index.ts
Normal file
34
apps/dokploy/templates/ryot/index.ts
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
import {
|
||||||
|
type DomainSchema,
|
||||||
|
type Schema,
|
||||||
|
type Template,
|
||||||
|
generateBase64,
|
||||||
|
generatePassword,
|
||||||
|
generateRandomDomain,
|
||||||
|
} from "../utils";
|
||||||
|
|
||||||
|
export function generate(schema: Schema): Template {
|
||||||
|
const mainDomain = generateRandomDomain(schema);
|
||||||
|
const postgresPassword = generatePassword();
|
||||||
|
const adminAccessToken = generateBase64(32);
|
||||||
|
|
||||||
|
const domains: DomainSchema[] = [
|
||||||
|
{
|
||||||
|
host: mainDomain,
|
||||||
|
port: 8000,
|
||||||
|
serviceName: "ryot-app",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
const envs = [
|
||||||
|
`POSTGRES_PASSWORD=${postgresPassword}`,
|
||||||
|
`ADMIN_ACCESS_TOKEN=${adminAccessToken}`,
|
||||||
|
"# Optional: Uncomment and set your pro key if you have one",
|
||||||
|
"# SERVER_PRO_KEY=your_pro_key_here",
|
||||||
|
];
|
||||||
|
|
||||||
|
return {
|
||||||
|
domains,
|
||||||
|
envs,
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -867,4 +867,19 @@ export const templates: TemplateData[] = [
|
|||||||
tags: ["support", "chat", "customer-service"],
|
tags: ["support", "chat", "customer-service"],
|
||||||
load: () => import("./chatwoot/index").then((m) => m.generate),
|
load: () => import("./chatwoot/index").then((m) => m.generate),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: "ryot",
|
||||||
|
name: "Ryot",
|
||||||
|
version: "v7.10",
|
||||||
|
description:
|
||||||
|
"A self-hosted platform for tracking various media types including movies, TV shows, video games, books, audiobooks, and more.",
|
||||||
|
logo: "ryot.svg",
|
||||||
|
links: {
|
||||||
|
github: "https://github.com/IgnisDa/ryot",
|
||||||
|
website: "https://ryot.dev/",
|
||||||
|
docs: "https://ryot.dev/docs/getting-started",
|
||||||
|
},
|
||||||
|
tags: ["media", "tracking", "self-hosted"],
|
||||||
|
load: () => import("./ryot/index").then((m) => m.generate),
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user