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:
31
blueprints/wikijs/docker-compose.yml
Normal file
31
blueprints/wikijs/docker-compose.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
version: '3.5'
|
||||
services:
|
||||
wiki:
|
||||
image: ghcr.io/requarks/wiki:2.5
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- DB_TYPE
|
||||
- DB_HOST
|
||||
- DB_PORT
|
||||
- DB_USER
|
||||
- DB_PASS
|
||||
- DB_NAME
|
||||
depends_on:
|
||||
- db
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.constraint-label-stack=wikijs
|
||||
db:
|
||||
image: postgres:14
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- POSTGRES_USER
|
||||
- POSTGRES_PASSWORD
|
||||
- POSTGRES_DB
|
||||
volumes:
|
||||
- wiki-db-data:/var/lib/postgresql/data
|
||||
networks:
|
||||
dokploy-network:
|
||||
external: true
|
||||
volumes:
|
||||
wiki-db-data:
|
||||
35
blueprints/wikijs/index.ts
Normal file
35
blueprints/wikijs/index.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
import {
|
||||
type DomainSchema,
|
||||
type Schema,
|
||||
type Template,
|
||||
generateRandomDomain,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
const domains: DomainSchema[] = [
|
||||
{
|
||||
host: generateRandomDomain(schema),
|
||||
port: 3000,
|
||||
serviceName: "wiki",
|
||||
},
|
||||
];
|
||||
|
||||
const envs = [
|
||||
"# Database Setup",
|
||||
"POSTGRES_USER=wikijs",
|
||||
"POSTGRES_PASSWORD=wikijsrocks",
|
||||
"POSTGRES_DB=wiki",
|
||||
"# WikiJS Database Connection",
|
||||
"DB_TYPE=postgres",
|
||||
"DB_HOST=db",
|
||||
"DB_PORT=5432",
|
||||
"DB_USER=wikijs",
|
||||
"DB_PASS=wikijsrocks",
|
||||
"DB_NAME=wiki",
|
||||
];
|
||||
|
||||
return {
|
||||
domains,
|
||||
envs,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user