mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
feat(templates): add appsmith
This commit is contained in:
BIN
public/templates/appsmith.png
Normal file
BIN
public/templates/appsmith.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.7 KiB |
18
templates/appsmith/docker-compose.yml
Normal file
18
templates/appsmith/docker-compose.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
version: "3.8"
|
||||
services:
|
||||
appsmith:
|
||||
image: index.docker.io/appsmith/appsmith-ee:v1.29
|
||||
networks:
|
||||
- dokploy-network
|
||||
ports:
|
||||
- ${APP_SMITH_PORT}
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.${HASH}.rule=Host(`${APP_SMITH_HOST}`)"
|
||||
- "traefik.http.services.${HASH}.loadbalancer.server.port=${APP_SMITH_PORT}"
|
||||
volumes:
|
||||
- ./stacks:/appsmith-stacks
|
||||
|
||||
networks:
|
||||
dokploy-network:
|
||||
external: true
|
||||
20
templates/appsmith/index.ts
Normal file
20
templates/appsmith/index.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import {
|
||||
generateHash,
|
||||
generateRandomDomain,
|
||||
type Template,
|
||||
type Schema,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
const mainServiceHash = generateHash(schema.projectName);
|
||||
const randomDomain = generateRandomDomain(schema);
|
||||
const envs = [
|
||||
`APP_SMITH_HOST=${randomDomain}`,
|
||||
"APP_SMITH_PORT=80",
|
||||
`HASH=${mainServiceHash}`,
|
||||
];
|
||||
|
||||
return {
|
||||
envs,
|
||||
};
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
version: "3.4"
|
||||
version: "3.8"
|
||||
services:
|
||||
baserow:
|
||||
image: baserow/baserow:1.25.2
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
version: "3"
|
||||
version: "3.8"
|
||||
services:
|
||||
database:
|
||||
image: postgis/postgis:13-master
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
version: '3.1'
|
||||
|
||||
version: "3.8"
|
||||
services:
|
||||
|
||||
ghost:
|
||||
@@ -10,16 +9,12 @@ services:
|
||||
ports:
|
||||
- 2368
|
||||
environment:
|
||||
# see https://ghost.org/docs/config/#configuration-options
|
||||
database__client: mysql
|
||||
database__connection__host: db
|
||||
database__connection__user: root
|
||||
database__connection__password: example
|
||||
database__connection__database: ghost
|
||||
# this url value is just an example, and is likely wrong for your environment!
|
||||
url: http://${GHOST_HOST}
|
||||
# contrary to the default mentioned in the linked documentation, this image defaults to NODE_ENV=production (so development mode needs to be explicitly specified if desired)
|
||||
#NODE_ENV: development
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.${HASH}.rule=Host(`${GHOST_HOST}`)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
version: "3.7"
|
||||
version: "3.8"
|
||||
services:
|
||||
n8n:
|
||||
image: docker.n8n.io/n8nio/n8n:1.48.1
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
web:
|
||||
image: odoo:16.0
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
version: "3.8"
|
||||
services:
|
||||
plausible_db:
|
||||
# Plausible v2.1.0 was tested against PostgreSQL versions 15 and 16
|
||||
# https://github.com/plausible/analytics/blob/v2.1.0/.github/workflows/elixir.yml#L21-L32
|
||||
image: postgres:16-alpine
|
||||
restart: always
|
||||
networks:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
version: "3.7"
|
||||
version: "3.8"
|
||||
services:
|
||||
pocketbase:
|
||||
image: spectado/pocketbase:0.22.12
|
||||
|
||||
@@ -167,4 +167,19 @@ export const templates: TemplateData[] = [
|
||||
tags: ["cms"],
|
||||
load: () => import("./odoo/index").then((m) => m.generate),
|
||||
},
|
||||
{
|
||||
id: "appsmith",
|
||||
name: "Appsmith",
|
||||
version: "v1.29",
|
||||
description:
|
||||
"Appsmith is a free and open source platform for building internal tools and applications.",
|
||||
logo: "appsmith.png",
|
||||
links: {
|
||||
github: "https://github.com/appsmithorg/appsmith",
|
||||
website: "https://appsmith.com/",
|
||||
docs: "https://docs.appsmith.com/",
|
||||
},
|
||||
tags: ["cms"],
|
||||
load: () => import("./appsmith/index").then((m) => m.generate),
|
||||
},
|
||||
];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
version: "3.4"
|
||||
version: "3.8"
|
||||
services:
|
||||
uptime-kuma:
|
||||
networks:
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
wordpress:
|
||||
image: wordpress:5.8.3
|
||||
|
||||
Reference in New Issue
Block a user