mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Add: Postiz
This commit is contained in:
BIN
apps/dokploy/public/templates/postiz.png
Normal file
BIN
apps/dokploy/public/templates/postiz.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 52 KiB |
64
apps/dokploy/templates/postiz/docker-compose.yml
Normal file
64
apps/dokploy/templates/postiz/docker-compose.yml
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
services:
|
||||||
|
postiz:
|
||||||
|
image: ghcr.io/gitroomhq/postiz-app:latest
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- dokploy-network
|
||||||
|
environment:
|
||||||
|
MAIN_URL: "https://${POSTIZ_HOST}"
|
||||||
|
FRONTEND_URL: "https://${POSTIZ_HOST}"
|
||||||
|
NEXT_PUBLIC_BACKEND_URL: "https://${POSTIZ_HOST}/api"
|
||||||
|
JWT_SECRET: ${JWT_SECRET}
|
||||||
|
DATABASE_URL: "postgresql://${DB_USER}:${DB_PASSWORD}@postiz-postgres:5432/${DB_NAME}"
|
||||||
|
REDIS_URL: "redis://postiz-redis:6379"
|
||||||
|
BACKEND_INTERNAL_URL: "http://localhost:3000"
|
||||||
|
IS_GENERAL: "true"
|
||||||
|
STORAGE_PROVIDER: "local"
|
||||||
|
UPLOAD_DIRECTORY: "/uploads"
|
||||||
|
NEXT_PUBLIC_UPLOAD_DIRECTORY: "/uploads"
|
||||||
|
volumes:
|
||||||
|
- postiz-config:/config/
|
||||||
|
- postiz-uploads:/uploads/
|
||||||
|
depends_on:
|
||||||
|
postiz-postgres:
|
||||||
|
condition: service_healthy
|
||||||
|
postiz-redis:
|
||||||
|
condition: service_healthy
|
||||||
|
|
||||||
|
postiz-postgres:
|
||||||
|
image: postgres:17-alpine
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- dokploy-network
|
||||||
|
environment:
|
||||||
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
||||||
|
POSTGRES_USER: ${DB_USER}
|
||||||
|
POSTGRES_DB: ${DB_NAME}
|
||||||
|
volumes:
|
||||||
|
- postgres-volume:/var/lib/postgresql/data
|
||||||
|
healthcheck:
|
||||||
|
test: pg_isready -U ${DB_USER} -d ${DB_NAME}
|
||||||
|
interval: 10s
|
||||||
|
timeout: 3s
|
||||||
|
retries: 3
|
||||||
|
|
||||||
|
postiz-redis:
|
||||||
|
image: redis:7.2
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- dokploy-network
|
||||||
|
healthcheck:
|
||||||
|
test: redis-cli ping
|
||||||
|
interval: 10s
|
||||||
|
timeout: 3s
|
||||||
|
retries: 3
|
||||||
|
volumes:
|
||||||
|
- postiz-redis-data:/data
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
postgres-volume:
|
||||||
|
postiz-redis-data:
|
||||||
|
postiz-config:
|
||||||
|
postiz-uploads:
|
||||||
37
apps/dokploy/templates/postiz/index.ts
Normal file
37
apps/dokploy/templates/postiz/index.ts
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
import {
|
||||||
|
type DomainSchema,
|
||||||
|
type Schema,
|
||||||
|
type Template,
|
||||||
|
generatePassword,
|
||||||
|
generateRandomDomain,
|
||||||
|
generateBase64,
|
||||||
|
} from "../utils";
|
||||||
|
|
||||||
|
export function generate(schema: Schema): Template {
|
||||||
|
const mainDomain = generateRandomDomain(schema);
|
||||||
|
const dbPassword = generatePassword();
|
||||||
|
const dbUser = "postiz";
|
||||||
|
const dbName = "postiz";
|
||||||
|
const jwtSecret = generateBase64(32);
|
||||||
|
|
||||||
|
const domains: DomainSchema[] = [
|
||||||
|
{
|
||||||
|
host: mainDomain,
|
||||||
|
port: 5000,
|
||||||
|
serviceName: "postiz",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
const envs = [
|
||||||
|
`POSTIZ_HOST=${mainDomain}`,
|
||||||
|
`DB_PASSWORD=${dbPassword}`,
|
||||||
|
`DB_USER=${dbUser}`,
|
||||||
|
`DB_NAME=${dbName}`,
|
||||||
|
`JWT_SECRET=${jwtSecret}`,
|
||||||
|
];
|
||||||
|
|
||||||
|
return {
|
||||||
|
domains,
|
||||||
|
envs,
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -758,4 +758,18 @@ export const templates: TemplateData[] = [
|
|||||||
tags: ["invoice", "business", "finance"],
|
tags: ["invoice", "business", "finance"],
|
||||||
load: () => import("./invoiceshelf/index").then((m) => m.generate),
|
load: () => import("./invoiceshelf/index").then((m) => m.generate),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: "postiz",
|
||||||
|
name: "Postiz",
|
||||||
|
version: "latest",
|
||||||
|
description: "Postiz is a modern, open-source platform for managing and publishing content across multiple channels.",
|
||||||
|
logo: "postiz.png",
|
||||||
|
links: {
|
||||||
|
github: "https://github.com/gitroomhq/postiz",
|
||||||
|
website: "https://postiz.io",
|
||||||
|
docs: "https://docs.postiz.io",
|
||||||
|
},
|
||||||
|
tags: ["cms", "content-management", "publishing"],
|
||||||
|
load: () => import("./postiz/index").then((m) => m.generate),
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user