From 495de15164c2d10f62d0423e0f5cdedf3cd50046 Mon Sep 17 00:00:00 2001 From: Jonathan Gotti Date: Thu, 17 Apr 2025 22:44:04 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20tooljet=20template=20(#74)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ✨ Add tooljet template * Update blueprints/tooljet/docker-compose.yml * Update blueprints/tooljet/docker-compose.yml --------- Co-authored-by: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> --- blueprints/tooljet/docker-compose.yml | 44 ++++++++++++ blueprints/tooljet/logo.png | Bin 0 -> 359 bytes blueprints/tooljet/template.toml | 96 ++++++++++++++++++++++++++ meta.json | 17 +++++ 4 files changed, 157 insertions(+) create mode 100644 blueprints/tooljet/docker-compose.yml create mode 100644 blueprints/tooljet/logo.png create mode 100644 blueprints/tooljet/template.toml diff --git a/blueprints/tooljet/docker-compose.yml b/blueprints/tooljet/docker-compose.yml new file mode 100644 index 0000000..c09289f --- /dev/null +++ b/blueprints/tooljet/docker-compose.yml @@ -0,0 +1,44 @@ +version: "3" + +services: + tooljet: + tty: true + stdin_open: true + image: tooljet/tooljet:ee-lts-latest + restart: always + env_file: .env + # ports: + # - 80:80 + expose: + - 80 + deploy: # Please adjust the resource according to your usecase + resources: + limits: + cpus: '1' + memory: 2G + depends_on: + - postgres + environment: + SERVE_CLIENT: "true" + PORT: "80" + command: npm run start:prod + + postgres: + image: postgres:13 + restart: always + deploy: # Please adjust the resource according to your usecase + resources: + limits: + cpus: '2' + memory: 3G + volumes: + - ../files/postgres:/var/lib/postgresql/data + env_file: .env + environment: + - POSTGRES_USER=${PG_USER} + - POSTGRES_PASSWORD=${PG_PASS} + +volumes: + certs: + logs: + fallbackcerts: \ No newline at end of file diff --git a/blueprints/tooljet/logo.png b/blueprints/tooljet/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..9216a175f9a5987c1d8d041a51bf3dbf7855ee34 GIT binary patch literal 359 zcmV-t0hs=YP)MqV4PN{Nm{QGJgbskrgh-TA)C^|QhA#I7v00002ONklo2a&6Panr2~`()GIv>b3-u1y&qWSn$7 zY1OLixh^ijR4wu?M<39jJ85quPV$WPzhch=#n=y&90x+g{Q$o3=s1oJ@#y{tX)N3! zTrr)YYB>M|`i-;b{_vyA&tq-y)yJ0+R;aJfmMg?>F$2V73y?hJ!43cb002ovPDHLk FV1k#&w2=S+ literal 0 HcmV?d00001 diff --git a/blueprints/tooljet/template.toml b/blueprints/tooljet/template.toml new file mode 100644 index 0000000..f165a56 --- /dev/null +++ b/blueprints/tooljet/template.toml @@ -0,0 +1,96 @@ +[variables] +main_domain = "${domain}" +pg_pass = "${password}" + +[config] +mounts = [] + +env = [ +"# Create .env from this example file and replace values for the environment.", +"# The application expects a separate .env.test for test environment configuration", +"# Get detailed information about each variable here: https://docs.tooljet.com/docs/setup/env-vars", +"", +"TOOLJET_HOST=http://${main_domain}:80", +"TOOLJET_HTTP_PROXY=http://${main_domain}:80", +"LOCKBOX_MASTER_KEY=${password:32}", +"SECRET_KEY_BASE=${password:64}", +"", +"# DATABASE CONFIG", +"ORM_LOGGING=all", +"PG_DB=tooljet_production", +"PG_USER=postgres", +"PG_HOST=postgres", +"PG_PASS=${pg_pass}", +"", +"# The above postgres values is set to its default state. If necessary, kindly modify it according to your personal preference.", +"", +"# TOOLJET DATABASE", +"TOOLJET_DB=tooljet_db", +"TOOLJET_DB_USER=postgres", +"TOOLJET_DB_HOST=postgres", +"TOOLJET_DB_PASS=${pg_pass}", +"", +"PGRST_DB_URI=postgres://postgres:${pg_pass}@postgres/tooljet_db", +"PGRST_HOST=localhost:3002", +"PGRST_JWT_SECRET=${password:32}", +"PGRST_SERVER_PORT=3002", +"", +"# Redis", +"REDIS_HOST=localhost", +"REDIS_PORT=6379", +"REDIS_USER=default", +"REDIS_PASSWORD=", +"", +"# Checks every 24 hours to see if a new version of ToolJet is available", +"# (Enabled by default. Set false to disable)", +"CHECK_FOR_UPDATES=true", +"", +"# Checks every 24 hours to update app telemetry data to ToolJet hub.", +"# (Telemetry is enabled by default. Set value to true to disable.)", +"DISABLE_TOOLJET_TELEMETRY=true", +"", +"GOOGLE_CLIENT_ID=", +"GOOGLE_CLIENT_SECRET=", +"", +"# EMAIL CONFIGURATION", +"DEFAULT_FROM_EMAIL=hello@tooljet.io", +"SMTP_USERNAME=", +"SMTP_PASSWORD=", +"SMTP_DOMAIN=", +"SMTP_PORT=", +"", +"# DISABLE USER SIGNUPS (true or false). only applicable if Multi-Workspace feature is enabled", +"DISABLE_SIGNUPS=", +"", +"# OBSERVABILITY", +"APM_VENDOR=", +"SENTRY_DNS=", +"SENTRY_DEBUG=", +"", +"# FEATURE TOGGLE", +"COMMENT_FEATURE_ENABLE=", +"ENABLE_MULTIPLAYER_EDITING=true", +"ENABLE_MARKETPLACE_FEATURE=true", +"", +"# SSO (Applicable only for Multi-Workspace)", +"SSO_GOOGLE_OAUTH2_CLIENT_ID=", +"SSO_GIT_OAUTH2_CLIENT_ID=", +"SSO_GIT_OAUTH2_CLIENT_SECRET=", +"SSO_GIT_OAUTH2_HOST=", +"SSO_ACCEPTED_DOMAINS=", +"SSO_DISABLE_SIGNUPS=", +"", +"#ONBOARDING", +"ENABLE_ONBOARDING_QUESTIONS_FOR_ALL_SIGN_UPS=", +"", +"#session expiry in minutes", +"USER_SESSION_EXPIRY=2880", +"", +"#TELEMETRY", +"DEPLOYMENT_PLATFORM=docker" +] + +[[config.domains]] +serviceName = "tooljet" +port = 80 +host = "${main_domain}" \ No newline at end of file diff --git a/meta.json b/meta.json index 06a36f6..a762029 100644 --- a/meta.json +++ b/meta.json @@ -2702,6 +2702,23 @@ ] }, { + "id": "tooljet", + "name": "Tooljet", + "version": "ee-lts-latest", + "description": "Tooljet is an open-source low-code platform that allows you to build internal tools quickly and efficiently. It provides a user-friendly interface for creating applications without extensive coding knowledge.", + "logo": "logo.png", + "links": { + "github":"https://github.com/ToolJet/ToolJet", + "website": "https://tooljet.ai/", + "docs": "https://docs.tooljet.ai/" + }, + "tags": [ + "file-sync", + "file-sharing", + "self-hosted" + ], +}, +{ "id": "onetimesecret", "name": "One Time Secret", "version": "latest",