feat(templates): add appsmith

This commit is contained in:
Mauricio Siu
2024-06-30 00:24:16 -06:00
parent ed0f3cadd6
commit 2e3b0ddcde
13 changed files with 60 additions and 15 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

View 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

View 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,
};
}

View File

@@ -1,4 +1,4 @@
version: "3.4"
version: "3.8"
services:
baserow:
image: baserow/baserow:1.25.2

View File

@@ -1,4 +1,4 @@
version: "3"
version: "3.8"
services:
database:
image: postgis/postgis:13-master

View File

@@ -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}`)

View File

@@ -1,4 +1,4 @@
version: "3.7"
version: "3.8"
services:
n8n:
image: docker.n8n.io/n8nio/n8n:1.48.1

View File

@@ -1,5 +1,4 @@
version: '3.8'
services:
web:
image: odoo:16.0

View File

@@ -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:

View File

@@ -1,4 +1,4 @@
version: "3.7"
version: "3.8"
services:
pocketbase:
image: spectado/pocketbase:0.22.12

View File

@@ -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),
},
];

View File

@@ -1,4 +1,4 @@
version: "3.4"
version: "3.8"
services:
uptime-kuma:
networks:

View File

@@ -1,5 +1,4 @@
version: '3.8'
services:
wordpress:
image: wordpress:5.8.3