Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

wip trpc

Andras Bacsai2009dc11dbe2
diff --git a/.gitignore b/.gitignore
index 410aba9ee4..40773d23f8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,4 +16,8 @@ apps/backup/backups/*
logs
others/certificates
backups/*
-!backups/.gitkeep
\ No newline at end of file
+!backups/.gitkeep
+
+# Trpc
+apps/server/db/*.db
+apps/server/db/*.db-journal
\ No newline at end of file
diff --git a/apps/api/db/dev.db.bak b/apps/api/db/dev.db.bak
new file mode 100644
index 0000000000..2a6385b110
Binary files /dev/null and b/apps/api/db/dev.db.bak differ
diff --git a/apps/api/src/lib/services.ts b/apps/api/src/lib/services.ts
index b423cbe9ca..19e3094ebe 100644
--- a/apps/api/src/lib/services.ts
+++ b/apps/api/src/lib/services.ts
@@ -1,51 +1,47 @@
-import { isARM, isDev } from "./common";
+import { isARM, isDev } from './common';
import fs from 'fs/promises';
export async function getTemplates() {
- const templatePath = isDev ? './templates.json' : '/app/templates.json';
- const open = await fs.open(templatePath, 'r');
- try {
- let data = await open.readFile({ encoding: 'utf-8' });
- let jsonData = JSON.parse(data)
- if (isARM(process.arch)) {
- jsonData = jsonData.filter(d => d.arch !== 'amd64')
- }
- return jsonData;
- } catch (error) {
- return []
- } finally {
- await open?.close()
- }
+ const templatePath = isDev ? './templates.json' : '/app/templates.json';
+ const open = await fs.open(templatePath, 'r');
+ try {
+ let data = await open.readFile({ encoding: 'utf-8' });
+ let jsonData = JSON.parse(data);
+ if (isARM(process.arch)) {
+ jsonData = jsonData.filter((d) => d.arch !== 'amd64');
+ }
+ return jsonData;
+ } catch (error) {
+ return [];
+ } finally {
+ await open?.close();
+ }
}
const compareSemanticVersions = (a: string, b: string) => {
- const a1 = a.split('.');
- const b1 = b.split('.');
- const len = Math.min(a1.length, b1.length);
- for (let i = 0; i < len; i++) {
- const a2 = +a1[i] || 0;
- const b2 = +b1[i] || 0;
- if (a2 !== b2) {
- return a2 > b2 ? 1 : -1;
- }
- }
- return b1.length - a1.length;
+ const a1 = a.split('.');
+ const b1 = b.split('.');
+ const len = Math.min(a1.length, b1.length);
+ for (let i = 0; i < len; i++) {
+ const a2 = +a1[i] || 0;
+ const b2 = +b1[i] || 0;
+ if (a2 !== b2) {
+ return a2 > b2 ? 1 : -1;
+ }
+ }
+ return b1.length - a1.length;
};
export async function getTags(type: string) {
-
- try {
- if (type) {
- const tagsPath = isDev ? './tags.json' : '/app/tags.json';
- const data = await fs.readFile(tagsPath, 'utf8')
- let tags = JSON.parse(data)
- if (tags) {
- tags = tags.find((tag: any) => tag.name.includes(type))
- tags.tags = tags.tags.sort(compareSemanticVersions).reverse();
- return tags
- }
- }
- } catch (error) {
- return []
-
- }
-
-
+ try {
+ if (type) {
+ const tagsPath = isDev ? './tags.json' : '/app/tags.json';
+ const data = await fs.readFile(tagsPath, 'utf8');
+ let tags = JSON.parse(data);
+ if (tags) {
+ tags = tags.find((tag: any) => tag.name.includes(type));
+ tags.tags = tags.tags.sort(compareSemanticVersions).reverse();
+ return tags;
+ }
+ }
+ } catch (error) {
+ return [];
+ }
}
diff --git a/apps/client/package.json b/apps/client/package.json
index 0ac71ab152..2f067f30a8 100644
--- a/apps/client/package.json
+++ b/apps/client/package.json
@@ -37,9 +37,12 @@
},
"type": "module",
"dependencies": {
- "js-cookie": "3.0.1",
"@trpc/client": "10.1.0",
"@trpc/server": "10.1.0",
+ "cuid": "2.1.8",
+ "daisyui": "2.41.0",
+ "flowbite-svelte": "0.28.0",
+ "js-cookie": "3.0.1",
"server": "workspace:*",
"superjson": "1.11.0"
}
diff --git a/apps/client/src/app.postcss b/apps/client/src/app.postcss
index d32a3b6152..67ad7e2d90 100644
--- a/apps/client/src/app.postcss
+++ b/apps/client/src/app.postcss
@@ -3,12 +3,282 @@
@tailwind components;
@tailwind utilities;
-html {
- @apply bg-black text-white;
+@font-face {
+ font-family: 'Poppins';
+ font-style: normal;
+ font-weight: 400;
+ src: local(''), url('/poppins-v19-latin-ext_latin_devanagari-regular.woff2') format('woff2'),
+ url('/poppins-v19-latin-ext_latin_devanagari-regular.woff') format('woff');
}
-input {
- @apply bg-black border;
+@font-face {
+ font-family: 'Poppins';
+ font-style: normal;
+ font-weight: 500;
+ src: local(''), url('/poppins-v19-latin-ext_latin_devanagari-500.woff2') format('woff2'),
+ url('/poppins-v19-latin-ext_latin_devanagari-500.woff') format('woff');
}
+
button {
- @apply border px-2 p-1 bg-green-500;
+ @apply text-sm !important;
+}
+html {
+ @apply h-full min-h-full overflow-y-scroll;
+}
+body {
+ @apply min-h-screen overflow-x-hidden bg-coolblack text-sm text-white scrollbar-w-1 scrollbar-thumb-coollabs scrollbar-track-coolgray-200;
+}
+
+input,
+.input {
+ @apply h-12 w-96 rounded border border-transparent bg-coolgray-200 p-2 text-xs tracking-tight text-white placeholder-stone-600 outline-none transition duration-150 hover:bg-coolgray-500 focus:bg-coolgray-500 disabled:border disabled:border-dashed disabled:border-coolgray-200 disabled:bg-transparent disabled:bg-coolblack md:text-sm;
+}
+textarea {
+ @apply min-w-[14rem] rounded border border-transparent bg-coolgray-200 p-2 text-xs tracking-tight text-white placeholder-stone-600 outline-none transition duration-150 hover:bg-coolgray-500 focus:bg-coolgray-500 disabled:border disabled:border-dashed disabled:border-coolgray-200 disabled:bg-transparent md:text-sm;
+}
+
+#svelte .custom-select-wrapper .selectContainer.disabled input {
+ @apply placeholder:text-stone-600;
+}
+
+#svelte .custom-select-wrapper .selectContainer input {
+ @apply text-white;
+}
+
+#svelte .custom-select-wrapper .selectContainer {
+ @apply h-12 rounded bg-coolgray-200 p-2 px-0 text-xs tracking-tight outline-none transition duration-150 hover:bg-coolgray-500 focus:bg-coolgray-500 md:text-sm;
+}
+
+#svelte .listContainer {
+ @apply bg-coolgray-400 text-white scrollbar-w-2 scrollbar-thumb-green-500 scrollbar-track-coolgray-200;
+}
+#svelte .selectedItem {
+ @apply pl-2;
+}
+
+#svelte .item.hover {
+ @apply bg-coollabs text-white !important;
+}
+#svelte .item.active {
+ @apply bg-coolgray-100 text-white;
+}
+
+select {
+ @apply h-12 w-96 rounded bg-coolgray-200 p-2 text-xs font-bold tracking-tight text-white placeholder-stone-600 outline-none transition duration-150 hover:bg-coolgray-500 focus:bg-coolgray-500 disabled:text-stone-600 md:text-sm;
+}
+.custom-select-wrapper {
+ --background: rgb(32 32 32);
+ --inputColor: white;
+ --multiItemPadding: 0;
+ --multiSelectPadding: 0 0.5rem 0 0.5rem;
+ --border: none;
+ --placeholderColor: rgb(87 83 78);
+ --listBackground: rgb(32 32 32);
+ --itemColor: white;
+ --itemHoverBG: rgb(107 22 237);
+ --multiItemBG: rgb(32 32 32);
+ --multiClearHoverBG: transparent;
+ --multiClearHoverFill: rgb(239 68 68);
+ --multiItemActiveBG: transparent;
+ --multiClearBG: transparent;
+ --clearSelectFocusColor: white;
+ --clearSelectHoverColor: rgb(239 68 68);
+ --multiItemBorderRadius: 0.25rem;
+ --listShadow: none;
+}
+
+label {
+ @apply inline-block;
+}
+.btn {
+ @apply text-white text-base min-w-fit no-animation;
+}
+
+a {
+ @apply underline hover:text-white;
+}
+
+.content {
+ @apply p-2 px-4;
+}
+
+.title {
+ @apply text-lg lg:text-2xl font-bold;
+}
+.subtitle {
+ @apply text-lg lg:text-xl font-bold text-indigo-300;
+}
+.label {
+ @apply text-sm leading-6 font-semibold text-sky-500 dark:text-sky-400;
+}
+.card {
+ @apply border bg-coolgray-100 border-coolgray-200 rounded p-2 space-y-2 sticky top-4 mb-2 items-center;
+}
+.icon-holder {
+ overflow: hidden;
+ height: 30px;
+ border-radius: 5px;
+ margin-right: 8px;
+ background: linear-gradient(0deg, #999, #ddd);
+}
+.instance-status-running {
+ box-shadow: 1px 4px 5px #3df721;
+}
+.instance-status-stopped {
+ box-shadow: 1px 4px 5px rgb(110, 191, 225);
+}
+.instance-status-error {
+ box-shadow: 1px 4px 5px #fb00ff;
+}
+.instance-status-degraded {
+ box-shadow: 1px 4px 5px #f7b121;
+}
+.badge-status-healthy,
+.badge-status-running {
+ @apply text-green-500;
+}
+.badge-status-degraded {
+ @apply text-green-500;
+}
+.badge-status-stopped {
+ @apply text-sky-500;
+}
+.delete-button {
+ @apply bg-red-600;
+}
+.delete-button:hover {
+ @apply bg-red-500;
+}
+/* Interchange menu position */
+.menu-left {
+ display: flex;
+ flex-direction: row;
+}
+.menu-left .menu-bar {
+ display: flex;
+ flex-direction: column;
+}
+.menu-left .menu-bar > * {
+ display: flex;
+ flex-direction: column;
+}
+.menu-top {
+ display: flex;
+ flex-direction: column;
+}
+.menu-top .menu-bar {
+ display: flex;
+ flex-direction: row;
+}
+.menu-top .menu-bar > * {
+ display: flex;
+ flex-direction: row;
+}
+
+.nav-main {
+ @apply fixed top-0 left-0 min-h-screen w-16 min-w-[4rem] overflow-hidden border-r border-stone-800 bg-coolgray-200 scrollbar-w-1 scrollbar-thumb-coollabs scrollbar-track-coolgray-200 xl:overflow-visible;
+}
+
+.nav-side {
+ @apply absolute right-0 top-0 z-50 m-5 flex flex-wrap items-center justify-end space-x-2 bg-coolblack/40 text-white;
+}
+
+.add-icon {
+ @apply rounded p-1 transition duration-200;
+}
+
+.icons {
+ @apply rounded p-2 transition duration-200 hover:bg-coolgray-500 disabled:bg-coolblack disabled:text-coolgray-500 !important;
+}
+
+.arrow-right-applications {
+ @apply -ml-6 px-2 font-bold text-green-500;
+}
+
+.border-gradient {
+ border-bottom: 2px solid transparent;
+ -o-border-image: linear-gradient(
+ 0.25turn,
+ rgba(255, 249, 34),
+ rgba(255, 0, 128),
+ rgba(56, 2, 155, 0)
+ );
+ border-image: linear-gradient(
+ 0.25turn,
+ rgba(255, 249, 34),
+ rgba(255, 0, 128),
+ rgba(56, 2, 155, 0)
+ );
+ border-image-slice: 1;
+}
+.border-gradient-full {
+ border: 4px solid transparent;
+ -o-border-image: linear-gradient(
+ 0.25turn,
+ rgba(255, 249, 34),
+ rgba(255, 0, 128),
+ rgba(56, 2, 155, 0)
+ );
+ border-image: linear-gradient(
+ 0.25turn,
+ rgba(255, 249, 34),
+ rgba(255, 0, 128),
+ rgba(56, 2, 155, 0)
+ );
+ border-image-slice: 1;
+}
+
+.box-selection {
+ @apply min-w-[16rem] justify-center rounded border-transparent bg-coolgray-200 p-6 hover:border-transparent hover:bg-coolgray-400;
+}
+
+.lds-heart {
+ animation: lds-heart 1.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
+}
+@keyframes lds-heart {
+ 0% {
+ transform: scale(1);
+ }
+ 5% {
+ transform: scale(1.2);
+ }
+ 39% {
+ transform: scale(0.85);
+ }
+ 45% {
+ transform: scale(1);
+ }
+ 60% {
+ transform: scale(0.95);
+ }
+ 100% {
+ transform: scale(0.9);
+ }
+}
+
+.sub-menu {
+ @apply w-48 text-base font-bold hover:bg-coolgray-500 rounded p-2 hover:text-white text-stone-200 cursor-pointer;
+}
+
+.sub-menu-active {
+ @apply bg-coolgray-500 text-white;
+}
+
+.table tbody td,
+.table tbody th,
+.table thead th {
+ background-color: transparent;
+}
+.table * {
+ border: none;
+}
+
+.header {
+ @apply flex flex-row z-10 w-full py-5 px-5;
+}
+.burger {
+ @apply block m-[2px] h-[3px] w-5 rounded;
+}
+
+.bg-coollabs-gradient {
+ @apply bg-gradient-to-r from-purple-500 via-pink-500 to-red-500;
}
diff --git a/apps/client/src/lib/common.ts b/apps/client/src/lib/common.ts
new file mode 100644
index 0000000000..ab3b553703
--- /dev/null
+++ b/apps/client/src/lib/common.ts
@@ -0,0 +1,20 @@
+import { addToast } from './store';
+
+export const asyncSleep = (delay: number) => new Promise((resolve) => setTimeout(resolve, delay));
+
+export function errorNotification(error: any | { message: string }): void {
+ if (error instanceof Error) {
+ addToast({
+ message: error.message,
+ type: 'error'
+ });
+ } else {
+ addToast({
+ message: error,
+ type: 'error'
+ });
+ }
+}
+export function getRndInteger(min: number, max: number) {
+ return Math.floor(Math.random() * (max - min + 1)) + min;
+}
diff --git a/apps/client/src/lib/components/DeleteIcon.svelte b/apps/client/src/lib/components/DeleteIcon.svelte
new file mode 100644
index 0000000000..f04b3952ce
--- /dev/null
+++ b/apps/client/src/lib/components/DeleteIcon.svelte
@@ -0,0 +1,17 @@
+<svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="h-6 w-6"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+>
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <line x1="4" y1="7" x2="20" y2="7" />
+ <line x1="10" y1="11" x2="10" y2="17" />
+ <line x1="14" y1="11" x2="14" y2="17" />
+ <path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12" />
+ <path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3" />
+</svg>
diff --git a/apps/client/src/lib/components/NewResource.svelte b/apps/client/src/lib/components/NewResource.svelte
new file mode 100644
index 0000000000..b540f3d124
--- /dev/null
+++ b/apps/client/src/lib/components/NewResource.svelte
@@ -0,0 +1,155 @@
+<script lang="ts">
+ import { goto } from '$app/navigation';
+
+ async function newApplication() {
+ // const { id } = await post('/applications/new', {});
+ return await goto(`/applications/${id}`, { replaceState: true });
+ }
+ async function newService() {
+ // const { id } = await post('/services/new', {});
+ return await goto(`/services/${id}`, { replaceState: true });
+ }
+ async function newDatabase() {
+ // const { id } = await post('/databases/new', {});
+ return await goto(`/databases/${id}`, { replaceState: true });
+ }
+</script>
+
+<!-- svelte-ignore a11y-no-noninteractive-tabindex -->
+<div class="dropdown dropdown-bottom">
+ <slot>
+ <label for="new" tabindex="0" class="btn btn-sm text-sm bg-coollabs hover:bg-coollabs-100 w-64">
+ <svg
+ class="h-6 w-6"
+ xmlns="http://www.w3.org/2000/svg"
+ fill="none"
+ viewBox="0 0 24 24"
+ stroke="currentColor"
+ ><path
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ stroke-width="2"
+ d="M12 6v6m0 0v6m0-6h6m-6 0H6"
+ /></svg
+ > Create New Resource
+ </label>
+ </slot>
+
+ <ul id="new" tabindex="0" class="dropdown-content menu p-2 shadow bg-coolgray-300 rounded w-64">
+ <li>
+ <button
+ on:click={newApplication}
+ class="no-underline hover:bg-applications tracking-wide font-bold"
+ >
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="h-6 w-6"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentcolor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <rect x="4" y="4" width="6" height="6" rx="1" />
+ <rect x="4" y="14" width="6" height="6" rx="1" />
+ <rect x="14" y="14" width="6" height="6" rx="1" />
+ <line x1="14" y1="7" x2="20" y2="7" />
+ <line x1="17" y1="4" x2="17" y2="10" />
+ </svg>Application</button
+ >
+ </li>
+ <li>
+ <button on:click={newService} class="no-underline hover:bg-services tracking-wide font-bold">
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="h-6 w-6"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <path d="M7 18a4.6 4.4 0 0 1 0 -9a5 4.5 0 0 1 11 2h1a3.5 3.5 0 0 1 0 7h-12" />
+ </svg>Service</button
+ >
+ </li>
+ <li>
+ <button
+ on:click={newDatabase}
+ class="no-underline hover:bg-databases tracking-wide font-bold"
+ >
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="h-6 w-6"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <ellipse cx="12" cy="6" rx="8" ry="3" />
+ <path d="M4 6v6a8 3 0 0 0 16 0v-6" />
+ <path d="M4 12v6a8 3 0 0 0 16 0v-6" />
+ </svg>Database</button
+ >
+ </li>
+ <li>
+ <a href="/sources/new" class="no-underline hover:bg-sources tracking-wide font-bold">
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="h-6 w-6"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <circle cx="6" cy="6" r="2" />
+ <circle cx="18" cy="18" r="2" />
+ <path d="M11 6h5a2 2 0 0 1 2 2v8" />
+ <polyline points="14 9 11 6 14 3" />
+ <path d="M13 18h-5a2 2 0 0 1 -2 -2v-8" />
+ <polyline points="10 15 13 18 10 21" />
+ </svg>Git Source</a
+ >
+ </li>
+ <li>
+ <a
+ href="/destinations/new"
+ class="no-underline hover:bg-destinations tracking-wide font-bold"
+ >
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="h-6 w-6"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <path
+ d="M22 12.54c-1.804 -.345 -2.701 -1.08 -3.523 -2.94c-.487 .696 -1.102 1.568 -.92 2.4c.028 .238 -.32 1.002 -.557 1h-14c0 5.208 3.164 7 6.196 7c4.124 .022 7.828 -1.376 9.854 -5c1.146 -.101 2.296 -1.505 2.95 -2.46z"
+ />
+ <path d="M5 10h3v3h-3z" />
+ <path d="M8 10h3v3h-3z" />
+ <path d="M11 10h3v3h-3z" />
+ <path d="M8 7h3v3h-3z" />
+ <path d="M11 7h3v3h-3z" />
+ <path d="M11 4h3v3h-3z" />
+ <path d="M4.571 18c1.5 0 2.047 -.074 2.958 -.78" />
+ <line x1="10" y1="16" x2="10" y2="16.01" />
+ </svg>Destination</a
+ >
+ </li>
+ </ul>
+</div>
diff --git a/apps/client/src/lib/components/Toast.svelte b/apps/client/src/lib/components/Toast.svelte
new file mode 100644
index 0000000000..bb34929cdf
--- /dev/null
+++ b/apps/client/src/lib/components/Toast.svelte
@@ -0,0 +1,64 @@
+<script>
+ import { createEventDispatcher } from 'svelte';
+ const dispatch = createEventDispatcher();
+ export let type = 'info';
+ function success() {
+ if (type === 'success') {
+ return 'bg-dark lg:bg-primary';
+ }
+ }
+</script>
+
+<!-- svelte-ignore a11y-click-events-have-key-events -->
+<div
+ on:click={() => dispatch('click')}
+ on:mouseover={() => dispatch('pause')}
+ on:focus={() => dispatch('pause')}
+ on:mouseout={() => dispatch('resume')}
+ on:blur={() => dispatch('resume')}
+ class={` flex flex-row justify-center alert shadow-lg text-white hover:scale-105 transition-all duration-100 cursor-pointer rounded ${success()}`}
+ class:alert-error={type === 'error'}
+ class:alert-info={type === 'info'}
+>
+ {#if type === 'success'}
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="stroke-current flex-shrink-0 h-6 w-6"
+ fill="none"
+ viewBox="0 0 24 24"
+ ><path
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ stroke-width="2"
+ d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"
+ /></svg
+ >
+ {:else if type === 'error'}
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="stroke-current flex-shrink-0 h-6 w-6"
+ fill="none"
+ viewBox="0 0 24 24"
+ ><path
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ stroke-width="2"
+ d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"
+ /></svg
+ >
+ {:else if type === 'info'}
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ fill="none"
+ viewBox="0 0 24 24"
+ class="stroke-current flex-shrink-0 w-6 h-6"
+ ><path
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ stroke-width="2"
+ d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
+ /></svg
+ >
+ {/if}
+ <slot />
+</div>
diff --git a/apps/client/src/lib/components/Toasts.svelte b/apps/client/src/lib/components/Toasts.svelte
new file mode 100644
index 0000000000..929189bcb4
--- /dev/null
+++ b/apps/client/src/lib/components/Toasts.svelte
@@ -0,0 +1,25 @@
+<script lang="ts">
+ import Toast from './Toast.svelte';
+ import { dismissToast, pauseToast, resumeToast, toasts } from '$lib/store';
+</script>
+
+{#if $toasts.length > 0}
+ <section>
+ <article class="toast toast-top toast-center rounded-none w-2/3 lg:w-[20rem]" role="alert">
+ {#each $toasts as toast (toast.id)}
+ <Toast
+ type={toast.type}
+ on:resume={() => resumeToast(toast.id)}
+ on:pause={() => pauseToast(toast.id)}
+ on:click={() => dismissToast(toast.id)}>{@html toast.message}</Toast
+ >
+ {/each}
+ </article>
+ </section>
+{/if}
+
+<style lang="postcss">
+ section {
+ @apply fixed top-0 left-0 right-0 w-full flex flex-col mt-4 justify-center z-[1000];
+ }
+</style>
diff --git a/apps/client/src/lib/components/Tooltip.svelte b/apps/client/src/lib/components/Tooltip.svelte
new file mode 100644
index 0000000000..e0591a9d4c
--- /dev/null
+++ b/apps/client/src/lib/components/Tooltip.svelte
@@ -0,0 +1,10 @@
+<script lang="ts">
+ import { Tooltip } from 'flowbite-svelte';
+ export let placement = 'bottom';
+ export let color = 'bg-coollabs';
+ export let triggeredBy = '#tooltip-default';
+</script>
+
+<Tooltip {triggeredBy} {placement} arrow={false} defaultClass={color + ' font-thin text-xs text-left border-none p-2'} style="custom"
+ ><slot /></Tooltip
+>
diff --git a/apps/client/src/lib/components/UpdateAvailable.svelte b/apps/client/src/lib/components/UpdateAvailable.svelte
new file mode 100644
index 0000000000..bda1f02cc0
--- /dev/null
+++ b/apps/client/src/lib/components/UpdateAvailable.svelte
@@ -0,0 +1,206 @@
+<script lang="ts">
+ import { dev } from '$app/environment';
+ import {
+ addToast,
+ appSession,
+ features,
+ updateLoading,
+ isUpdateAvailable,
+ latestVersion
+ } from '$lib/store';
+ import { asyncSleep, errorNotification } from '$lib/common';
+ import { onMount } from 'svelte';
+ import Tooltip from './Tooltip.svelte';
+
+ let updateStatus: any = {
+ found: false,
+ loading: false,
+ success: null
+ };
+ async function update() {
+ updateStatus.loading = true;
+ try {
+ if (dev) {
+ localStorage.setItem('lastVersion', $appSession.version);
+ await asyncSleep(1000);
+ updateStatus.loading = false;
+ return window.location.reload();
+ } else {
+ localStorage.setItem('lastVersion', $appSession.version);
+ // await post(`/update`, { type: 'update', latestVersion: $latestVersion });
+ addToast({
+ message: 'Update completed.<br><br>Waiting for the new version to start...',
+ type: 'success'
+ });
+
+ let reachable = false;
+ let tries = 0;
+ do {
+ await asyncSleep(4000);
+ try {
+ // await get(`/undead`);
+ reachable = true;
+ } catch (error) {
+ reachable = false;
+ }
+ if (reachable) break;
+ tries++;
+ } while (!reachable || tries < 120);
+ addToast({
+ message: 'New version reachable. Reloading...',
+ type: 'success'
+ });
+ updateStatus.loading = false;
+ updateStatus.success = true;
+ await asyncSleep(3000);
+ return window.location.reload();
+ }
+ } catch (error) {
+ updateStatus.success = false;
+ updateStatus.loading = false;
+ return errorNotification(error);
+ }
+ }
+ onMount(async () => {
+ if ($appSession.userId) {
+ const overrideVersion = $features.latestVersion;
+ if ($appSession.teamId === '0') {
+ if ($updateLoading === true) return;
+ try {
+ $updateLoading = true;
+ // const data = await get(`/update`);
+ if (overrideVersion || data?.isUpdateAvailable) {
+ $latestVersion = overrideVersion || data.latestVersion;
+ if (overrideVersion) {
+ $isUpdateAvailable = true;
+ } else {
+ $isUpdateAvailable = data.isUpdateAvailable;
+ }
+ }
+ } catch (error) {
+ return errorNotification(error);
+ } finally {
+ $updateLoading = false;
+ }
+ }
+ }
+ });
+</script>
+
+<div class="py-0 lg:py-2">
+ {#if $appSession.teamId === '0'}
+ {#if $isUpdateAvailable}
+ <button
+ id="update"
+ disabled={updateStatus.success === false}
+ on:click={update}
+ class="icons bg-coollabs-gradient text-white duration-75 hover:scale-105 w-full"
+ >
+ {#if updateStatus.loading}
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="lds-heart h-8 w-8 mx-auto"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <path
+ d="M19.5 13.572l-7.5 7.428l-7.5 -7.428m0 0a5 5 0 1 1 7.5 -6.566a5 5 0 1 1 7.5 6.572"
+ />
+ </svg>
+ {:else if updateStatus.success === null}
+ <div class="flex items-center justify-center space-x-2">
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="h-8 w-8"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <circle cx="12" cy="12" r="9" />
+ <line x1="12" y1="8" x2="8" y2="12" />
+ <line x1="12" y1="8" x2="12" y2="16" />
+ <line x1="16" y1="12" x2="12" y2="8" />
+ </svg>
+ <span class="flex lg:hidden">Update available</span>
+ </div>
+ {:else if updateStatus.success}
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" class="h-8 w-8"
+ ><path
+ fill="#DD2E44"
+ d="M11.626 7.488c-.112.112-.197.247-.268.395l-.008-.008L.134 33.141l.011.011c-.208.403.14 1.223.853 1.937.713.713 1.533 1.061 1.936.853l.01.01L28.21 24.735l-.008-.009c.147-.07.282-.155.395-.269 1.562-1.562-.971-6.627-5.656-11.313-4.687-4.686-9.752-7.218-11.315-5.656z"
+ /><path
+ fill="#EA596E"
+ d="M13 12L.416 32.506l-.282.635.011.011c-.208.403.14 1.223.853 1.937.232.232.473.408.709.557L17 17l-4-5z"
+ /><path
+ fill="#A0041E"
+ d="M23.012 13.066c4.67 4.672 7.263 9.652 5.789 11.124-1.473 1.474-6.453-1.118-11.126-5.788-4.671-4.672-7.263-9.654-5.79-11.127 1.474-1.473 6.454 1.119 11.127 5.791z"
+ /><path
+ fill="#AA8DD8"
+ d="M18.59 13.609c-.199.161-.459.245-.734.215-.868-.094-1.598-.396-2.109-.873-.541-.505-.808-1.183-.735-1.862.128-1.192 1.324-2.286 3.363-2.066.793.085 1.147-.17 1.159-.292.014-.121-.277-.446-1.07-.532-.868-.094-1.598-.396-2.11-.873-.541-.505-.809-1.183-.735-1.862.13-1.192 1.325-2.286 3.362-2.065.578.062.883-.057 1.012-.134.103-.063.144-.123.148-.158.012-.121-.275-.446-1.07-.532-.549-.06-.947-.552-.886-1.102.059-.549.55-.946 1.101-.886 2.037.219 2.973 1.542 2.844 2.735-.13 1.194-1.325 2.286-3.364 2.067-.578-.063-.88.057-1.01.134-.103.062-.145.123-.149.157-.013.122.276.446 1.071.532 2.037.22 2.973 1.542 2.844 2.735-.129 1.192-1.324 2.286-3.362 2.065-.578-.062-.882.058-1.012.134-.104.064-.144.124-.148.158-.013.121.276.446 1.07.532.548.06.947.553.886 1.102-.028.274-.167.511-.366.671z"
+ /><path
+ fill="#77B255"
+ d="M30.661 22.857c1.973-.557 3.334.323 3.658 1.478.324 1.154-.378 2.615-2.35 3.17-.77.216-1.001.584-.97.701.034.118.425.312 1.193.095 1.972-.555 3.333.325 3.657 1.479.326 1.155-.378 2.614-2.351 3.17-.769.216-1.001.585-.967.702.033.117.423.311 1.192.095.53-.149 1.084.16 1.233.691.148.532-.161 1.084-.693 1.234-1.971.555-3.333-.323-3.659-1.479-.324-1.154.379-2.613 2.353-3.169.77-.217 1.001-.584.967-.702-.032-.117-.422-.312-1.19-.096-1.974.556-3.334-.322-3.659-1.479-.325-1.154.378-2.613 2.351-3.17.768-.215.999-.585.967-.701-.034-.118-.423-.312-1.192-.096-.532.15-1.083-.16-1.233-.691-.149-.53.161-1.082.693-1.232z"
+ /><path
+ fill="#AA8DD8"
+ d="M23.001 20.16c-.294 0-.584-.129-.782-.375-.345-.432-.274-1.061.156-1.406.218-.175 5.418-4.259 12.767-3.208.547.078.927.584.849 1.131-.078.546-.58.93-1.132.848-6.493-.922-11.187 2.754-11.233 2.791-.186.148-.406.219-.625.219z"
+ /><path
+ fill="#77B255"
+ d="M5.754 16c-.095 0-.192-.014-.288-.042-.529-.159-.829-.716-.67-1.245 1.133-3.773 2.16-9.794.898-11.364-.141-.178-.354-.353-.842-.316-.938.072-.849 2.051-.848 2.071.042.551-.372 1.031-.922 1.072-.559.034-1.031-.372-1.072-.923-.103-1.379.326-4.035 2.692-4.214 1.056-.08 1.933.287 2.552 1.057 2.371 2.951-.036 11.506-.542 13.192-.13.433-.528.712-.958.712z"
+ /><circle fill="#5C913B" cx="25.5" cy="9.5" r="1.5" /><circle
+ fill="#9266CC"
+ cx="2"
+ cy="18"
+ r="2"
+ /><circle fill="#5C913B" cx="32.5" cy="19.5" r="1.5" /><circle
+ fill="#5C913B"
+ cx="23.5"
+ cy="31.5"
+ r="1.5"
+ /><circle fill="#FFCC4D" cx="28" cy="4" r="2" /><circle
+ fill="#FFCC4D"
+ cx="32.5"
+ cy="8.5"
+ r="1.5"
+ /><circle fill="#FFCC4D" cx="29.5" cy="12.5" r="1.5" /><circle
+ fill="#FFCC4D"
+ cx="7.5"
+ cy="23.5"
+ r="1.5"
+ /></svg
+ >
+ {:else}
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" class="h-9 w-8"
+ ><path
+ fill="#FFCC4D"
+ d="M36 18c0 9.941-8.059 18-18 18S0 27.941 0 18 8.059 0 18 0s18 8.059 18 18"
+ /><path
+ fill="#664500"
+ d="M22 27c0 2.763-1.791 3-4 3-2.21 0-4-.237-4-3 0-2.761 1.79-6 4-6 2.209 0 4 3.239 4 6zm8-12c-.124 0-.25-.023-.371-.072-5.229-2.091-7.372-5.241-7.461-5.374-.307-.46-.183-1.081.277-1.387.459-.306 1.077-.184 1.385.274.019.027 1.93 2.785 6.541 4.629.513.206.763.787.558 1.3-.157.392-.533.63-.929.63zM6 15c-.397 0-.772-.238-.929-.629-.205-.513.044-1.095.557-1.3 4.612-1.844 6.523-4.602 6.542-4.629.308-.456.929-.577 1.387-.27.457.308.581.925.275 1.383-.089.133-2.232 3.283-7.46 5.374C6.25 14.977 6.124 15 6 15z"
+ /><path fill="#5DADEC" d="M24 16h4v19l-4-.046V16zM8 35l4-.046V16H8v19z" /><path
+ fill="#664500"
+ d="M14.999 18c-.15 0-.303-.034-.446-.105-3.512-1.756-7.07-.018-7.105 0-.495.249-1.095.046-1.342-.447-.247-.494-.047-1.095.447-1.342.182-.09 4.498-2.197 8.895 0 .494.247.694.848.447 1.342-.176.35-.529.552-.896.552zm14 0c-.15 0-.303-.034-.446-.105-3.513-1.756-7.07-.018-7.105 0-.494.248-1.094.047-1.342-.447-.247-.494-.047-1.095.447-1.342.182-.09 4.501-2.196 8.895 0 .494.247.694.848.447 1.342-.176.35-.529.552-.896.552z"
+ /><ellipse fill="#5DADEC" cx="18" cy="34" rx="18" ry="2" /><ellipse
+ fill="#E75A70"
+ cx="18"
+ cy="27"
+ rx="3"
+ ry="2"
+ /></svg
+ >
+ {/if}
+ </button>
+ <Tooltip triggeredBy="#update" placement="right" color="bg-coolgray-200 text-white"
+ >New Version Available!</Tooltip
+ >
+ {/if}
+ {/if}
+</div>
diff --git a/apps/client/src/lib/components/svg/applications/ApplicationIcons.svelte b/apps/client/src/lib/components/svg/applications/ApplicationIcons.svelte
new file mode 100644
index 0000000000..387653c87c
--- /dev/null
+++ b/apps/client/src/lib/components/svg/applications/ApplicationIcons.svelte
@@ -0,0 +1,47 @@
+<script lang="ts">
+ import * as Icons from '$lib/components/svg/applications';
+ export let application: any;
+ export let isAbsolute = true;
+</script>
+
+{#if application.buildPack?.toLowerCase() === 'rust'}
+ <Icons.Rust {isAbsolute} />
+{:else if application.buildPack?.toLowerCase() === 'node'}
+ <Icons.Nodejs {isAbsolute} />
+{:else if application.buildPack?.toLowerCase() === 'react'}
+ <Icons.React {isAbsolute} />
+{:else if application.buildPack?.toLowerCase() === 'svelte'}
+ <Icons.Svelte {isAbsolute} />
+{:else if application.buildPack?.toLowerCase() === 'vuejs'}
+ <Icons.Vuejs {isAbsolute} />
+{:else if application.buildPack?.toLowerCase() === 'php'}
+ <Icons.Php {isAbsolute} />
+{:else if application.buildPack?.toLowerCase() === 'python'}
+ <Icons.Python {isAbsolute} />
+{:else if application.buildPack?.toLowerCase() === 'static'}
+ <Icons.Static {isAbsolute} />
+{:else if application.buildPack?.toLowerCase() === 'nestjs'}
+ <Icons.Nestjs {isAbsolute} />
+{:else if application.buildPack?.toLowerCase() === 'nuxtjs'}
+ <Icons.Nuxtjs {isAbsolute} />
+{:else if application.buildPack?.toLowerCase() === 'nextjs'}
+ <Icons.Nextjs {isAbsolute} />
+{:else if application.buildPack?.toLowerCase() === 'gatsby'}
+ <Icons.Gatsby {isAbsolute} />
+{:else if application.buildPack?.toLowerCase() === 'docker'}
+ <Icons.Docker {isAbsolute} />
+{:else if application.buildPack?.toLowerCase() === 'astro'}
+ <Icons.Astro {isAbsolute} />
+{:else if application.buildPack?.toLowerCase() === 'eleventy'}
+ <Icons.Eleventy {isAbsolute} />
+{:else if application.buildPack?.toLowerCase() === 'deno'}
+ <Icons.Deno {isAbsolute} />
+{:else if application.buildPack?.toLowerCase() === 'laravel'}
+ <Icons.Laravel {isAbsolute} />
+{:else if application.buildPack?.toLowerCase() === 'heroku'}
+ <Icons.Heroku {isAbsolute} />
+{:else if application.buildPack?.toLowerCase() === 'compose'}
+ <Icons.Compose {isAbsolute} />
+{:else if application.simpleDockerfile}
+ <Icons.Docker {isAbsolute} />
+{/if}
diff --git a/apps/client/src/lib/components/svg/applications/Astro.svelte b/apps/client/src/lib/components/svg/applications/Astro.svelte
new file mode 100644
index 0000000000..2344372ab6
--- /dev/null
+++ b/apps/client/src/lib/components/svg/applications/Astro.svelte
@@ -0,0 +1,25 @@
+<script lang="ts">
+ export let isAbsolute = true;
+</script>
+
+<svg
+ class={isAbsolute ? 'absolute top-0 left-0 -m-6 h-14 w-14' : 'mx-auto w-8 h-8'}
+ viewBox="0 0 256 256"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+>
+ <path
+ id="a"
+ fill="#302649"
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ d="M163.008 18.929c1.944 2.413 2.935 5.67 4.917 12.181l43.309 142.27a180.277 180.277 0 00-51.778-17.53l-28.198-95.29a3.67 3.67 0 00-7.042.01l-27.857 95.232a180.225 180.225 0 00-52.01 17.557l43.52-142.281c1.99-6.502 2.983-9.752 4.927-12.16a15.999 15.999 0 016.484-4.798c2.872-1.154 6.271-1.154 13.07-1.154h31.085c6.807 0 10.211 0 13.086 1.157a16.004 16.004 0 016.487 4.806z"
+ />
+ <path
+ id="flame"
+ fill="#EF661E"
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ d="M168.19 180.151c-7.139 6.105-21.39 10.268-37.804 10.268-20.147 0-37.033-6.272-41.513-14.707-1.602 4.835-1.961 10.367-1.961 13.902 0 0-1.056 17.355 11.015 29.426 0-6.268 5.081-11.349 11.349-11.349 10.743 0 10.731 9.373 10.721 16.977v.679c0 11.542 7.054 21.436 17.086 25.606a23.27 23.27 0 01-2.339-10.2c0-11.008 6.463-15.107 13.974-19.87 5.976-3.79 12.616-8.001 17.192-16.449a31.024 31.024 0 003.743-14.82c0-3.299-.513-6.479-1.463-9.463z"
+ />
+</svg>
diff --git a/apps/client/src/lib/components/svg/applications/Compose.svelte b/apps/client/src/lib/components/svg/applications/Compose.svelte
new file mode 100644
index 0000000000..f0482e7760
--- /dev/null
+++ b/apps/client/src/lib/components/svg/applications/Compose.svelte
@@ -0,0 +1,9 @@
+<script lang="ts">
+ export let isAbsolute = false;
+</script>
+
+<img
+ alt="docker compose logo"
+ class={isAbsolute ? 'w-16 h-16 absolute top-0 left-0 -m-8' : 'w-8 h-8 mx-auto'}
+ src="/icons/compose.png"
+/>
diff --git a/apps/client/src/lib/components/svg/applications/Deno.svelte b/apps/client/src/lib/components/svg/applications/Deno.svelte
new file mode 100644
index 0000000000..25eee8132d
--- /dev/null
+++ b/apps/client/src/lib/components/svg/applications/Deno.svelte
@@ -0,0 +1,30 @@
+<script lang="ts">
+ export let isAbsolute = true;
+</script>
+
+<svg
+ class={isAbsolute
+ ? 'absolute top-0 left-0 -m-4 h-10 w-10 text-white-500'
+ : 'mx-auto w-8 h-8 text-white-500'}
+ xmlns="http://www.w3.org/2000/svg"
+ aria-hidden="true"
+ focusable="false"
+ data-prefix="fab"
+ data-icon="deno"
+ role="img"
+ width="256.000000pt"
+ height="256.000000pt"
+ viewBox="0 0 1024.000000 1024.000000"
+ preserveAspectRatio="xMidYMid meet"
+>
+ <metadata> Created by potrace 1.15, written by Peter Selinger 2001-2017 </metadata>
+ <g transform="translate(0.000000,1024.000000) scale(0.100000,-0.100000)" fill="#ffffff">
+ <path
+ d="M4720 9174 c-19 -2 -80 -9 -135 -14 -782 -82 -1552 -413 -2180 -939 -116 -96 -380 -360 -476 -476 -520 -621 -824 -1318 -936 -2143 -25 -183 -25 -801 0 -984 112 -825 416 -1522 936 -2143 96 -116 360 -380 476 -476 621 -520 1318 -824 2143 -936 183 -25 801 -25 984 0 825 112 1522 416 2143 936 116 96 380 360 476 476 520 621 824 1318 936 2143 25 183 25 801 0 984 -112 825 -416 1522 -936 2143 -96 116 -360 380 -476 476 -619 518 -1323 826 -2137 935 -88 12 -216 17 -453 19 -181 2 -346 1 -365 -1z m50 -432 c0 -117 8 -371 19 -612 6 -118 13 -287 16 -375 11 -312 44 -1131 49 -1204 l5 -73 -45 5 c-25 2 -48 8 -52 11 -3 4 -10 73 -14 154 -18 356 -77 1737 -83 1939 l-6 222 28 4 c15 2 40 5 56 6 l27 1 0 -78z m957 24 c1 -1 4 -303 7 -671 4 -369 9 -700 12 -736 3 -37 2 -69 -3 -71 -4 -3 -29 -3 -54 0 l-46 4 -7 291 c-4 161 -9 339 -11 397 -8 177 -15 778 -9 793 4 11 15 12 57 5 29 -6 53 -11 54 -12z m-2313 -335 c6 -9 53 -560 111 -1281 19 -245 38 -469 41 -497 5 -51 4 -53 -28 -73 -18 -11 -36 -20 -40 -20 -3 0 -9 26 -12 58 -14 130 -68 758 -106 1212 -22 267 -42 506 -45 532 -5 44 -4 48 22 62 32 17 50 20 57 7z m2753 -201 c28 -10 31 -15 37 -72 10 -100 7 -578 -4 -578 -29 0 -89 34 -94 53 -3 12 -6 154 -6 315 0 325 -4 306 67 282z m-1847 -47 c0 -27 7 -176 15 -333 8 -157 17 -356 21 -442 7 -174 9 -168 -58 -172 -33 -1 -33 -1 -35 49 -2 28 -7 115 -13 195 -5 80 -17 253 -25 385 -8 132 -18 263 -21 291 -6 50 -5 52 22 62 16 6 44 11 62 11 32 1 32 1 32 -46z m2774 -137 l34 -14 7 -134 c3 -73 5 -231 3 -350 l-3 -218 -42 21 -42 20 -3 332 c-2 183 -1 338 1 345 4 15 4 15 45 -2z m-1826 -131 c6 -6 20 -491 21 -737 l1 -148 -47 7 c-27 3 -49 6 -50 7 -3 2 -33 743 -33 815 l0 74 51 -6 c29 -4 54 -9 57 -12z m2303 -71 c12 -14 14 -233 17 -1441 3 -1387 3 -1423 -15 -1423 -11 0 -26 6 -35 13 -15 11 -17 132 -22 1317 -4 718 -9 1370 -12 1449 l-6 144 29 -21 c17 -12 36 -29 44 -38z m-897 -205 c5 -4 10 -61 11 -126 5 -221 6 -1576 1 -1580 -2 -2 -20 3 -40 11 l-36 15 0 851 0 850 28 -6 c15 -4 31 -10 36 -15z m-2760 -56 c3 -27 8 -88 11 -138 3 -49 10 -161 16 -248 12 -176 10 -187 -47 -187 -30 0 -34 3 -38 33 -10 59 -45 551 -40 559 5 7 57 25 81 27 6 1 14 -20 17 -46z m-1654 -255 c11 -106 33 -328 49 -493 17 -165 31 -305 31 -311 0 -12 -77 -50 -85 -42 -5 5 -105 890 -105 930 0 24 77 125 87 114 3 -2 13 -91 23 -198z m3921 -105 l29 -17 1 -216 c1 -118 3 -250 3 -293 2 -90 -9 -105 -63 -86 l-31 11 0 86 c0 48 -3 187 -7 310 l-6 222 23 0 c12 0 35 -8 51 -17z m-3482 -388 c18 -192 47 -516 66 -720 l34 -370 -39 -39 -38 -39 -7 79 c-4 44 -24 248 -45 454 -21 206 -51 505 -66 664 l-28 288 39 36 c35 33 39 34 46 16 4 -10 21 -176 38 -369z m-749 -121 c22 -197 80 -721 130 -1164 50 -443 97 -870 106 -950 8 -80 22 -201 30 -270 14 -117 14 -125 -2 -137 -24 -18 -34 -16 -34 5 0 9 -9 85 -20 167 -18 137 -48 369 -115 890 -14 105 -41 314 -60 465 -20 151 -49 376 -65 500 -16 124 -43 336 -60 473 -18 136 -29 257 -26 270 7 27 66 121 72 115 2 -3 22 -166 44 -364z m-306 -431 c15 -120 43 -339 62 -488 19 -148 43 -333 54 -410 l19 -140 -21 -18 c-12 -10 -24 -14 -28 -10 -4 4 -12 44 -18 88 -6 44 -43 301 -83 570 l-71 490 23 68 c12 37 25 67 28 67 4 0 19 -98 35 -217z m5490 131 c14 -14 16 -76 16 -535 l0 -519 -28 0 c-61 0 -60 -15 -64 553 l-3 517 32 0 c17 0 39 -7 47 -16z m-2189 -179 c226 -34 423 -97 618 -197 126 -65 186 -110 326 -244 208 -199 336 -373 456 -619 175 -358 243 -675 329 -1525 39 -381 90 -1072 101 -1355 3 -82 10 -217 16 -300 11 -176 24 -152 -131 -227 -215 -104 -422 -176 -695 -243 -334 -82 -550 -108 -880 -109 l-240 -1 2 115 c0 63 6 210 12 325 30 557 24 1260 -15 1650 -22 224 -65 496 -89 556 -5 13 18 24 117 58 181 63 338 142 362 181 43 74 -34 180 -132 180 -17 0 -68 -18 -115 -39 -224 -103 -673 -224 -932 -251 -179 -19 -457 -8 -650 27 -105 19 -293 90 -450 171 -181 94 -292 219 -325 367 -18 80 -13 240 10 330 25 99 95 243 159 327 285 375 873 700 1476 814 192 36 464 40 670 9z m3085 -31 c36 -15 40 -19 40 -53 2 -273 -4 -897 -9 -923 -1 -9 -53 -10 -75 -2 -14 5 -16 59 -16 500 0 316 4 494 10 494 5 0 28 -7 50 -16z m437 -549 l36 -15 -7 -828 c-8 -1055 -9 -1086 -47 -1177 -62 -149 -59 -179 -53 475 2 327 7 658 9 735 2 77 4 294 5 483 0 228 3 342 10 342 6 0 27 -7 47 -15z m-6014 -249 c6 -81 4 -89 -25 -153 l-32 -68 -12 100 c-19 160 -19 167 19 191 17 12 35 20 38 18 3 -2 9 -42 12 -88z m-618 -603 c9 -82 79 -626 115 -893 54 -413 58 -472 34 -447 -3 3 -26 142 -50 309 -156 1078 -155 1071 -142 1079 27 18 36 8 43 -48z m720 -458 c6 -25 35 -296 35 -329 0 -28 -36 -54 -52 -38 -5 5 -18 90 -28 188 -11 99 -22 202 -25 229 l-6 50 35 -40 c20 -22 38 -49 41 -60z m807 -377 c11 -10 18 -50 27 -158 15 -195 17 -180 -24 -180 -42 0 -41 -3 -55 173 -14 179 -14 177 13 177 13 0 30 -6 39 -12z m792 -15 c2 -10 7 -70 11 -133 3 -63 12 -205 20 -315 28 -404 29 -455 12 -455 -19 0 -21 15 -43 300 -8 118 -23 304 -33 413 -9 109 -15 200 -12 202 11 12 40 3 45 -12z m-1880 -192 c6 -9 44 -329 91 -766 14 -132 28 -259 31 -283 l5 -43 -25 16 c-19 13 -26 26 -26 49 0 63 -43 478 -76 732 -19 144 -34 271 -34 283 0 21 24 29 34 12z m5771 -418 l-7 -418 -25 -37 c-57 -84 -54 -100 -51 368 l2 429 37 38 c20 20 40 37 44 37 3 0 3 -188 0 -417z m-925 -663 c5 -581 4 -626 -12 -644 -10 -11 -19 -18 -22 -15 -7 8 -17 1275 -9 1282 4 4 14 6 23 5 13 -3 16 -74 20 -628z m-3266 398 c7 -62 32 -359 42 -499 6 -94 6 -97 -16 -104 -12 -4 -26 -3 -30 2 -7 7 -29 229 -56 571 l-7 82 31 0 c29 0 31 -2 36 -52z m-786 -350 c7 -7 12 -32 12 -57 0 -26 12 -161 25 -301 38 -383 41 -435 24 -425 -26 15 -49 38 -44 44 2 4 -2 54 -10 111 -7 58 -16 152 -20 210 -4 58 -13 164 -21 235 -19 175 -18 195 4 195 10 0 23 -5 30 -12z m473 -673 c3 -22 9 -104 13 -182 7 -150 4 -161 -37 -130 -12 9 -20 47 -32 161 -21 206 -22 198 17 194 29 -3 33 -7 39 -43z"
+ />
+ <path
+ d="M3184 5756 c-104 -45 -112 -186 -14 -236 71 -36 143 -19 180 43 70 114 -44 246 -166 193z"
+ />
+ <path d="M3862 5660 c-96 -59 -96 -201 0 -260 95 -57 218 18 218 132 0 110 -126 184 -218 128z" />
+ </g>
+</svg>
diff --git a/apps/client/src/lib/components/svg/applications/Docker.svelte b/apps/client/src/lib/components/svg/applications/Docker.svelte
new file mode 100644
index 0000000000..74ba0ebf04
--- /dev/null
+++ b/apps/client/src/lib/components/svg/applications/Docker.svelte
@@ -0,0 +1,9 @@
+<script lang="ts">
+ export let isAbsolute = true;
+</script>
+
+
+<svg viewBox="0 0 128 128" class={isAbsolute ? 'absolute top-0 left-0 -m-5 h-12 w-12' : 'mx-auto w-10 h-10'}>
+ <path d="M124.8 52.1c-4.3-2.5-10-2.8-14.8-1.4-.6-5.2-4-9.7-8-12.9l-1.6-1.3-1.4 1.6c-2.7 3.1-3.5 8.3-3.1 12.3.3 2.9 1.2 5.9 3 8.3-1.4.8-2.9 1.9-4.3 2.4-2.8 1-5.9 2-8.9 2H79V49H66V24H51v12H26v13H13v14H1.8l-.2 1.5c-.5 6.4.3 12.6 3 18.5l1.1 2.2.1.2c7.9 13.4 21.7 19 36.8 19 29.2 0 53.3-13.1 64.3-40.6 7.4.4 15-1.8 18.6-8.9l.9-1.8-1.6-1zM28 39h10v11H28V39zm13.1 44.2c0 1.7-1.4 3.1-3.1 3.1-1.7 0-3.1-1.4-3.1-3.1 0-1.7 1.4-3.1 3.1-3.1 1.7.1 3.1 1.4 3.1 3.1zM28 52h10v11H28V52zm-13 0h11v11H15V52zm27.7 50.2c-15.8-.1-24.3-5.4-31.3-12.4 2.1.1 4.1.2 5.9.2 1.6 0 3.2 0 4.7-.1 3.9-.2 7.3-.7 10.1-1.5 2.3 5.3 6.5 10.2 14 13.8h-3.4zM51 63H40V52h11v11zm0-13H40V39h11v11zm13 13H53V52h11v11zm0-13H53V39h11v11zm0-13H53V26h11v11zm13 26H66V52h11v11zM38.8 81.2c-.2-.1-.5-.2-.8-.2-1.2 0-2.2 1-2.2 2.2 0 1.2 1 2.2 2.2 2.2s2.2-1 2.2-2.2c0-.3-.1-.6-.2-.8-.2.3-.4.5-.8.5-.5 0-.9-.4-.9-.9.1-.4.3-.7.5-.8z" fill="#019BC6"></path>
+ </svg>
+
diff --git a/apps/client/src/lib/components/svg/applications/Eleventy.svelte b/apps/client/src/lib/components/svg/applications/Eleventy.svelte
new file mode 100644
index 0000000000..b2d8d61226
--- /dev/null
+++ b/apps/client/src/lib/components/svg/applications/Eleventy.svelte
@@ -0,0 +1,13 @@
+<script lang="ts">
+ export let isAbsolute = true;
+</script>
+
+<svg
+ viewBox="0 0 128 128"
+ class={isAbsolute ? 'absolute top-0 left-0 -m-8 h-16 w-16' : 'mx-auto w-8 h-8'}
+>
+ <path fill="transparent" d="M18 0h92v128H18z" /><path
+ d="M55.3 36.3h.4c1.1 0 1.5.9 1.5 2.3v41.8c0 1.8-.4 3-1.6 3l-4.8-.1c-1.2 0-1.6-1-1.6-3V45.5l-2.1.5c-1 0-1.5-.8-1.5-2.2v-3c0-1.2.4-2 1.4-2.2l8.3-2.2zm16 36.1l.1 3 .6 1.3.6.6.8.1h2.2c1 0 1.7.8 1.7 2v1.9c0 1.2-.6 2-1.8 2h-3.2l-2.3-.1c-.7-.2-1.4-.5-2.2-1a5.7 5.7 0 01-2-1.9c-.4-.8-.8-1.9-1-3.2-.4-1.4-.5-3-.5-4.8v-16h-1.5c-1.1 0-1.6-1-1.6-2.4v-1.7c0-1.4.5-2.3 1.6-2.3h1.5v-.1l.6-12.3c0-1.5.5-2.5 1.6-2.5h3.1c1.2 0 1.6 1 1.6 2.5v12.3h3.6c1.1 0 1.6 1 1.6 2.4V54c0 1.4-.5 2.3-1.6 2.3h-3.6v16.2zm9.4 15.7c0-2 .3-3.2 1.5-3.2.2 0 .4 0 1.4.4l1.1.3.2-.1.4-.7c.3-.6.4-1.6.4-3l-.6-3.3L79 52.7v-.9c0-1.2.3-2 1.2-2H84c.5 0 1 .3 1.3.6.3.4.5.9.6 1.6l3.4 18 2.6-17.8c.1-.8.3-1.3.6-1.7.3-.4.8-.6 1.3-.6h2.6c1 0 1.4.8 1.4 2l-.1.8L92 82.2c-.5 2.5-1 4.4-1.5 5.7a6.6 6.6 0 01-2 3c-.9.6-1.9.9-3.1.9h-.3c-2 0-3.3-.6-4.1-1.7-.3-.4-.4-1-.4-2zM31.3 38.8l8.2-2.1h.5c1 0 1.4.8 1.4 2.2v41.9c0 1.8-.4 2.9-1.6 2.9h-4.7c-1.2 0-1.6-1.1-1.6-3v-35l-2 .6c-1.2 0-1.6-.9-1.6-2.2v-3c0-1.2.4-2 1.4-2.3z"
+ fill="#FFF"
+ />
+</svg>
diff --git a/apps/client/src/lib/components/svg/applications/Gatsby.svelte b/apps/client/src/lib/components/svg/applications/Gatsby.svelte
new file mode 100644
index 0000000000..d67a63417d
--- /dev/null
+++ b/apps/client/src/lib/components/svg/applications/Gatsby.svelte
@@ -0,0 +1,13 @@
+<script lang="ts">
+ export let isAbsolute = true;
+</script>
+
+<svg
+ class={isAbsolute ? 'absolute top-0 left-0 -m-4 h-10 w-10' : 'mx-auto w-8 h-8'}
+ viewBox="0 0 128 128"
+>
+ <path
+ fill="#64328B"
+ d="M64,0C28.7,0,0,28.7,0,64v0c0,35.3,28.7,64,64,64s64-28.7,64-64v0C128,28.7,99.3,0,64,0z M13.2,64L64,114.8 C35.9,114.8,13.2,92.1,13.2,64z M75.4,113.5l-60.9-61C19.7,30,39.9,13.2,64,13.2c16.6,0,31.3,7.9,40.5,20.2l-7.5,7.2 C89.7,30.2,77.7,23.5,64,23.5c-17.6,0-32.5,11.2-38.1,26.8C33.1,57,75.4,98.8,78.1,102c12.7-4.7,22.3-15.5,25.4-28.9H81.9v-9.4 l33,0.2C114.8,88.2,98,108.4,75.4,113.5z"
+ />
+</svg>
diff --git a/apps/client/src/lib/components/svg/applications/Heroku.svelte b/apps/client/src/lib/components/svg/applications/Heroku.svelte
new file mode 100644
index 0000000000..dff845bc2a
--- /dev/null
+++ b/apps/client/src/lib/components/svg/applications/Heroku.svelte
@@ -0,0 +1,15 @@
+<script lang="ts">
+ export let isAbsolute = true;
+</script>
+
+<svg
+ xmlns="http://www.w3.org/2000/svg"
+ class={isAbsolute ? 'absolute top-0 left-0 -m-4 h-10 w-10' : 'mx-auto w-8 h-8 '}
+ viewBox="0 0 72 80"
+>
+ <path
+ xmlns="http://www.w3.org/2000/svg"
+ fill="#430098"
+ d="M64.8,0 L7.2,0 C3.224,0 0,3.224 0,7.2 L0,72.8 C0,76.776 3.224,80 7.2,80 L64.8,80 C68.776,80 72,76.776 72,72.8 L72,7.2 C72,3.224 68.776,0 64.8,0 Z M18,68 L18,52 L27,60 L18,68 Z M46,68 L46,44.11 C45.961,42.243 45.062,40 41,40 C32.866,40 23.742,44.091 23.651,44.132 L18,46.692 L18,12 L26,12 L26,34.711 C29.994,33.411 35.577,32 41,32 C45.945,32 48.905,33.944 50.517,35.575 C53.958,39.055 54.005,43.488 54.0002258,44 L54.0002258,68 L46,68 Z M48,25 L40,25 C43.144,20.875 45.118,16.534 46,12 L54,12 C53.46,16.544 51.618,20.9 48,25 Z"
+ />
+</svg>
diff --git a/apps/client/src/lib/components/svg/applications/Laravel.svelte b/apps/client/src/lib/components/svg/applications/Laravel.svelte
new file mode 100644
index 0000000000..d13694a8c3
--- /dev/null
+++ b/apps/client/src/lib/components/svg/applications/Laravel.svelte
@@ -0,0 +1,14 @@
+<script lang="ts">
+ export let isAbsolute = true;
+</script>
+
+<svg
+ class={isAbsolute ? 'absolute top-0 left-0 -m-4 h-10 w-10' : 'mx-auto w-8 h-8'}
+ viewBox="0 0 50 52"
+ xmlns="http://www.w3.org/2000/svg"
+ ><title>Logomark</title><path
+ d="M49.626 11.564a.809.809 0 0 1 .028.209v10.972a.8.8 0 0 1-.402.694l-9.209 5.302V39.25c0 .286-.152.55-.4.694L20.42 51.01c-.044.025-.092.041-.14.058-.018.006-.035.017-.054.022a.805.805 0 0 1-.41 0c-.022-.006-.042-.018-.063-.026-.044-.016-.09-.03-.132-.054L.402 39.944A.801.801 0 0 1 0 39.25V6.334c0-.072.01-.142.028-.21.006-.023.02-.044.028-.067.015-.042.029-.085.051-.124.015-.026.037-.047.055-.071.023-.032.044-.065.071-.093.023-.023.053-.04.079-.06.029-.024.055-.05.088-.069h.001l9.61-5.533a.802.802 0 0 1 .8 0l9.61 5.533h.002c.032.02.059.045.088.068.026.02.055.038.078.06.028.029.048.062.072.094.017.024.04.045.054.071.023.04.036.082.052.124.008.023.022.044.028.068a.809.809 0 0 1 .028.209v20.559l8.008-4.611v-10.51c0-.07.01-.141.028-.208.007-.024.02-.045.028-.068.016-.042.03-.085.052-.124.015-.026.037-.047.054-.071.024-.032.044-.065.072-.093.023-.023.052-.04.078-.06.03-.024.056-.05.088-.069h.001l9.611-5.533a.801.801 0 0 1 .8 0l9.61 5.533c.034.02.06.045.09.068.025.02.054.038.077.06.028.029.048.062.072.094.018.024.04.045.054.071.023.039.036.082.052.124.009.023.022.044.028.068zm-1.574 10.718v-9.124l-3.363 1.936-4.646 2.675v9.124l8.01-4.611zm-9.61 16.505v-9.13l-4.57 2.61-13.05 7.448v9.216l17.62-10.144zM1.602 7.719v31.068L19.22 48.93v-9.214l-9.204-5.209-.003-.002-.004-.002c-.031-.018-.057-.044-.086-.066-.025-.02-.054-.036-.076-.058l-.002-.003c-.026-.025-.044-.056-.066-.084-.02-.027-.044-.05-.06-.078l-.001-.003c-.018-.03-.029-.066-.042-.1-.013-.03-.03-.058-.038-.09v-.001c-.01-.038-.012-.078-.016-.117-.004-.03-.012-.06-.012-.09v-.002-21.481L4.965 9.654 1.602 7.72zm8.81-5.994L2.405 6.334l8.005 4.609 8.006-4.61-8.006-4.608zm4.164 28.764l4.645-2.674V7.719l-3.363 1.936-4.646 2.675v20.096l3.364-1.937zM39.243 7.164l-8.006 4.609 8.006 4.609 8.005-4.61-8.005-4.608zm-.801 10.605l-4.646-2.675-3.363-1.936v9.124l4.645 2.674 3.364 1.937v-9.124zM20.02 38.33l11.743-6.704 5.87-3.35-8-4.606-9.211 5.303-8.395 4.833 7.993 4.524z"
+ fill="#FF2D20"
+ fill-rule="evenodd"
+ /></svg
+>
diff --git a/apps/client/src/lib/components/svg/applications/Nestjs.svelte b/apps/client/src/lib/components/svg/applications/Nestjs.svelte
new file mode 100644
index 0000000000..ac0f8af3f7
--- /dev/null
+++ b/apps/client/src/lib/components/svg/applications/Nestjs.svelte
@@ -0,0 +1,13 @@
+<script lang="ts">
+ export let isAbsolute = true;
+</script>
+
+<svg
+ class={isAbsolute ? 'absolute top-0 left-0 -m-4 h-10 w-10' : 'mx-auto w-8 h-8'}
+ viewBox="0 0 128 128"
+>
+ <path
+ fill="#DF234F"
+ d="M75.4,0.3c-0.9,0-1.8,0.2-2.6,0.5c1.7,1.1,2.6,2.6,3.1,4.3c0,0.2,0.1,0.4,0.1,0.6c0,0.2,0.1,0.4,0.1,0.6 c0.1,2.9-0.8,3.3-1.4,5c-1,2.2-0.7,4.6,0.5,6.5c0.1,0.2,0.2,0.5,0.4,0.7c-1.3-8.4,5.7-9.6,7-12.2c0.1-2.3-1.8-3.8-3.3-4.9 C77.8,0.5,76.6,0.3,75.4,0.3L75.4,0.3z M85.9,2.1c-0.1,0.8,0,0.6-0.1,1c0,0.3,0,0.6-0.1,0.9c-0.1,0.3-0.1,0.5-0.2,0.8 c-0.1,0.3-0.2,0.5-0.3,0.8C85.1,5.8,85,6,84.9,6.3c-0.1,0.1-0.2,0.3-0.3,0.4c-0.1,0.1-0.1,0.2-0.2,0.3c-0.2,0.2-0.3,0.5-0.5,0.7 c-0.2,0.2-0.4,0.4-0.6,0.6v0c-0.2,0.2-0.4,0.4-0.6,0.5c-0.7,0.5-1.5,0.9-2.2,1.4c-0.2,0.2-0.5,0.3-0.7,0.5 c-0.2,0.2-0.4,0.3-0.6,0.5c-0.2,0.2-0.4,0.4-0.6,0.6c-0.2,0.2-0.4,0.4-0.5,0.7c-0.2,0.2-0.3,0.5-0.5,0.7c-0.1,0.3-0.2,0.5-0.4,0.8 c-0.1,0.3-0.2,0.5-0.3,0.8c-0.1,0.3-0.2,0.6-0.2,0.8c0,0.1,0,0.3-0.1,0.4c0,0.1,0,0.3-0.1,0.4c0,0.3,0,0.6,0,0.8c0,0.2,0,0.4,0,0.6 c0,0.3,0,0.5,0.1,0.8c0,0.3,0.1,0.5,0.2,0.8c0.1,0.3,0.2,0.5,0.3,0.8c0.1,0.2,0.2,0.3,0.2,0.5l-7.6-2.9c-1.3-0.4-2.5-0.7-3.8-1 c-0.7-0.2-1.4-0.3-2.1-0.5c-2-0.4-4-0.7-6-0.9c-0.1,0-0.1,0-0.2,0c-2-0.2-3.9-0.3-5.9-0.3c-1.5,0-2.9,0.1-4.3,0.2 c-2,0.1-4,0.4-6,0.7c-0.5,0.1-1,0.2-1.5,0.3c-1,0.2-2,0.4-3,0.7c-0.5,0.1-1,0.3-1.5,0.4c-0.5,0.2-1,0.4-1.4,0.6 c-0.4,0.2-0.7,0.3-1.1,0.5c-0.1,0-0.1,0-0.2,0.1c-0.3,0.2-0.6,0.3-0.9,0.5c-0.1,0-0.2,0.1-0.2,0.1c-0.4,0.2-0.7,0.4-1,0.5 c-0.2,0.1-0.5,0.2-0.7,0.3c-0.1,0.1-0.2,0.1-0.3,0.2c-0.3,0.2-0.6,0.3-0.9,0.5c-0.3,0.2-0.6,0.3-0.8,0.5c-0.2,0.2-0.5,0.3-0.7,0.5 c0,0-0.1,0-0.1,0.1c-0.2,0.1-0.4,0.3-0.6,0.5c0,0,0,0-0.1,0.1c-0.2,0.1-0.3,0.3-0.5,0.4c-0.1,0-0.1,0.1-0.2,0.1 c-0.2,0.1-0.3,0.3-0.5,0.4c0,0.1-0.1,0.1-0.1,0.1c-0.2,0.2-0.4,0.4-0.6,0.6c0,0,0,0-0.1,0.1c-0.2,0.2-0.4,0.4-0.6,0.6 c0,0,0,0.1-0.1,0.1c-0.2,0.2-0.3,0.3-0.5,0.5c-0.1,0.1-0.2,0.1-0.2,0.2c-0.2,0.2-0.4,0.4-0.6,0.6c0,0.1-0.1,0.1-0.1,0.2 c-0.3,0.3-0.5,0.5-0.8,0.8c0,0-0.1,0.1-0.1,0.1c-0.5,0.6-1.1,1.1-1.7,1.6c-0.6,0.5-1.2,1-1.9,1.5c-0.7,0.5-1.3,0.9-2,1.3 c-0.7,0.4-1.4,0.7-2.1,1c-0.7,0.3-1.4,0.6-2.1,0.8c-1.4,0.3-2.8,0.9-4,1C7.6,33.9,7.3,34,7,34c-0.3,0.1-0.6,0.1-0.8,0.2 c-0.3,0.1-0.5,0.2-0.8,0.3c-0.3,0.1-0.5,0.2-0.8,0.4c-0.2,0.2-0.5,0.3-0.7,0.5c-0.2,0.2-0.5,0.4-0.7,0.6c-0.2,0.2-0.5,0.4-0.7,0.6 c-0.2,0.2-0.4,0.4-0.6,0.7c-0.2,0.3-0.4,0.5-0.5,0.8c-0.2,0.2-0.3,0.5-0.5,0.8c-0.1,0.3-0.3,0.6-0.4,0.9c-0.1,0.3-0.2,0.6-0.3,0.9 c-0.1,0.3-0.1,0.5-0.2,0.8c0,0,0,0.1,0,0.1c-0.1,0.3-0.1,0.7-0.1,0.9C0,42.4,0,42.6,0,42.8c0,0.1,0,0.3,0,0.4 c0,0.2,0.1,0.4,0.1,0.6c0.1,0.2,0.1,0.4,0.2,0.6v0c0.1,0.2,0.2,0.4,0.4,0.6c0.1,0.2,0.3,0.4,0.4,0.6c0.2,0.2,0.4,0.4,0.6,0.5 c0.2,0.2,0.4,0.4,0.6,0.5c0.8,0.7,1,0.9,2,1.5c0.2,0.1,0.3,0.2,0.5,0.3c0,0,0.1,0,0.1,0c0,0.1,0,0.1,0,0.2c0,0.3,0.1,0.5,0.2,0.8 c0.1,0.3,0.2,0.6,0.3,0.8c0.1,0.2,0.2,0.4,0.3,0.6c0,0.1,0.1,0.1,0.1,0.2c0.1,0.3,0.3,0.5,0.4,0.7c0.2,0.2,0.3,0.5,0.5,0.7 c0.2,0.2,0.4,0.4,0.6,0.6c0.2,0.2,0.4,0.4,0.6,0.6c0,0,0,0,0.1,0c0.2,0.2,0.4,0.3,0.6,0.5c0.2,0.2,0.5,0.3,0.7,0.4 c0.2,0.1,0.5,0.3,0.8,0.4c0.2,0.1,0.4,0.2,0.7,0.2c0,0,0.1,0,0.1,0.1c0.1,0,0.3,0.1,0.4,0.1c-0.1,1.8-0.1,3.5,0.1,4.1 c0.3,0.7,1.8-1.4,3.2-3.7c-0.2,2.3-0.3,5,0,5.8c0.4,0.8,2.3-1.8,4.1-4.6c23.4-5.4,44.8,10.8,47.1,33.7C65.4,87,61,85,58.9,85.5 c-1,2.4-2.7,5.6-5.4,7.5c0.2-2.2,0.1-4.4-0.3-6.6c-0.7,3-2.1,5.9-4.1,8.3c-3.1,0.2-6.3-1.3-7.9-3.6c-0.1-0.1-0.2-0.3-0.3-0.4 c-0.1-0.2-0.2-0.5-0.3-0.7c-0.1-0.2-0.2-0.5-0.2-0.7c0-0.2,0-0.5,0-0.7c0-0.2,0-0.3,0-0.5c0-0.2,0.1-0.5,0.2-0.7 c0.1-0.2,0.1-0.5,0.2-0.7c0.1-0.2,0.2-0.5,0.4-0.7c0.6-1.6,0.6-2.9-0.5-3.6c-0.2-0.1-0.4-0.2-0.6-0.3c-0.1,0-0.3-0.1-0.4-0.1 c-0.1,0-0.2-0.1-0.3-0.1c-0.2-0.1-0.5-0.1-0.7-0.2c-0.2-0.1-0.5-0.1-0.7-0.1c-0.2,0-0.5-0.1-0.7-0.1c-0.2,0-0.3,0-0.5,0 c-0.3,0-0.5,0-0.7,0.1c-0.2,0-0.5,0.1-0.7,0.1c-0.2,0.1-0.5,0.1-0.7,0.2c-0.2,0.1-0.4,0.2-0.7,0.3c-0.2,0.1-0.4,0.2-0.6,0.3 c-7.7,5-3.1,16.8,2.1,20.2c-2,0.4-4,0.8-4.6,1.2c0,0-0.1,0.1-0.1,0.1c1.4,0.9,2.9,1.6,4.5,2.2c2.1,0.7,4.4,1.3,5.4,1.6v0 c2.7,0.6,5.5,0.8,8.3,0.6c14.6-1,26.6-12.2,28.8-26.8c0.1,0.3,0.1,0.6,0.2,0.9c0.1,0.6,0.2,1.2,0.3,1.9v0c0.1,0.3,0.1,0.6,0.1,0.9 v0.1c0,0.3,0.1,0.6,0.1,0.9c0,0.4,0.1,0.7,0.1,1.1v0.5c0,0.2,0,0.4,0,0.5c0,0.2,0,0.4,0,0.6v0.5c0,0.2,0,0.4,0,0.7 c0,0.1,0,0.3,0,0.4c0,0.2,0,0.5,0,0.7c0,0.1,0,0.2,0,0.3c0,0.3-0.1,0.5-0.1,0.8c0,0.1,0,0.2,0,0.3c0,0.3-0.1,0.6-0.1,1v0v0 c-0.1,0.3-0.1,0.6-0.2,0.9v0.1c-0.1,0.3-0.1,0.6-0.2,0.9c0,0,0,0.1,0,0.1c-0.1,0.3-0.1,0.6-0.2,0.9v0.1c-0.1,0.3-0.2,0.6-0.3,0.9 c0,0,0,0.1,0,0.1c-0.1,0.3-0.2,0.7-0.3,1c-0.1,0.3-0.2,0.6-0.4,1c-0.1,0.3-0.2,0.7-0.4,1c-0.1,0.3-0.3,0.6-0.4,1h0 c-0.1,0.3-0.3,0.6-0.4,0.9c0,0.1-0.1,0.2-0.1,0.2c0,0,0,0.1-0.1,0.1c-2.1,4.3-5.3,8.1-9.3,11.1c-0.3,0.2-0.5,0.4-0.8,0.6 c-0.1,0.1-0.2,0.1-0.2,0.2c-0.2,0.2-0.5,0.3-0.7,0.5l0.1,0.2h0c0.5-0.1,0.9-0.1,1.4-0.2h0c0.9-0.1,1.7-0.3,2.6-0.5 c0.2,0,0.5-0.1,0.7-0.2c0.2,0,0.3-0.1,0.5-0.1c0.2,0,0.5-0.1,0.7-0.1c0.2-0.1,0.4-0.1,0.6-0.2c3.3-0.8,6.5-1.9,9.6-3.2 c-5.3,7.2-12.3,13-20.5,16.8c3.8-0.3,7.6-0.9,11.3-2c13.3-3.9,24.5-12.9,31.2-25c-1.4,7.6-4.4,14.9-8.9,21.3 c3.2-2.1,6.1-4.6,8.8-7.3c7.4-7.7,12.3-17.6,13.9-28.1c1.1,5.2,1.5,10.6,1,15.9c23.9-33.3,2-67.8-7.2-76.9c0-0.1-0.1-0.1-0.1-0.2 c0,0,0,0,0,0.1c0,0,0,0,0-0.1c0,0.4,0,0.8-0.1,1.2c-0.1,0.8-0.2,1.5-0.3,2.2c-0.2,0.7-0.4,1.5-0.6,2.2c-0.2,0.7-0.5,1.4-0.8,2.1 c-0.3,0.7-0.6,1.4-1,2c-0.4,0.6-0.8,1.3-1.2,1.9c-0.4,0.6-0.9,1.2-1.4,1.8c-0.5,0.6-1,1.1-1.6,1.7c-0.3,0.3-0.6,0.6-1,0.8 c-0.3,0.2-0.5,0.4-0.8,0.7c-0.6,0.5-1.2,0.9-1.9,1.3c-0.6,0.4-1.3,0.8-2,1.1c-0.7,0.3-1.4,0.6-2.1,0.9c-0.7,0.3-1.4,0.5-2.1,0.7 c-0.7,0.2-1.5,0.4-2.2,0.5c-0.8,0.1-1.5,0.2-2.2,0.3c-0.5,0-1.1,0.1-1.6,0.1c-0.8,0-1.5-0.1-2.2-0.1c-0.8-0.1-1.5-0.2-2.2-0.3 c-0.8-0.1-1.5-0.3-2.2-0.6h0c0.7-0.1,1.5-0.1,2.2-0.3c0.8-0.1,1.5-0.3,2.2-0.5c0.7-0.2,1.5-0.4,2.1-0.7c0.7-0.3,1.4-0.6,2.1-0.9 c0.7-0.3,1.3-0.7,2-1.1c0.6-0.4,1.3-0.9,1.9-1.3c0.6-0.5,1.2-1,1.7-1.5c0.6-0.5,1.1-1.1,1.6-1.6c0.5-0.6,1-1.2,1.4-1.8 c0.1-0.1,0.1-0.2,0.2-0.3c0.3-0.5,0.7-1.1,1-1.6c0.4-0.7,0.7-1.3,1-2c0.3-0.7,0.6-1.4,0.8-2.1c0.2-0.7,0.4-1.4,0.6-2.1 c0.1-0.8,0.3-1.5,0.3-2.2c0.1-0.8,0.1-1.5,0.1-2.2c0-0.5,0-1.1-0.1-1.6c-0.1-0.8-0.2-1.5-0.3-2.2c-0.1-0.8-0.3-1.5-0.5-2.2 c-0.2-0.7-0.5-1.4-0.7-2.1c-0.3-0.7-0.6-1.4-0.9-2c-0.4-0.7-0.7-1.3-1.1-2c-0.4-0.6-0.9-1.2-1.3-1.8c-0.5-0.6-1-1.1-1.5-1.7 c-0.3-0.3-0.6-0.6-0.9-0.8c-1.5-1.2-3-2.2-4.6-3.2c-0.2-0.1-0.4-0.2-0.7-0.3C87.9,2.8,86.9,2.5,85.9,2.1L85.9,2.1z"
+ />
+</svg>
diff --git a/apps/client/src/lib/components/svg/applications/Nextjs.svelte b/apps/client/src/lib/components/svg/applications/Nextjs.svelte
new file mode 100644
index 0000000000..9ed0227d13
--- /dev/null
+++ b/apps/client/src/lib/components/svg/applications/Nextjs.svelte
@@ -0,0 +1,14 @@
+<script lang="ts">
+ export let isAbsolute = true;
+</script>
+
+<svg
+ class={isAbsolute
+ ? 'absolute top-0 left-0 -m-4 h-10 w-10 fill-current text-blue-500'
+ : 'mx-auto w-8 h-8 fill-current text-blue-500'}
+ viewBox="0 0 128 128"
+>
+ <path
+ d="M64 0C28.7 0 0 28.7 0 64s28.7 64 64 64c11.2 0 21.7-2.9 30.8-7.9L48.4 55.3v36.6h-6.8V41.8h6.8l50.5 75.8C116.4 106.2 128 86.5 128 64c0-35.3-28.7-64-64-64zm22.1 84.6l-7.5-11.3V41.8h7.5v42.8z"
+ />
+</svg>
diff --git a/apps/client/src/lib/components/svg/applications/Nodejs.svelte b/apps/client/src/lib/components/svg/applications/Nodejs.svelte
new file mode 100644
index 0000000000..93140f08ff
--- /dev/null
+++ b/apps/client/src/lib/components/svg/applications/Nodejs.svelte
@@ -0,0 +1,18 @@
+<script lang="ts">
+ export let isAbsolute = true;
+</script>
+
+<svg
+ class={isAbsolute ? 'absolute top-0 left-0 -m-4 h-10 w-10 text-green-500' : 'mx-auto w-8 h-8 text-green-500'}
+ xmlns="http://www.w3.org/2000/svg"
+ aria-hidden="true"
+ focusable="false"
+ data-prefix="fab"
+ data-icon="node-js"
+ role="img"
+ viewBox="0 0 448 512"
+ ><path
+ fill="currentColor"
+ d="M224 508c-6.7 0-13.5-1.8-19.4-5.2l-61.7-36.5c-9.2-5.2-4.7-7-1.7-8 12.3-4.3 14.8-5.2 27.9-12.7 1.4-.8 3.2-.5 4.6.4l47.4 28.1c1.7 1 4.1 1 5.7 0l184.7-106.6c1.7-1 2.8-3 2.8-5V149.3c0-2.1-1.1-4-2.9-5.1L226.8 37.7c-1.7-1-4-1-5.7 0L36.6 144.3c-1.8 1-2.9 3-2.9 5.1v213.1c0 2 1.1 4 2.9 4.9l50.6 29.2c27.5 13.7 44.3-2.4 44.3-18.7V167.5c0-3 2.4-5.3 5.4-5.3h23.4c2.9 0 5.4 2.3 5.4 5.3V378c0 36.6-20 57.6-54.7 57.6-10.7 0-19.1 0-42.5-11.6l-48.4-27.9C8.1 389.2.7 376.3.7 362.4V149.3c0-13.8 7.4-26.8 19.4-33.7L204.6 9c11.7-6.6 27.2-6.6 38.8 0l184.7 106.7c12 6.9 19.4 19.8 19.4 33.7v213.1c0 13.8-7.4 26.7-19.4 33.7L243.4 502.8c-5.9 3.4-12.6 5.2-19.4 5.2zm149.1-210.1c0-39.9-27-50.5-83.7-58-57.4-7.6-63.2-11.5-63.2-24.9 0-11.1 4.9-25.9 47.4-25.9 37.9 0 51.9 8.2 57.7 33.8.5 2.4 2.7 4.2 5.2 4.2h24c1.5 0 2.9-.6 3.9-1.7s1.5-2.6 1.4-4.1c-3.7-44.1-33-64.6-92.2-64.6-52.7 0-84.1 22.2-84.1 59.5 0 40.4 31.3 51.6 81.8 56.6 60.5 5.9 65.2 14.8 65.2 26.7 0 20.6-16.6 29.4-55.5 29.4-48.9 0-59.6-12.3-63.2-36.6-.4-2.6-2.6-4.5-5.3-4.5h-23.9c-3 0-5.3 2.4-5.3 5.3 0 31.1 16.9 68.2 97.8 68.2 58.4-.1 92-23.2 92-63.4z"
+ />
+</svg>
diff --git a/apps/client/src/lib/components/svg/applications/Nuxtjs.svelte b/apps/client/src/lib/components/svg/applications/Nuxtjs.svelte
new file mode 100644
index 0000000000..cb2a66ff4e
--- /dev/null
+++ b/apps/client/src/lib/components/svg/applications/Nuxtjs.svelte
@@ -0,0 +1,24 @@
+<script lang="ts">
+ export let isAbsolute = true;
+</script>
+
+<svg
+ class={isAbsolute ? 'absolute top-0 left-0 -m-4 h-10 w-10' : 'mx-auto w-8 h-8'}
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 400 400"
+>
+ <g fill-rule="nonzero" transform="translate(0 50)" fill="none">
+ <path
+ d="M227.92099 83.45116l-13.6889 24.10141-46.8148-82.44693L23.7037 278.17052h97.3037c0 13.31084 10.61252 24.10142 23.70371 24.10142H23.70371c-8.46771 0-16.29145-4.59601-20.5246-12.05272-4.23315-7.4567-4.23272-16.64312.00114-24.0994L146.89383 13.05492c4.23415-7.45738 12.0596-12.05138 20.5284-12.05138 8.46878 0 16.29423 4.594 20.52839 12.05138l39.97037 70.39623z"
+ fill="#00C58E"
+ />
+ <path
+ d="M331.6642 266.11981l-90.05432-158.56724-13.6889-24.10141-13.68888 24.10141-90.04445 158.56724c-4.23385 7.45629-4.23428 16.64271-.00113 24.09941 4.23314 7.4567 12.05689 12.05272 20.5246 12.05272h166.4c8.46946 0 16.29644-4.591 20.532-12.04837 4.23555-7.45736 4.23606-16.64592.00132-24.10376h.01976zM144.7111 278.17052L227.921 131.65399l83.19012 146.51653h-166.4z"
+ fill="#FFF"
+ />
+ <path
+ d="M396.04938 290.22123c-4.23344 7.45557-12.05656 12.0507-20.52345 12.0507H311.1111c13.0912 0 23.7037-10.79057 23.7037-24.10141h40.66173L260.09877 74.98553l-18.4889 32.56704L227.921 83.45116l11.65432-20.51634c4.23416-7.45738 12.0596-12.05138 20.5284-12.05138 8.46879 0 16.29423 4.594 20.52839 12.05138l115.41728 203.185c4.23426 7.457 4.23426 16.6444 0 24.1014z"
+ fill="#108775"
+ />
+ </g>
+</svg>
diff --git a/apps/client/src/lib/components/svg/applications/PHP.svelte b/apps/client/src/lib/components/svg/applications/PHP.svelte
new file mode 100644
index 0000000000..d52ab0dd5e
--- /dev/null
+++ b/apps/client/src/lib/components/svg/applications/PHP.svelte
@@ -0,0 +1,15 @@
+<script lang="ts">
+ export let isAbsolute = true;
+</script>
+
+<svg
+ viewBox="0 0 128 128"
+ class={isAbsolute
+ ? 'absolute top-0 left-0 -m-6 h-14 w-14 text-white'
+ : 'mx-auto w-8 h-8 text-white'}
+>
+ <path
+ fill="#6181B6"
+ d="M64 33.039c-33.74 0-61.094 13.862-61.094 30.961s27.354 30.961 61.094 30.961 61.094-13.862 61.094-30.961-27.354-30.961-61.094-30.961zm-15.897 36.993c-1.458 1.364-3.077 1.927-4.86 2.507-1.783.581-4.052.461-6.811.461h-6.253l-1.733 10h-7.301l6.515-34h14.04c4.224 0 7.305 1.215 9.242 3.432 1.937 2.217 2.519 5.364 1.747 9.337-.319 1.637-.856 3.159-1.614 4.515-.759 1.357-1.75 2.624-2.972 3.748zm21.311 2.968l2.881-14.42c.328-1.688.208-2.942-.361-3.555-.57-.614-1.782-1.025-3.635-1.025h-5.79l-3.731 19h-7.244l6.515-33h7.244l-1.732 9h6.453c4.061 0 6.861.815 8.402 2.231s2.003 3.356 1.387 6.528l-3.031 15.241h-7.358zm40.259-11.178c-.318 1.637-.856 3.133-1.613 4.488-.758 1.357-1.748 2.598-2.971 3.722-1.458 1.364-3.078 1.927-4.86 2.507-1.782.581-4.053.461-6.812.461h-6.253l-1.732 10h-7.301l6.514-34h14.041c4.224 0 7.305 1.215 9.241 3.432 1.935 2.217 2.518 5.418 1.746 9.39zM95.919 54h-5.001l-2.727 14h4.442c2.942 0 5.136-.29 6.576-1.4 1.442-1.108 2.413-2.828 2.918-5.421.484-2.491.264-4.434-.66-5.458-.925-1.024-2.774-1.721-5.548-1.721zM38.934 54h-5.002l-2.727 14h4.441c2.943 0 5.136-.29 6.577-1.4 1.441-1.108 2.413-2.828 2.917-5.421.484-2.491.264-4.434-.66-5.458s-2.772-1.721-5.546-1.721z"
+ />
+</svg>
diff --git a/apps/client/src/lib/components/svg/applications/Python.svelte b/apps/client/src/lib/components/svg/applications/Python.svelte
new file mode 100644
index 0000000000..17abb0f6d4
--- /dev/null
+++ b/apps/client/src/lib/components/svg/applications/Python.svelte
@@ -0,0 +1,57 @@
+<script lang="ts">
+ export let isAbsolute = true;
+</script>
+
+<svg
+ class={isAbsolute ? 'absolute top-0 left-0 -m-6 h-14 w-14' : 'mx-auto w-8 h-8'}
+ viewBox="0 0 128 128"
+>
+ <linearGradient
+ id="a"
+ gradientUnits="userSpaceOnUse"
+ x1="70.252"
+ y1="1237.476"
+ x2="170.659"
+ y2="1151.089"
+ gradientTransform="matrix(.563 0 0 -.568 -29.215 707.817)"
+ ><stop offset="0" stop-color="#5A9FD4" /><stop
+ offset="1"
+ stop-color="#306998"
+ /></linearGradient
+ ><path
+ fill="url(#a)"
+ d="M63.391 1.988c-4.222.02-8.252.379-11.8 1.007-10.45 1.846-12.346 5.71-12.346 12.837v9.411h24.693v3.137h-33.961c-7.176 0-13.46 4.313-15.426 12.521-2.268 9.405-2.368 15.275 0 25.096 1.755 7.311 5.947 12.519 13.124 12.519h8.491v-11.282c0-8.151 7.051-15.34 15.426-15.34h24.665c6.866 0 12.346-5.654 12.346-12.548v-23.513c0-6.693-5.646-11.72-12.346-12.837-4.244-.706-8.645-1.027-12.866-1.008zm-13.354 7.569c2.55 0 4.634 2.117 4.634 4.721 0 2.593-2.083 4.69-4.634 4.69-2.56 0-4.633-2.097-4.633-4.69-.001-2.604 2.073-4.721 4.633-4.721z"
+ /><linearGradient
+ id="b"
+ gradientUnits="userSpaceOnUse"
+ x1="209.474"
+ y1="1098.811"
+ x2="173.62"
+ y2="1149.537"
+ gradientTransform="matrix(.563 0 0 -.568 -29.215 707.817)"
+ ><stop offset="0" stop-color="#FFD43B" /><stop
+ offset="1"
+ stop-color="#FFE873"
+ /></linearGradient
+ ><path
+ fill="url(#b)"
+ d="M91.682 28.38v10.966c0 8.5-7.208 15.655-15.426 15.655h-24.665c-6.756 0-12.346 5.783-12.346 12.549v23.515c0 6.691 5.818 10.628 12.346 12.547 7.816 2.297 15.312 2.713 24.665 0 6.216-1.801 12.346-5.423 12.346-12.547v-9.412h-24.664v-3.138h37.012c7.176 0 9.852-5.005 12.348-12.519 2.578-7.735 2.467-15.174 0-25.096-1.774-7.145-5.161-12.521-12.348-12.521h-9.268zm-13.873 59.547c2.561 0 4.634 2.097 4.634 4.692 0 2.602-2.074 4.719-4.634 4.719-2.55 0-4.633-2.117-4.633-4.719 0-2.595 2.083-4.692 4.633-4.692z"
+ /><radialGradient
+ id="c"
+ cx="1825.678"
+ cy="444.45"
+ r="26.743"
+ gradientTransform="matrix(0 -.24 -1.055 0 532.979 557.576)"
+ gradientUnits="userSpaceOnUse"
+ ><stop offset="0" stop-color="#B8B8B8" stop-opacity=".498" /><stop
+ offset="1"
+ stop-color="#7F7F7F"
+ stop-opacity="0"
+ /></radialGradient
+ ><path
+ opacity=".444"
+ fill="url(#c)"
+ enable-background="new"
+ d="M97.309 119.597c0 3.543-14.816 6.416-33.091 6.416-18.276 0-33.092-2.873-33.092-6.416 0-3.544 14.815-6.417 33.092-6.417 18.275 0 33.091 2.872 33.091 6.417z"
+ />
+</svg>
diff --git a/apps/client/src/lib/components/svg/applications/React.svelte b/apps/client/src/lib/components/svg/applications/React.svelte
new file mode 100644
index 0000000000..c0867ffc8a
--- /dev/null
+++ b/apps/client/src/lib/components/svg/applications/React.svelte
@@ -0,0 +1,16 @@
+<script lang="ts">
+ export let isAbsolute = true;
+</script>
+
+<svg
+ class={isAbsolute
+ ? 'absolute top-0 left-0 -m-4 h-10 w-10 text-blue-500'
+ : 'mx-auto w-8 h-8 text-blue-500'}
+ viewBox="0 0 128 128"
+>
+ <g fill="#61DAFB"
+ ><circle cx="64" cy="64" r="11.4" /><path
+ d="M107.3 45.2c-2.2-.8-4.5-1.6-6.9-2.3.6-2.4 1.1-4.8 1.5-7.1 2.1-13.2-.2-22.5-6.6-26.1-1.9-1.1-4-1.6-6.4-1.6-7 0-15.9 5.2-24.9 13.9-9-8.7-17.9-13.9-24.9-13.9-2.4 0-4.5.5-6.4 1.6-6.4 3.7-8.7 13-6.6 26.1.4 2.3.9 4.7 1.5 7.1-2.4.7-4.7 1.4-6.9 2.3-12.5 4.8-19.3 11.4-19.3 18.8s6.9 14 19.3 18.8c2.2.8 4.5 1.6 6.9 2.3-.6 2.4-1.1 4.8-1.5 7.1-2.1 13.2.2 22.5 6.6 26.1 1.9 1.1 4 1.6 6.4 1.6 7.1 0 16-5.2 24.9-13.9 9 8.7 17.9 13.9 24.9 13.9 2.4 0 4.5-.5 6.4-1.6 6.4-3.7 8.7-13 6.6-26.1-.4-2.3-.9-4.7-1.5-7.1 2.4-.7 4.7-1.4 6.9-2.3 12.5-4.8 19.3-11.4 19.3-18.8s-6.8-14-19.3-18.8zm-14.8-30.5c4.1 2.4 5.5 9.8 3.8 20.3-.3 2.1-.8 4.3-1.4 6.6-5.2-1.2-10.7-2-16.5-2.5-3.4-4.8-6.9-9.1-10.4-13 7.4-7.3 14.9-12.3 21-12.3 1.3 0 2.5.3 3.5.9zm-11.2 59.3c-1.8 3.2-3.9 6.4-6.1 9.6-3.7.3-7.4.4-11.2.4-3.9 0-7.6-.1-11.2-.4-2.2-3.2-4.2-6.4-6-9.6-1.9-3.3-3.7-6.7-5.3-10 1.6-3.3 3.4-6.7 5.3-10 1.8-3.2 3.9-6.4 6.1-9.6 3.7-.3 7.4-.4 11.2-.4 3.9 0 7.6.1 11.2.4 2.2 3.2 4.2 6.4 6 9.6 1.9 3.3 3.7 6.7 5.3 10-1.7 3.3-3.4 6.6-5.3 10zm8.3-3.3c1.5 3.5 2.7 6.9 3.8 10.3-3.4.8-7 1.4-10.8 1.9 1.2-1.9 2.5-3.9 3.6-6 1.2-2.1 2.3-4.2 3.4-6.2zm-25.6 27.1c-2.4-2.6-4.7-5.4-6.9-8.3 2.3.1 4.6.2 6.9.2 2.3 0 4.6-.1 6.9-.2-2.2 2.9-4.5 5.7-6.9 8.3zm-18.6-15c-3.8-.5-7.4-1.1-10.8-1.9 1.1-3.3 2.3-6.8 3.8-10.3 1.1 2 2.2 4.1 3.4 6.1 1.2 2.2 2.4 4.1 3.6 6.1zm-7-25.5c-1.5-3.5-2.7-6.9-3.8-10.3 3.4-.8 7-1.4 10.8-1.9-1.2 1.9-2.5 3.9-3.6 6-1.2 2.1-2.3 4.2-3.4 6.2zm25.6-27.1c2.4 2.6 4.7 5.4 6.9 8.3-2.3-.1-4.6-.2-6.9-.2-2.3 0-4.6.1-6.9.2 2.2-2.9 4.5-5.7 6.9-8.3zm22.2 21l-3.6-6c3.8.5 7.4 1.1 10.8 1.9-1.1 3.3-2.3 6.8-3.8 10.3-1.1-2.1-2.2-4.2-3.4-6.2zm-54.5-16.2c-1.7-10.5-.3-17.9 3.8-20.3 1-.6 2.2-.9 3.5-.9 6 0 13.5 4.9 21 12.3-3.5 3.8-7 8.2-10.4 13-5.8.5-11.3 1.4-16.5 2.5-.6-2.3-1-4.5-1.4-6.6zm-24.7 29c0-4.7 5.7-9.7 15.7-13.4 2-.8 4.2-1.5 6.4-2.1 1.6 5 3.6 10.3 6 15.6-2.4 5.3-4.5 10.5-6 15.5-13.8-4-22.1-10-22.1-15.6zm28.5 49.3c-4.1-2.4-5.5-9.8-3.8-20.3.3-2.1.8-4.3 1.4-6.6 5.2 1.2 10.7 2 16.5 2.5 3.4 4.8 6.9 9.1 10.4 13-7.4 7.3-14.9 12.3-21 12.3-1.3 0-2.5-.3-3.5-.9zm60.8-20.3c1.7 10.5.3 17.9-3.8 20.3-1 .6-2.2.9-3.5.9-6 0-13.5-4.9-21-12.3 3.5-3.8 7-8.2 10.4-13 5.8-.5 11.3-1.4 16.5-2.5.6 2.3 1 4.5 1.4 6.6zm9-15.6c-2 .8-4.2 1.5-6.4 2.1-1.6-5-3.6-10.3-6-15.6 2.4-5.3 4.5-10.5 6-15.5 13.8 4 22.1 10 22.1 15.6 0 4.7-5.8 9.7-15.7 13.4z"
+ /></g
+ >
+</svg>
diff --git a/apps/client/src/lib/components/svg/applications/Rust.svelte b/apps/client/src/lib/components/svg/applications/Rust.svelte
new file mode 100644
index 0000000000..97bcee9036
--- /dev/null
+++ b/apps/client/src/lib/components/svg/applications/Rust.svelte
@@ -0,0 +1,15 @@
+<script lang="ts">
+ export let isAbsolute = true;
+</script>
+
+<svg
+ class={isAbsolute ? 'absolute top-0 left-0 -m-5 h-12 w-12' : 'mx-auto w-8 h-8'}
+ viewBox="0 0 128 128"
+>
+ <path
+ d="M62.271 10.880 C 62.082 10.990,61.289 12.128,60.508 13.409 C 58.548 16.626,58.526 16.628,55.893 13.857 C 54.180 12.055,53.766 11.725,53.214 11.729 C 52.855 11.731,52.402 11.853,52.206 12.000 C 52.011 12.147,51.458 13.317,50.978 14.600 C 49.879 17.539,49.826 17.634,49.217 17.751 C 48.842 17.822,48.120 17.420,46.389 16.177 C 45.111 15.258,43.857 14.507,43.603 14.507 C 42.549 14.507,42.252 15.083,41.750 18.100 C 41.112 21.936,41.134 21.923,37.676 20.352 C 36.280 19.719,34.956 19.200,34.733 19.200 C 34.510 19.200,34.087 19.440,33.794 19.733 C 33.262 20.266,33.261 20.268,33.406 23.201 L 33.552 26.137 32.997 26.434 C 32.505 26.697,32.166 26.665,29.988 26.150 C 27.145 25.479,26.545 25.497,25.969 26.272 L 25.548 26.838 26.113 29.259 C 26.423 30.590,26.722 31.872,26.778 32.107 C 26.833 32.341,26.738 32.716,26.566 32.939 C 26.282 33.306,25.980 33.339,23.349 33.299 C 18.896 33.229,18.643 33.611,20.483 37.627 C 21.068 38.902,21.547 40.060,21.547 40.199 C 21.547 40.933,20.962 41.200,18.449 41.610 C 17.043 41.839,15.821 42.027,15.733 42.027 C 15.645 42.027,15.381 42.219,15.147 42.453 C 14.382 43.218,14.599 43.936,16.334 46.385 C 18.495 49.435,18.491 49.446,14.921 50.812 C 10.861 52.365,10.779 52.748,13.870 55.680 C 16.749 58.410,16.752 58.370,13.493 60.419 C 11.024 61.970,10.986 62.007,10.923 62.848 C 10.847 63.871,10.865 63.889,13.813 65.690 C 16.728 67.470,16.728 67.524,13.867 70.231 C 10.790 73.141,10.885 73.566,14.948 75.099 C 18.498 76.438,18.503 76.454,16.338 79.504 C 15.111 81.233,14.720 81.953,14.720 82.487 C 14.720 83.486,15.240 83.741,18.347 84.263 C 20.964 84.704,21.547 84.963,21.547 85.685 C 21.547 85.833,21.067 87.001,20.480 88.279 C 18.654 92.256,18.862 92.587,23.184 92.587 C 27.209 92.587,27.102 92.464,26.235 96.094 C 25.581 98.830,25.571 99.354,26.163 99.945 C 26.616 100.399,27.470 100.348,30.141 99.709 C 32.181 99.222,32.539 99.188,33.012 99.441 L 33.552 99.730 33.406 102.665 C 33.261 105.599,33.262 105.601,33.794 106.134 C 34.087 106.427,34.516 106.667,34.746 106.667 C 34.976 106.667,36.300 106.151,37.689 105.520 C 41.136 103.955,41.114 103.942,41.750 107.766 C 42.254 110.797,42.548 111.360,43.624 111.360 C 43.891 111.360,45.118 110.640,46.352 109.760 C 48.519 108.214,49.081 107.972,49.658 108.339 C 49.807 108.433,50.385 109.703,50.942 111.161 C 51.761 113.305,52.061 113.863,52.517 114.081 C 53.385 114.497,53.922 114.163,55.962 111.941 C 58.425 109.258,58.526 109.271,60.537 112.530 C 62.758 116.128,63.333 116.120,65.610 112.457 C 67.572 109.301,67.549 109.303,70.201 112.073 C 71.962 113.911,72.337 114.204,72.931 114.204 C 73.310 114.204,73.763 114.062,73.936 113.888 C 74.110 113.714,74.686 112.429,75.216 111.033 C 75.746 109.636,76.295 108.420,76.437 108.330 C 76.998 107.973,77.579 108.224,79.743 109.760 C 81.017 110.665,82.216 111.360,82.501 111.360 C 83.559 111.360,83.941 110.609,84.381 107.657 C 84.757 105.140,84.833 104.899,85.328 104.648 C 85.815 104.401,86.107 104.484,88.391 105.521 C 89.780 106.151,91.104 106.667,91.334 106.667 C 91.564 106.667,92.000 106.420,92.301 106.118 L 92.850 105.570 92.699 102.755 C 92.555 100.067,92.568 99.923,92.997 99.535 C 93.438 99.136,93.483 99.138,95.949 99.701 C 98.935 100.383,99.492 100.401,100.053 99.840 C 100.601 99.292,100.595 99.172,99.845 96.009 C 99.004 92.461,98.891 92.587,102.933 92.587 C 105.688 92.587,105.995 92.548,106.346 92.161 C 106.932 91.513,106.793 90.771,105.614 88.258 C 105.019 86.992,104.536 85.840,104.540 85.698 C 104.560 84.951,105.147 84.696,107.860 84.255 C 109.520 83.986,110.762 83.674,110.987 83.471 C 111.741 82.790,111.464 81.904,109.743 79.491 C 107.586 76.467,107.595 76.438,111.049 75.165 C 115.185 73.641,115.303 73.133,112.208 70.192 C 109.341 67.468,109.340 67.483,112.480 65.555 C 116.276 63.225,116.282 62.700,112.547 60.382 C 109.335 58.389,109.337 58.417,112.216 55.683 C 115.304 52.749,115.220 52.365,111.159 50.812 C 107.575 49.441,107.564 49.407,109.742 46.418 C 111.039 44.638,111.360 44.047,111.360 43.437 C 111.360 42.371,110.882 42.132,107.738 41.624 C 105.111 41.200,104.533 40.942,104.533 40.195 C 104.533 40.053,105.013 38.910,105.600 37.653 C 106.749 35.192,106.910 34.207,106.260 33.618 C 105.911 33.302,105.443 33.257,102.939 33.298 C 100.319 33.342,99.984 33.305,99.621 32.940 C 99.224 32.541,99.228 32.485,99.848 29.898 C 100.608 26.728,100.611 26.651,99.986 26.064 C 99.352 25.468,98.956 25.478,96.045 26.163 C 93.924 26.663,93.573 26.696,93.091 26.438 L 92.544 26.145 92.695 23.219 L 92.847 20.294 92.300 19.747 C 91.999 19.446,91.572 19.200,91.350 19.200 C 91.129 19.200,89.812 19.723,88.424 20.361 C 86.106 21.428,85.857 21.499,85.356 21.237 C 84.856 20.975,84.773 20.717,84.346 18.110 C 83.853 15.094,83.548 14.507,82.477 14.507 C 82.223 14.507,80.964 15.262,79.679 16.185 C 77.569 17.701,77.286 17.844,76.760 17.661 C 76.325 17.509,76.072 17.178,75.763 16.355 C 75.534 15.749,75.096 14.581,74.788 13.760 C 74.166 12.104,73.819 11.733,72.887 11.733 C 72.367 11.733,71.896 12.107,70.208 13.860 C 67.555 16.616,67.545 16.615,65.594 13.415 C 64.814 12.136,63.999 10.994,63.782 10.878 C 63.294 10.616,62.720 10.617,62.271 10.880 M64.689 20.515 C 67.000 22.160,65.771 26.027,62.937 26.027 C 60.187 26.027,58.802 22.714,60.766 20.833 C 61.874 19.771,63.463 19.642,64.689 20.515 M61.783 30.729 C 63.298 31.305,63.920 30.959,67.379 27.625 L 69.978 25.119 71.078 25.265 C 74.528 25.723,81.390 28.737,85.333 31.526 C 88.956 34.090,93.771 39.312,95.823 42.903 L 96.262 43.672 94.318 48.052 C 93.248 50.461,92.373 52.685,92.373 52.996 C 92.373 53.713,92.843 54.847,93.296 55.222 C 93.487 55.381,95.302 56.255,97.329 57.164 L 101.013 58.818 101.158 59.755 C 101.345 60.976,101.370 63.975,101.200 64.827 L 101.067 65.493 98.964 65.493 C 96.525 65.493,96.713 65.275,96.581 68.267 C 96.485 70.436,95.961 71.635,94.769 72.411 C 92.827 73.678,89.620 73.448,88.260 71.945 C 88.051 71.714,87.645 70.553,87.357 69.364 C 86.516 65.891,85.386 63.941,83.116 62.044 C 82.399 61.445,81.813 60.886,81.813 60.801 C 81.813 60.717,82.601 60.053,83.565 59.328 C 87.075 56.682,89.093 53.602,89.315 50.551 C 89.738 44.732,85.102 39.308,78.206 37.550 C 76.571 37.133,75.873 37.120,55.646 37.120 C 44.166 37.120,34.773 37.045,34.773 36.954 C 34.773 36.739,37.324 34.263,38.827 33.021 C 42.954 29.609,48.315 26.924,53.867 25.490 L 55.787 24.993 58.515 27.759 C 60.016 29.280,61.487 30.616,61.783 30.729 M27.432 48.526 C 28.689 49.349,29.204 51.417,28.462 52.660 C 27.314 54.584,24.406 54.665,23.257 52.805 C 21.586 50.103,24.804 46.804,27.432 48.526 M101.482 48.631 C 104.770 50.636,102.222 55.568,98.702 54.011 C 96.352 52.971,96.277 49.759,98.575 48.587 C 99.534 48.098,100.636 48.115,101.482 48.631 M37.120 60.907 L 37.120 73.173 31.698 73.173 L 26.276 73.173 25.846 71.307 C 25.000 67.632,24.644 63.830,24.857 60.716 L 25.006 58.528 28.734 56.856 C 31.073 55.808,32.577 55.009,32.771 54.712 C 33.619 53.419,33.538 52.495,32.348 49.867 L 31.792 48.640 34.456 48.640 L 37.120 48.640 37.120 60.907 M68.340 49.174 C 70.662 49.778,71.889 51.007,71.892 52.730 C 71.894 53.995,71.267 54.789,69.712 55.491 C 68.611 55.989,68.436 56.001,61.493 56.069 L 54.400 56.137 54.400 52.495 L 54.400 48.853 60.755 48.853 C 65.719 48.853,67.380 48.923,68.340 49.174 M65.944 66.776 C 67.095 67.096,68.456 68.096,69.154 69.135 C 69.887 70.227,70.316 71.647,71.332 76.351 C 72.190 80.327,72.742 81.627,74.288 83.319 C 76.203 85.414,75.759 85.333,85.325 85.333 C 89.906 85.333,93.653 85.406,93.653 85.496 C 93.653 85.657,90.498 89.387,90.362 89.387 C 90.323 89.387,88.675 89.042,86.700 88.620 C 81.123 87.429,80.922 87.569,79.642 93.546 L 78.819 97.386 78.076 97.752 C 76.836 98.364,72.806 99.624,70.717 100.054 C 67.265 100.764,63.508 101.004,60.206 100.725 C 54.577 100.248,47.123 98.064,46.832 96.805 C 46.770 96.538,46.395 94.810,46.000 92.964 C 45.604 91.118,45.123 89.367,44.931 89.073 C 44.008 87.665,43.037 87.578,38.767 88.523 C 37.150 88.881,35.739 89.173,35.631 89.173 C 35.428 89.173,32.427 85.703,32.427 85.469 C 32.427 85.396,39.555 85.311,48.267 85.281 L 64.107 85.227 64.164 79.600 C 64.204 75.627,64.149 73.886,63.977 73.680 C 63.785 73.448,62.763 73.387,59.067 73.387 L 54.400 73.387 54.400 69.973 L 54.400 66.560 59.787 66.561 C 62.749 66.562,65.520 66.659,65.944 66.776 M41.536 92.365 C 44.055 93.900,42.847 97.922,39.868 97.919 C 36.813 97.917,35.681 93.932,38.284 92.344 C 39.145 91.819,40.658 91.829,41.536 92.365 M87.662 92.533 C 88.897 93.438,89.308 95.321,88.543 96.575 C 86.534 99.870,81.510 97.251,83.188 93.784 C 84.013 92.081,86.206 91.467,87.662 92.533 "
+ stroke="none"
+ fill="rgb(239, 68, 68)"
+ fill-rule="evenodd"
+ />
+</svg>
diff --git a/apps/client/src/lib/components/svg/applications/Static.svelte b/apps/client/src/lib/components/svg/applications/Static.svelte
new file mode 100644
index 0000000000..14cbb0ce83
--- /dev/null
+++ b/apps/client/src/lib/components/svg/applications/Static.svelte
@@ -0,0 +1,34 @@
+<script lang="ts">
+ export let isAbsolute = true;
+</script>
+
+<svg
+ class={isAbsolute
+ ? 'absolute top-0 left-0 -m-4 h-10 w-10 text-white'
+ : 'mx-auto w-8 h-8 text-white'}
+ viewBox="0 0 32 32"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+ ><g clip-path="url(#HTML5_Clip0_4)"
+ ><path
+ d="M30.216 0L27.6454 28.7967L16.0907 32L4.56783 28.8012L2 0H30.216Z"
+ fill="#E44D26"
+ /><path
+ d="M16.108 29.5515L25.4447 26.963L27.6415 2.35497H16.108V29.5515Z"
+ fill="#F16529"
+ /><path
+ d="M11.1109 9.4197H16.108V5.88731H7.25053L7.33509 6.83499L8.20327 16.5692H16.108V13.0369H11.4338L11.1109 9.4197Z"
+ fill="#EBEBEB"
+ /><path
+ d="M11.907 18.3354H8.36111L8.856 23.8818L16.0917 25.8904L16.108 25.8859V22.2108L16.0925 22.2149L12.1585 21.1527L11.907 18.3354Z"
+ fill="#EBEBEB"
+ /><path
+ d="M16.0958 16.5692H20.4455L20.0354 21.1504L16.0958 22.2138V25.8887L23.3373 23.8817L23.3904 23.285L24.2205 13.9855L24.3067 13.0369H16.0958V16.5692Z"
+ fill="white"
+ /><path
+ d="M16.0958 9.41105V9.41969H24.6281L24.6989 8.62572L24.8599 6.83499L24.9444 5.88731H16.0958V9.41105Z"
+ fill="white"
+ /></g
+ ><defs><clipPath id="HTML5_Clip0_4"><rect width="32" height="32" fill="white" /></clipPath></defs
+ ></svg
+>
diff --git a/apps/client/src/lib/components/svg/applications/Svelte.svelte b/apps/client/src/lib/components/svg/applications/Svelte.svelte
new file mode 100644
index 0000000000..cfa96c59d4
--- /dev/null
+++ b/apps/client/src/lib/components/svg/applications/Svelte.svelte
@@ -0,0 +1,25 @@
+<script lang="ts">
+ export let isAbsolute = true;
+</script>
+
+<svg
+ class={isAbsolute ? 'absolute top-0 left-0 -m-4 h-10 w-10' : 'mx-auto w-8 h-8'}
+ version="1.1"
+ id="Layer_1"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ x="0px"
+ y="0px"
+ viewBox="0 0 98.1 118"
+ style="enable-background:new 0 0 98.1 118;"
+ xml:space="preserve"
+>
+ <path
+ fill="#FF3E00"
+ d="M91.8,15.6C80.9-0.1,59.2-4.7,43.6,5.2L16.1,22.8C8.6,27.5,3.4,35.2,1.9,43.9c-1.3,7.3-0.2,14.8,3.3,21.3 c-2.4,3.6-4,7.6-4.7,11.8c-1.6,8.9,0.5,18.1,5.7,25.4c11,15.7,32.6,20.3,48.2,10.4l27.5-17.5c7.5-4.7,12.7-12.4,14.2-21.1 c1.3-7.3,0.2-14.8-3.3-21.3c2.4-3.6,4-7.6,4.7-11.8C99.2,32.1,97.1,22.9,91.8,15.6"
+ />
+ <path
+ fill="#FFFFFF"
+ d="M40.9,103.9c-8.9,2.3-18.2-1.2-23.4-8.7c-3.2-4.4-4.4-9.9-3.5-15.3c0.2-0.9,0.4-1.7,0.6-2.6l0.5-1.6l1.4,1 c3.3,2.4,6.9,4.2,10.8,5.4l1,0.3l-0.1,1c-0.1,1.4,0.3,2.9,1.1,4.1c1.6,2.3,4.4,3.4,7.1,2.7c0.6-0.2,1.2-0.4,1.7-0.7L65.5,72 c1.4-0.9,2.3-2.2,2.6-3.8c0.3-1.6-0.1-3.3-1-4.6c-1.6-2.3-4.4-3.3-7.1-2.6c-0.6,0.2-1.2,0.4-1.7,0.7l-10.5,6.7 c-1.7,1.1-3.6,1.9-5.6,2.4c-8.9,2.3-18.2-1.2-23.4-8.7c-3.1-4.4-4.4-9.9-3.4-15.3c0.9-5.2,4.1-9.9,8.6-12.7l27.5-17.5 c1.7-1.1,3.6-1.9,5.6-2.5c8.9-2.3,18.2,1.2,23.4,8.7c3.2,4.4,4.4,9.9,3.5,15.3c-0.2,0.9-0.4,1.7-0.7,2.6l-0.5,1.6l-1.4-1 c-3.3-2.4-6.9-4.2-10.8-5.4l-1-0.3l0.1-1c0.1-1.4-0.3-2.9-1.1-4.1c-1.6-2.3-4.4-3.3-7.1-2.6c-0.6,0.2-1.2,0.4-1.7,0.7L32.4,46.1 c-1.4,0.9-2.3,2.2-2.6,3.8s0.1,3.3,1,4.6c1.6,2.3,4.4,3.3,7.1,2.6c0.6-0.2,1.2-0.4,1.7-0.7l10.5-6.7c1.7-1.1,3.6-1.9,5.6-2.5 c8.9-2.3,18.2,1.2,23.4,8.7c3.2,4.4,4.4,9.9,3.5,15.3c-0.9,5.2-4.1,9.9-8.6,12.7l-27.5,17.5C44.8,102.5,42.9,103.3,40.9,103.9"
+ />
+</svg>
diff --git a/apps/client/src/lib/components/svg/applications/Vuejs.svelte b/apps/client/src/lib/components/svg/applications/Vuejs.svelte
new file mode 100644
index 0000000000..5ead6229d4
--- /dev/null
+++ b/apps/client/src/lib/components/svg/applications/Vuejs.svelte
@@ -0,0 +1,21 @@
+<script lang="ts">
+ export let isAbsolute = true;
+</script>
+
+<svg
+ class={isAbsolute
+ ? 'absolute top-0 left-0 -m-4 h-10 w-10 text-green-500'
+ : 'mx-auto w-8 h-8 text-green-500'}
+ viewBox="0 0 128 128"
+>
+ <path
+ d="m-2.3125e-8 8.9337 49.854 0.1586 14.167 24.47 14.432-24.47 49.547-0.1577-63.834 110.14zm126.98 0.6374-24.36 0.0207-38.476 66.052-38.453-66.052-24.749-0.0194 63.211 107.89zm-25.149-0.008-22.745 0.16758l-15.053 24.647-14.817-24.647-22.794-0.1679 37.731 64.476zM25.997 9.3929l23.002 0.0087M25.997 9.3929l23.002 0.0087"
+ fill="none"
+ /><path
+ d="m25.997 9.3929 23.002 0.0087l15.036 24.958 14.983-24.956 22.982-0.0057-37.85 65.655z"
+ fill="#35495e"
+ /><path
+ d="m0.91068 9.5686 25.066-0.1711 38.151 65.658 37.852-65.654 25.11 0.0263-62.966 108.06z"
+ fill="#41b883"
+ />
+</svg>
diff --git a/apps/client/src/lib/components/svg/applications/index.ts b/apps/client/src/lib/components/svg/applications/index.ts
new file mode 100644
index 0000000000..7bbe7b55bb
--- /dev/null
+++ b/apps/client/src/lib/components/svg/applications/index.ts
@@ -0,0 +1,20 @@
+//@ts-nocheck
+export { default as Rust } from './Rust.svelte';
+export { default as Nodejs } from './Nodejs.svelte';
+export { default as React } from './React.svelte';
+export { default as Svelte } from './Svelte.svelte';
+export { default as Vuejs } from './Vuejs.svelte';
+export { default as Php } from './PHP.svelte';
+export { default as Python } from './Python.svelte';
+export { default as Static } from './Static.svelte';
+export { default as Nestjs } from './Nestjs.svelte';
+export { default as Nuxtjs } from './Nuxtjs.svelte';
+export { default as Nextjs } from './Nextjs.svelte';
+export { default as Gatsby } from './Gatsby.svelte';
+export { default as Docker } from './Docker.svelte';
+export { default as Astro } from './Astro.svelte';
+export { default as Eleventy } from './Eleventy.svelte';
+export { default as Deno } from './Deno.svelte';
+export { default as Laravel } from './Laravel.svelte';
+export { default as Heroku } from './Heroku.svelte';
+export { default as Compose } from './Compose.svelte';
diff --git a/apps/client/src/lib/components/svg/databases/Clickhouse.svelte b/apps/client/src/lib/components/svg/databases/Clickhouse.svelte
new file mode 100644
index 0000000000..dd237a48cf
--- /dev/null
+++ b/apps/client/src/lib/components/svg/databases/Clickhouse.svelte
@@ -0,0 +1,13 @@
+<script lang="ts">
+ export let isAbsolute = false;
+</script>
+
+<svg
+ class={isAbsolute ? 'absolute top-0 left-0 -m-5 h-10 w-10' : 'mx-auto w-8 h-8'}
+ viewBox="0 0 9 8"
+ xmlns="http://www.w3.org/2000/svg"
+ ><path d="m0 7h1v1h-1z" fill="#f00" /><path
+ d="m0 0h1v7h-1zm2 0h1v8h-1zm2 0h1v8h-1zm2 0h1v8h-1zm2 3.25h1v1.5h-1z"
+ fill="#fc0"
+ /></svg
+>
diff --git a/apps/client/src/lib/components/svg/databases/CouchDB.svelte b/apps/client/src/lib/components/svg/databases/CouchDB.svelte
new file mode 100644
index 0000000000..411c4928d1
--- /dev/null
+++ b/apps/client/src/lib/components/svg/databases/CouchDB.svelte
@@ -0,0 +1,18 @@
+<script lang="ts">
+ export let isAbsolute = false;
+</script>
+
+<svg
+ class={isAbsolute
+ ? 'absolute top-0 left-0 -m-5 h-10 w-10 fill-current text-red-500'
+ : 'mx-auto w-8 h-8 text-red-500'}
+ id="CouchDB"
+ fill="currentColor"
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 128 128"
+ ><g id="original"
+ ><path
+ d="M101.4,77.2c0,5-2.7,7.5-7.6,7.7H33.9c-4.9,0-7.6-2.5-7.6-7.7,0-5,2.7-7.5,7.6-7.7H94.1C99,69.7,101.4,72.2,101.4,77.2ZM94.1,88.7H33.9c-4.9,0-7.6,2.4-7.6,7.7,0,5,2.7,7.4,7.6,7.7H94.1c4.9,0,7.6-2.5,7.6-7.7C101.4,91.1,99,88.7,94.1,88.7Zm18.6-42.1h0c-4.9,0-7.6,2.5-7.6,7.4V96.1c0,5,2.7,7.5,7.6,7.7h0c7.4-.2,11.3-7.7,11.3-22.9V62C124,51.8,120.1,46.8,112.7,46.6Zm-97.4,0h0C7.9,46.8,4,51.8,4,62V80.9c0,15.2,3.9,22.7,11.3,22.9h0c4.9,0,7.6-2.4,7.6-7.7V54.3C22.7,49.3,20.2,46.8,15.3,46.6Zm97.4-3.8c0-12.7-6.6-18.7-18.6-18.9H33.9c-12.2.2-18.6,6.5-18.6,18.9h0c7.4,0,11.3,4,11.3,11.5s3.9,11.4,11.3,11.4H90.4c7.3,0,11.3-3.9,11.3-11.4-.3-7.7,3.9-11.2,11-11.5Z"
+ /></g
+ ></svg
+>
diff --git a/apps/client/src/lib/components/svg/databases/DatabaseIcons.svelte b/apps/client/src/lib/components/svg/databases/DatabaseIcons.svelte
new file mode 100644
index 0000000000..4a00860af3
--- /dev/null
+++ b/apps/client/src/lib/components/svg/databases/DatabaseIcons.svelte
@@ -0,0 +1,21 @@
+<script lang="ts">
+ import * as Icons from '$lib/components/svg/databases';
+ export let type: any;
+ export let isAbsolute = false;
+</script>
+
+{#if type === 'mysql'}
+ <Icons.MySQL {isAbsolute} />
+{:else if type === 'postgresql'}
+ <Icons.PostgreSQL {isAbsolute} />
+{:else if type === 'mongodb'}
+ <Icons.MongoDB {isAbsolute} />
+{:else if type === 'mariadb'}
+ <Icons.MariaDB {isAbsolute} />
+{:else if type === 'redis'}
+ <Icons.Redis {isAbsolute} />
+{:else if type === 'couchdb'}
+ <Icons.CouchDB {isAbsolute} />
+{:else if type === 'edgedb'}
+ <Icons.EdgeDB {isAbsolute} />
+{/if}
diff --git a/apps/client/src/lib/components/svg/databases/EdgeDB.svelte b/apps/client/src/lib/components/svg/databases/EdgeDB.svelte
new file mode 100644
index 0000000000..57fdebed5d
--- /dev/null
+++ b/apps/client/src/lib/components/svg/databases/EdgeDB.svelte
@@ -0,0 +1,22 @@
+<script lang="ts">
+ export let isAbsolute = false;
+</script>
+
+<svg
+ class={isAbsolute ? 'absolute top-0 left-0 -m-8 h-16 w-16' : 'mx-auto w-12 h-12'}
+ width="88"
+ fill="#1F8AED"
+ height="101"
+ viewBox="0 -15 88 101"
+ ><path
+ class="pageNav_logoBar__2v4ah"
+ style="transform-origin:center 35.5px"
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ d="M55.1436 71H58.1436V0H55.1436V71Z"
+ /><path
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ d="M74.5362 35.3047C74.5362 41.3776 72.1013 42.4662 69.3799 42.4662H63.5935V28.1432H69.3799C72.1013 28.1432 74.5362 29.2318 74.5362 35.3047V35.3047ZM71.5862 35.3047C71.5862 31.0651 70.2971 30.8646 68.4352 30.8646H66.6305V39.7448H68.4352C70.2971 39.7448 71.5862 39.5443 71.5862 35.3047V35.3047ZM40.9348 42.4662V28.1432H50.0442V30.8646H43.9713V33.7865H48.5546V36.4792H43.9713V39.7448H50.0442V42.4662H40.9348ZM80.6092 36.1068V39.7448H83.13C84.7055 39.7448 85.1066 38.7135 85.1066 37.9401C85.1066 37.3385 84.8201 36.1068 82.6717 36.1068H80.6092ZM80.6092 30.8646V33.5859H82.6717C83.8462 33.5859 84.5337 33.0703 84.5337 32.2109C84.5337 31.3516 83.8462 30.8646 82.6717 30.8646H80.6092ZM77.5732 28.1432H83.4169C86.482 28.1432 87.3987 30.2917 87.3987 31.8385C87.3987 33.2708 86.482 34.3021 85.8518 34.5885C87.6851 35.4766 88.0002 37.2813 88.0002 38.1979C88.0002 39.401 87.3987 42.4662 83.4169 42.4662H77.5732V28.1432ZM23.4899 35.3047C23.4899 41.3776 21.055 42.4662 18.3337 42.4662H12.5472V28.1432H18.3337C21.055 28.1432 23.4899 29.2318 23.4899 35.3047V35.3047ZM32.4272 39.8594C33.974 39.8594 34.7761 39.3438 35.0626 39V37.4245H32.599V34.9609H37.4975V40.6615C37.0678 41.3203 34.7188 42.6094 32.5704 42.6094C29.047 42.6094 26.0678 41.2344 26.0678 35.1615C26.0678 29.0885 29.0756 28 31.797 28C36.0652 28 37.1251 30.2344 37.4688 32.2109L34.948 32.7839C34.8048 31.8672 34.0027 30.7214 32.1694 30.7214C30.3074 30.7214 29.0183 30.9219 29.0183 35.1615C29.0183 39.401 30.3647 39.8594 32.4272 39.8594V39.8594ZM20.539 35.3047C20.539 31.0651 19.2499 30.8646 17.3879 30.8646H15.5833V39.7448H17.3879C19.2499 39.7448 20.539 39.5443 20.539 35.3047V35.3047ZM0 42.4662V28.1432H9.10938V30.8646H3.03646V33.7865H7.61979V36.4792H3.03646V39.7448H9.10938V42.4662H0Z"
+ /></svg
+>
diff --git a/apps/client/src/lib/components/svg/databases/MariaDB.svelte b/apps/client/src/lib/components/svg/databases/MariaDB.svelte
new file mode 100644
index 0000000000..5bf504bccf
--- /dev/null
+++ b/apps/client/src/lib/components/svg/databases/MariaDB.svelte
@@ -0,0 +1,17 @@
+<script lang="ts">
+ export let isAbsolute = false;
+</script>
+
+<svg
+ xmlns="http://www.w3.org/2000/svg"
+ id="Layer_1"
+ data-name="Layer 1"
+ viewBox="0 0 309.88 252.72"
+ class={isAbsolute ? 'absolute top-0 left-0 -m-5 h-12 w-12 ' : 'mx-auto w-8 h-8'}
+>
+ <path
+ fill="#fff"
+ d="M316,10.05a4.2,4.2,0,0,0-2.84-1c-2.84,0-6.5,1.92-8.46,3l-.79.4a26.81,26.81,0,0,1-10.57,2.66c-3.76.12-7,.34-11.22.77-25,2.58-36.15,21.74-46.89,40.27-5.84,10.08-11.88,20.5-20.16,28.57a55.71,55.71,0,0,1-5.46,4.63c-8.57,6.39-19.33,10.9-27.74,14.12-8.07,3.08-16.86,5.85-25.37,8.53-7.78,2.45-15.14,4.76-21.9,7.28-3.05,1.13-5.64,2-7.93,2.76-6.15,2-10.6,3.53-17.08,8-2.53,1.73-5.07,3.6-6.8,5a71.26,71.26,0,0,0-13.54,14.27A84.81,84.81,0,0,1,77.88,163c-1.36,1.34-3.8,2-7.43,2-4.27,0-9.43-.88-14.91-1.81s-11.46-2-16.46-2c-4.07,0-7.17.66-9.5,2,0,0-3.9,2.28-5.56,5.23l1.62.73a33.56,33.56,0,0,1,6.93,5,33.68,33.68,0,0,0,7.19,5.12A6.37,6.37,0,0,1,42,180.72c-.69,1-1.69,2.29-2.74,3.67-5.77,7.55-9.13,12.32-7.2,14.92a6,6,0,0,0,3,.68c12.59,0,19.34-3.27,27.9-7.41,2.47-1.2,5-2.44,8-3.7,5-2.17,10.38-5.63,16.08-9.29,7.55-4.85,15.36-9.87,22.92-12.3a62.3,62.3,0,0,1,19.23-2.7c8,0,16.42,1.07,24.54,2.11,6.06.78,12.32,1.58,18.47,2,2.39.14,4.6.21,6.76.21a78.48,78.48,0,0,0,8.61-.45l.68-.24c4.32-2.65,6.34-8.34,8.29-13.84,1.26-3.54,2.32-6.72,4-8.74a2.06,2.06,0,0,1,.33-.27.4.4,0,0,1,.49.08.25.25,0,0,1,0,.16c-1,21.51-9.67,35.16-18.42,47.3L177,199.14s8.18,0,12.84-1.8c17-5.08,29.84-16.28,39.18-34.14a144.39,144.39,0,0,0,6.16-14.09c.16-.4,1.64-1.14,1.49.93,0,.61-.08,1.29-.13,2h0c0,.42-.06.85-.08,1.28-.25,3-1,9.34-1,9.34l5.25-2.81c12.66-8,22.42-24.14,29.82-49.25,3.09-10.46,5.34-20.85,7.33-30,2.38-11,4.43-20.43,6.78-24.09,3.69-5.74,9.32-9.62,14.77-13.39.75-.51,1.49-1,2.22-1.54,6.86-4.81,13.67-10.36,15.16-20.71l0-.23C317.93,12.92,317,11,316,10.05Z"
+ transform="translate(-7.45 -9.1)"
+ />
+</svg>
diff --git a/apps/client/src/lib/components/svg/databases/MongoDB.svelte b/apps/client/src/lib/components/svg/databases/MongoDB.svelte
new file mode 100644
index 0000000000..fbb261aa2c
--- /dev/null
+++ b/apps/client/src/lib/components/svg/databases/MongoDB.svelte
@@ -0,0 +1,90 @@
+<script lang="ts">
+ export let isAbsolute = false;
+</script>
+
+<svg
+ viewBox="0 0 128 128"
+ class={isAbsolute ? 'absolute top-0 left-0 -m-4 h-10 w-10' : 'mx-auto w-8 h-8'}
+>
+ <path
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ fill="#439934"
+ d="M88.038 42.812c1.605 4.643 2.761 9.383 3.141 14.296.472 6.095.256 12.147-1.029 18.142-.035.165-.109.32-.164.48-.403.001-.814-.049-1.208.012-3.329.523-6.655 1.065-9.981 1.604-3.438.557-6.881 1.092-10.313 1.687-1.216.21-2.721-.041-3.212 1.641-.014.046-.154.054-.235.08l.166-10.051-.169-24.252 1.602-.275c2.62-.429 5.24-.864 7.862-1.281 3.129-.497 6.261-.98 9.392-1.465 1.381-.215 2.764-.412 4.148-.618z"
+ /><path
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ fill="#45A538"
+ d="M61.729 110.054c-1.69-1.453-3.439-2.842-5.059-4.37-8.717-8.222-15.093-17.899-18.233-29.566-.865-3.211-1.442-6.474-1.627-9.792-.13-2.322-.318-4.665-.154-6.975.437-6.144 1.325-12.229 3.127-18.147l.099-.138c.175.233.427.439.516.702 1.759 5.18 3.505 10.364 5.242 15.551 5.458 16.3 10.909 32.604 16.376 48.9.107.318.384.579.583.866l-.87 2.969z"
+ /><path
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ fill="#46A037"
+ d="M88.038 42.812c-1.384.206-2.768.403-4.149.616-3.131.485-6.263.968-9.392 1.465-2.622.417-5.242.852-7.862 1.281l-1.602.275-.012-1.045c-.053-.859-.144-1.717-.154-2.576-.069-5.478-.112-10.956-.18-16.434-.042-3.429-.105-6.857-.175-10.285-.043-2.13-.089-4.261-.185-6.388-.052-1.143-.236-2.28-.311-3.423-.042-.657.016-1.319.029-1.979.817 1.583 1.616 3.178 2.456 4.749 1.327 2.484 3.441 4.314 5.344 6.311 7.523 7.892 12.864 17.068 16.193 27.433z"
+ /><path
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ fill="#409433"
+ d="M65.036 80.753c.081-.026.222-.034.235-.08.491-1.682 1.996-1.431 3.212-1.641 3.432-.594 6.875-1.13 10.313-1.687 3.326-.539 6.652-1.081 9.981-1.604.394-.062.805-.011 1.208-.012-.622 2.22-1.112 4.488-1.901 6.647-.896 2.449-1.98 4.839-3.131 7.182a49.142 49.142 0 01-6.353 9.763c-1.919 2.308-4.058 4.441-6.202 6.548-1.185 1.165-2.582 2.114-3.882 3.161l-.337-.23-1.214-1.038-1.256-2.753a41.402 41.402 0 01-1.394-9.838l.023-.561.171-2.426c.057-.828.133-1.655.168-2.485.129-2.982.241-5.964.359-8.946z"
+ /><path
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ fill="#4FAA41"
+ d="M65.036 80.753c-.118 2.982-.23 5.964-.357 8.947-.035.83-.111 1.657-.168 2.485l-.765.289c-1.699-5.002-3.399-9.951-5.062-14.913-2.75-8.209-5.467-16.431-8.213-24.642a4498.887 4498.887 0 00-6.7-19.867c-.105-.31-.407-.552-.617-.826l4.896-9.002c.168.292.39.565.496.879a6167.476 6167.476 0 016.768 20.118c2.916 8.73 5.814 17.467 8.728 26.198.116.349.308.671.491 1.062l.67-.78-.167 10.052z"
+ /><path
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ fill="#4AA73C"
+ d="M43.155 32.227c.21.274.511.516.617.826a4498.887 4498.887 0 016.7 19.867c2.746 8.211 5.463 16.433 8.213 24.642 1.662 4.961 3.362 9.911 5.062 14.913l.765-.289-.171 2.426-.155.559c-.266 2.656-.49 5.318-.814 7.968-.163 1.328-.509 2.632-.772 3.947-.198-.287-.476-.548-.583-.866-5.467-16.297-10.918-32.6-16.376-48.9a3888.972 3888.972 0 00-5.242-15.551c-.089-.263-.34-.469-.516-.702l3.272-8.84z"
+ /><path
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ fill="#57AE47"
+ d="M65.202 70.702l-.67.78c-.183-.391-.375-.714-.491-1.062-2.913-8.731-5.812-17.468-8.728-26.198a6167.476 6167.476 0 00-6.768-20.118c-.105-.314-.327-.588-.496-.879l6.055-7.965c.191.255.463.482.562.769 1.681 4.921 3.347 9.848 5.003 14.778 1.547 4.604 3.071 9.215 4.636 13.813.105.308.47.526.714.786l.012 1.045c.058 8.082.115 16.167.171 24.251z"
+ /><path
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ fill="#60B24F"
+ d="M65.021 45.404c-.244-.26-.609-.478-.714-.786-1.565-4.598-3.089-9.209-4.636-13.813-1.656-4.93-3.322-9.856-5.003-14.778-.099-.287-.371-.514-.562-.769 1.969-1.928 3.877-3.925 5.925-5.764 1.821-1.634 3.285-3.386 3.352-5.968.003-.107.059-.214.145-.514l.519 1.306c-.013.661-.072 1.322-.029 1.979.075 1.143.259 2.28.311 3.423.096 2.127.142 4.258.185 6.388.069 3.428.132 6.856.175 10.285.067 5.478.111 10.956.18 16.434.008.861.098 1.718.152 2.577z"
+ /><path
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ fill="#A9AA88"
+ d="M62.598 107.085c.263-1.315.609-2.62.772-3.947.325-2.649.548-5.312.814-7.968l.066-.01.066.011a41.402 41.402 0 001.394 9.838c-.176.232-.425.439-.518.701-.727 2.05-1.412 4.116-2.143 6.166-.1.28-.378.498-.574.744l-.747-2.566.87-2.969z"
+ /><path
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ fill="#B6B598"
+ d="M62.476 112.621c.196-.246.475-.464.574-.744.731-2.05 1.417-4.115 2.143-6.166.093-.262.341-.469.518-.701l1.255 2.754c-.248.352-.59.669-.728 1.061l-2.404 7.059c-.099.283-.437.483-.663.722l-.695-3.985z"
+ /><path
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ fill="#C2C1A7"
+ d="M63.171 116.605c.227-.238.564-.439.663-.722l2.404-7.059c.137-.391.48-.709.728-1.061l1.215 1.037c-.587.58-.913 1.25-.717 2.097l-.369 1.208c-.168.207-.411.387-.494.624-.839 2.403-1.64 4.819-2.485 7.222-.107.305-.404.544-.614.812-.109-1.387-.22-2.771-.331-4.158z"
+ /><path
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ fill="#CECDB7"
+ d="M63.503 120.763c.209-.269.506-.508.614-.812.845-2.402 1.646-4.818 2.485-7.222.083-.236.325-.417.494-.624l-.509 5.545c-.136.157-.333.294-.398.477-.575 1.614-1.117 3.24-1.694 4.854-.119.333-.347.627-.525.938-.158-.207-.441-.407-.454-.623-.051-.841-.016-1.688-.013-2.533z"
+ /><path
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ fill="#DBDAC7"
+ d="M63.969 123.919c.178-.312.406-.606.525-.938.578-1.613 1.119-3.239 1.694-4.854.065-.183.263-.319.398-.477l.012 3.64-1.218 3.124-1.411-.495z"
+ /><path
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ fill="#EBE9DC"
+ d="M65.38 124.415l1.218-3.124.251 3.696-1.469-.572z"
+ /><path
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ fill="#CECDB7"
+ d="M67.464 110.898c-.196-.847.129-1.518.717-2.097l.337.23-1.054 1.867z"
+ /><path
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ fill="#4FAA41"
+ d="M64.316 95.172l-.066-.011-.066.01.155-.559-.023.56z"
+ />
+</svg>
diff --git a/apps/client/src/lib/components/svg/databases/MySQL.svelte b/apps/client/src/lib/components/svg/databases/MySQL.svelte
new file mode 100644
index 0000000000..0950932144
--- /dev/null
+++ b/apps/client/src/lib/components/svg/databases/MySQL.svelte
@@ -0,0 +1,17 @@
+<script lang="ts">
+ export let isAbsolute = false;
+</script>
+
+<svg
+ class={isAbsolute ? 'absolute top-0 left-0 -m-5 h-10 w-10' : 'mx-auto w-8 h-8'}
+ xmlns="http://www.w3.org/2000/svg"
+ width="64"
+ height="64"
+ viewBox="0 0 25.6 25.6"
+ ><path
+ d="M179.076 94.886c-3.568-.1-6.336.268-8.656 1.25-.668.27-1.74.27-1.828 1.116.357.355.4.936.713 1.428.535.893 1.473 2.096 2.32 2.72l2.855 2.053c1.74 1.07 3.703 1.695 5.398 2.766.982.625 1.963 1.428 2.945 2.098.5.357.803.938 1.428 1.16v-.135c-.312-.4-.402-.98-.713-1.428l-1.34-1.293c-1.293-1.74-2.9-3.258-4.64-4.506-1.428-.982-4.55-2.32-5.13-3.97l-.088-.1c.98-.1 2.14-.447 3.078-.715 1.518-.4 2.9-.312 4.46-.713l2.143-.625v-.4c-.803-.803-1.383-1.874-2.23-2.632-2.275-1.963-4.775-3.882-7.363-5.488-1.383-.892-3.168-1.473-4.64-2.23-.537-.268-1.428-.402-1.74-.848-.805-.98-1.25-2.275-1.83-3.436l-3.658-7.763c-.803-1.74-1.295-3.48-2.275-5.086-4.596-7.585-9.594-12.18-17.268-16.687-1.65-.937-3.613-1.34-5.7-1.83l-3.346-.18c-.715-.312-1.428-1.16-2.053-1.562-2.543-1.606-9.102-5.086-10.977-.5-1.205 2.9 1.785 5.755 2.8 7.228.76 1.026 1.74 2.186 2.277 3.346.3.758.4 1.562.713 2.365.713 1.963 1.383 4.15 2.32 5.98.5.937 1.025 1.92 1.65 2.767.357.5.982.714 1.115 1.517-.625.893-.668 2.23-1.025 3.347-1.607 5.042-.982 11.288 1.293 15 .715 1.115 2.4 3.57 4.686 2.632 2.008-.803 1.56-3.346 2.14-5.577.135-.535.045-.892.312-1.25v.1l1.83 3.703c1.383 2.186 3.793 4.462 5.8 5.98 1.07.803 1.918 2.187 3.256 2.677v-.135h-.088c-.268-.4-.67-.58-1.027-.892-.803-.803-1.695-1.785-2.32-2.677-1.873-2.498-3.523-5.265-4.996-8.12-.715-1.383-1.34-2.9-1.918-4.283-.27-.536-.27-1.34-.715-1.606-.67.98-1.65 1.83-2.143 3.034-.848 1.918-.936 4.283-1.248 6.737-.18.045-.1 0-.18.1-1.426-.356-1.918-1.83-2.453-3.078-1.338-3.168-1.562-8.254-.402-11.913.312-.937 1.652-3.882 1.117-4.774-.27-.848-1.16-1.338-1.652-2.008-.58-.848-1.203-1.918-1.605-2.855-1.07-2.5-1.605-5.265-2.766-7.764-.537-1.16-1.473-2.365-2.232-3.435-.848-1.205-1.783-2.053-2.453-3.48-.223-.5-.535-1.294-.178-1.83.088-.357.268-.5.623-.58.58-.5 2.232.134 2.812.4 1.65.67 3.033 1.294 4.416 2.23.625.446 1.295 1.294 2.098 1.518h.938c1.428.312 3.033.1 4.37.5 2.365.76 4.506 1.874 6.426 3.08 5.844 3.703 10.664 8.968 13.92 15.26.535 1.026.758 1.963 1.25 3.034.938 2.187 2.098 4.417 3.033 6.56.938 2.097 1.83 4.24 3.168 5.98.67.937 3.346 1.427 4.55 1.918.893.4 2.275.76 3.08 1.25 1.516.937 3.033 2.008 4.46 3.034.713.534 2.945 1.65 3.078 2.54zm-45.5-38.772a7.09 7.09 0 0 0-1.828.223v.1h.088c.357.714.982 1.205 1.428 1.83l1.027 2.142.088-.1c.625-.446.938-1.16.938-2.23-.268-.312-.312-.625-.535-.937-.268-.446-.848-.67-1.206-1.026z"
+ transform="matrix(.390229 0 0 .38781 -46.300037 -16.856717)"
+ fill-rule="evenodd"
+ fill="#00678c"
+ /></svg
+>
diff --git a/apps/client/src/lib/components/svg/databases/PostgreSQL.svelte b/apps/client/src/lib/components/svg/databases/PostgreSQL.svelte
new file mode 100644
index 0000000000..3021508a6e
--- /dev/null
+++ b/apps/client/src/lib/components/svg/databases/PostgreSQL.svelte
@@ -0,0 +1,56 @@
+<script lang="ts">
+ export let isAbsolute = false;
+</script>
+
+<svg
+ class={isAbsolute ? 'absolute top-0 left-0 -m-5 h-10 w-10' : 'mx-auto w-8 h-8'}
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 432.071 445.383"
+ xml:space="preserve"
+>
+ <g id="orginal" style="fill-rule:nonzero;clip-rule:nonzero;stroke:#000000;stroke-miterlimit:4;" />
+ <g
+ id="Layer_x0020_3"
+ style="fill-rule:nonzero;clip-rule:nonzero;fill:none;stroke:#FFFFFF;stroke-width:12.4651;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;"
+ >
+ <path
+ style="fill:#000000;stroke:#000000;stroke-width:37.3953;stroke-linecap:butt;stroke-linejoin:miter;"
+ d="M323.205,324.227c2.833-23.601,1.984-27.062,19.563-23.239l4.463,0.392c13.517,0.615,31.199-2.174,41.587-7c22.362-10.376,35.622-27.7,13.572-23.148c-50.297,10.376-53.755-6.655-53.755-6.655c53.111-78.803,75.313-178.836,56.149-203.322 C352.514-5.534,262.036,26.049,260.522,26.869l-0.482,0.089c-9.938-2.062-21.06-3.294-33.554-3.496c-22.761-0.374-40.032,5.967-53.133,15.904c0,0-161.408-66.498-153.899,83.628c1.597,31.936,45.777,241.655,98.47,178.31 c19.259-23.163,37.871-42.748,37.871-42.748c9.242,6.14,20.307,9.272,31.912,8.147l0.897-0.765c-0.281,2.876-0.157,5.689,0.359,9.019c-13.572,15.167-9.584,17.83-36.723,23.416c-27.457,5.659-11.326,15.734-0.797,18.367c12.768,3.193,42.305,7.716,62.268-20.224 l-0.795,3.188c5.325,4.26,4.965,30.619,5.72,49.452c0.756,18.834,2.017,36.409,5.856,46.771c3.839,10.36,8.369,37.05,44.036,29.406c29.809-6.388,52.6-15.582,54.677-101.107"
+ />
+ <path
+ style="fill:#336791;stroke:none;"
+ d="M402.395,271.23c-50.302,10.376-53.76-6.655-53.76-6.655c53.111-78.808,75.313-178.843,56.153-203.326c-52.27-66.785-142.752-35.2-144.262-34.38l-0.486,0.087c-9.938-2.063-21.06-3.292-33.56-3.496c-22.761-0.373-40.026,5.967-53.127,15.902 c0,0-161.411-66.495-153.904,83.63c1.597,31.938,45.776,241.657,98.471,178.312c19.26-23.163,37.869-42.748,37.869-42.748c9.243,6.14,20.308,9.272,31.908,8.147l0.901-0.765c-0.28,2.876-0.152,5.689,0.361,9.019c-13.575,15.167-9.586,17.83-36.723,23.416 c-27.459,5.659-11.328,15.734-0.796,18.367c12.768,3.193,42.307,7.716,62.266-20.224l-0.796,3.188c5.319,4.26,9.054,27.711,8.428,48.969c-0.626,21.259-1.044,35.854,3.147,47.254c4.191,11.4,8.368,37.05,44.042,29.406c29.809-6.388,45.256-22.942,47.405-50.555 c1.525-19.631,4.976-16.729,5.194-34.28l2.768-8.309c3.192-26.611,0.507-35.196,18.872-31.203l4.463,0.392c13.517,0.615,31.208-2.174,41.591-7c22.358-10.376,35.618-27.7,13.573-23.148z"
+ />
+ <path
+ d="M215.866,286.484c-1.385,49.516,0.348,99.377,5.193,111.495c4.848,12.118,15.223,35.688,50.9,28.045c29.806-6.39,40.651-18.756,45.357-46.051c3.466-20.082,10.148-75.854,11.005-87.281"
+ />
+ <path
+ d="M173.104,38.256c0,0-161.521-66.016-154.012,84.109c1.597,31.938,45.779,241.664,98.473,178.316c19.256-23.166,36.671-41.335,36.671-41.335"
+ />
+ <path
+ d="M260.349,26.207c-5.591,1.753,89.848-34.889,144.087,34.417c19.159,24.484-3.043,124.519-56.153,203.329"
+ />
+ <path
+ style="stroke-linejoin:bevel;"
+ d="M348.282,263.953c0,0,3.461,17.036,53.764,6.653c22.04-4.552,8.776,12.774-13.577,23.155c-18.345,8.514-59.474,10.696-60.146-1.069c-1.729-30.355,21.647-21.133,19.96-28.739c-1.525-6.85-11.979-13.573-18.894-30.338 c-6.037-14.633-82.796-126.849,21.287-110.183c3.813-0.789-27.146-99.002-124.553-100.599c-97.385-1.597-94.19,119.762-94.19,119.762"
+ />
+ <path
+ d="M188.604,274.334c-13.577,15.166-9.584,17.829-36.723,23.417c-27.459,5.66-11.326,15.733-0.797,18.365c12.768,3.195,42.307,7.718,62.266-20.229c6.078-8.509-0.036-22.086-8.385-25.547c-4.034-1.671-9.428-3.765-16.361,3.994z"
+ />
+ <path
+ d="M187.715,274.069c-1.368-8.917,2.93-19.528,7.536-31.942c6.922-18.626,22.893-37.255,10.117-96.339c-9.523-44.029-73.396-9.163-73.436-3.193c-0.039,5.968,2.889,30.26-1.067,58.548c-5.162,36.913,23.488,68.132,56.479,64.938"
+ />
+ <path
+ style="fill:#FFFFFF;stroke-width:4.155;stroke-linecap:butt;stroke-linejoin:miter;"
+ d="M172.517,141.7c-0.288,2.039,3.733,7.48,8.976,8.207c5.234,0.73,9.714-3.522,9.998-5.559c0.284-2.039-3.732-4.285-8.977-5.015c-5.237-0.731-9.719,0.333-9.996,2.367z"
+ />
+ <path
+ style="fill:#FFFFFF;stroke-width:2.0775;stroke-linecap:butt;stroke-linejoin:miter;"
+ d="M331.941,137.543c0.284,2.039-3.732,7.48-8.976,8.207c-5.238,0.73-9.718-3.522-10.005-5.559c-0.277-2.039,3.74-4.285,8.979-5.015c5.239-0.73,9.718,0.333,10.002,2.368z"
+ />
+ <path
+ d="M350.676,123.432c0.863,15.994-3.445,26.888-3.988,43.914c-0.804,24.748,11.799,53.074-7.191,81.435"
+ />
+ <path style="stroke-width:3;" d="M0,60.232" />
+ </g>
+</svg>
diff --git a/apps/client/src/lib/components/svg/databases/Redis.svelte b/apps/client/src/lib/components/svg/databases/Redis.svelte
new file mode 100644
index 0000000000..24a7dc7973
--- /dev/null
+++ b/apps/client/src/lib/components/svg/databases/Redis.svelte
@@ -0,0 +1,34 @@
+<script lang="ts">
+ export let isAbsolute = false;
+</script>
+
+<svg
+ class={isAbsolute ? 'absolute top-0 left-0 -m-5 h-10 w-10' : 'mx-auto w-8 h-8'}
+ viewBox="0 0 32 32"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ ><defs
+ ><path
+ id="a"
+ d="m45.536 38.764c-2.013 1.05-12.44 5.337-14.66 6.494s-3.453 1.146-5.207.308-12.85-5.32-14.85-6.276c-1-.478-1.524-.88-1.524-1.26v-3.813s14.447-3.145 16.78-3.982 3.14-.867 5.126-.14 13.853 2.868 15.814 3.587v3.76c0 .377-.452.8-1.477 1.324z"
+ /><path
+ id="b"
+ d="m45.536 28.733c-2.013 1.05-12.44 5.337-14.66 6.494s-3.453 1.146-5.207.308-12.85-5.32-14.85-6.276-2.04-1.613-.077-2.382l15.332-5.935c2.332-.837 3.14-.867 5.126-.14s12.35 4.853 14.312 5.57 2.037 1.31.024 2.36z"
+ /></defs
+ ><g transform="matrix(.848327 0 0 .848327 -7.883573 -9.449691)"
+ ><use fill="#a41e11" xlink:href="#a" /><path
+ d="m45.536 34.95c-2.013 1.05-12.44 5.337-14.66 6.494s-3.453 1.146-5.207.308-12.85-5.32-14.85-6.276-2.04-1.613-.077-2.382l15.332-5.936c2.332-.836 3.14-.867 5.126-.14s12.35 4.852 14.31 5.582 2.037 1.31.024 2.36z"
+ fill="#d82c20"
+ /><use fill="#a41e11" xlink:href="#a" y="-6.218" /><use fill="#d82c20" xlink:href="#b" /><path
+ d="m45.536 26.098c-2.013 1.05-12.44 5.337-14.66 6.495s-3.453 1.146-5.207.308-12.85-5.32-14.85-6.276c-1-.478-1.524-.88-1.524-1.26v-3.815s14.447-3.145 16.78-3.982 3.14-.867 5.126-.14 13.853 2.868 15.814 3.587v3.76c0 .377-.452.8-1.477 1.324z"
+ fill="#a41e11"
+ /><use fill="#d82c20" xlink:href="#b" y="-6.449" /><g fill="#fff"
+ ><path
+ d="m29.096 20.712-1.182-1.965-3.774-.34 2.816-1.016-.845-1.56 2.636 1.03 2.486-.814-.672 1.612 2.534.95-3.268.34zm-6.296 3.912 8.74-1.342-2.64 3.872z"
+ /><ellipse cx="20.444" cy="21.402" rx="4.672" ry="1.811" /></g
+ ><path d="m42.132 21.138-5.17 2.042-.004-4.087z" fill="#7a0c00" /><path
+ d="m36.963 23.18-.56.22-5.166-2.042 5.723-2.264z"
+ fill="#ad2115"
+ /></g
+ ></svg
+>
diff --git a/apps/client/src/lib/components/svg/databases/index.ts b/apps/client/src/lib/components/svg/databases/index.ts
new file mode 100644
index 0000000000..e200b53111
--- /dev/null
+++ b/apps/client/src/lib/components/svg/databases/index.ts
@@ -0,0 +1,11 @@
+//@ts-nocheck
+export { default as Clickhouse } from './Clickhouse.svelte';
+export { default as CouchDB } from './CouchDB.svelte';
+export { default as MariaDB } from './MariaDB.svelte';
+export { default as MongoDB } from './MongoDB.svelte';
+export { default as MySQL } from './MySQL.svelte';
+export { default as PostgreSQL } from './PostgreSQL.svelte';
+export { default as Redis } from './Redis.svelte';
+export { default as EdgeDB } from './EdgeDB.svelte';
+
+
diff --git a/apps/client/src/lib/components/svg/servers/LocalDockerIcon.svelte b/apps/client/src/lib/components/svg/servers/LocalDockerIcon.svelte
new file mode 100644
index 0000000000..f3ab3be560
--- /dev/null
+++ b/apps/client/src/lib/components/svg/servers/LocalDockerIcon.svelte
@@ -0,0 +1,26 @@
+<script>
+ export let isAbsolute=false;
+</script>
+<svg
+ xmlns="http://www.w3.org/2000/svg"
+ class={isAbsolute ? 'absolute top-0 left-0 -m-2 h-12 w-12 text-sky-500' : 'mx-auto w-8 h-8 text-sky-500'}
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+>
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <path
+ d="M22 12.54c-1.804 -.345 -2.701 -1.08 -3.523 -2.94c-.487 .696 -1.102 1.568 -.92 2.4c.028 .238 -.32 1.002 -.557 1h-14c0 5.208 3.164 7 6.196 7c4.124 .022 7.828 -1.376 9.854 -5c1.146 -.101 2.296 -1.505 2.95 -2.46z"
+ />
+ <path d="M5 10h3v3h-3z" />
+ <path d="M8 10h3v3h-3z" />
+ <path d="M11 10h3v3h-3z" />
+ <path d="M8 7h3v3h-3z" />
+ <path d="M11 7h3v3h-3z" />
+ <path d="M11 4h3v3h-3z" />
+ <path d="M4.571 18c1.5 0 2.047 -.074 2.958 -.78" />
+ <line x1="10" y1="16" x2="10" y2="16.01" />
+</svg>
diff --git a/apps/client/src/lib/components/svg/servers/RemoteDockerIcon.svelte b/apps/client/src/lib/components/svg/servers/RemoteDockerIcon.svelte
new file mode 100644
index 0000000000..1d00a69004
--- /dev/null
+++ b/apps/client/src/lib/components/svg/servers/RemoteDockerIcon.svelte
@@ -0,0 +1,16 @@
+<svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="absolute top-0 left-9 -m-2 h-6 w-6 text-sky-500 rotate-45"
+ viewBox="0 0 24 24"
+ stroke-width="3"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+>
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <line x1="12" y1="18" x2="12.01" y2="18" />
+ <path d="M9.172 15.172a4 4 0 0 1 5.656 0" />
+ <path d="M6.343 12.343a8 8 0 0 1 11.314 0" />
+ <path d="M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0" />
+</svg>
diff --git a/apps/client/src/lib/components/svg/services/ServiceIcons.svelte b/apps/client/src/lib/components/svg/services/ServiceIcons.svelte
new file mode 100644
index 0000000000..7f146e3fbe
--- /dev/null
+++ b/apps/client/src/lib/components/svg/services/ServiceIcons.svelte
@@ -0,0 +1,59 @@
+<script lang="ts">
+ export let type: string;
+ export let isAbsolute = false;
+ let fallback = '/icons/default.png';
+ const handleError = (ev: { target: { src: string } }) => (ev.target.src = fallback);
+ let extension = 'png';
+ let svgs = [
+ 'pocketbase',
+ 'gitea',
+ 'languagetool',
+ 'meilisearch',
+ 'n8n',
+ 'glitchtip',
+ 'searxng',
+ 'umami',
+ 'uptimekuma',
+ 'vaultwarden',
+ 'weblate',
+ 'wordpress'
+ ];
+
+ const name: any =
+ type &&
+ (type[0].toUpperCase() + type.substring(1).toLowerCase())
+ .replaceAll('.', '')
+ .replaceAll(' ', '')
+ .split('-')[0]
+ .toLowerCase();
+
+ if (svgs.includes(name)) {
+ extension = 'svg';
+ }
+
+ function generateClass() {
+ switch (name) {
+ case 'n8n':
+ if (isAbsolute) {
+ return 'w-12 h-12 absolute -m-9 -mt-12';
+ }
+ return 'w-12 h-12 -mt-3';
+ case 'weblate':
+ if (isAbsolute) {
+ return 'w-12 h-12 absolute -m-9 -mt-12';
+ }
+ return 'w-12 h-12 -mt-3';
+ default:
+ return isAbsolute ? 'w-10 h-10 absolute -m-4 -mt-9 left-0' : 'w-10 h-10';
+ }
+ }
+</script>
+
+{#if name}
+ <img
+ class={generateClass()}
+ src={`/icons/${name}.${extension}`}
+ on:error={handleError}
+ alt={`Icon of ${name}`}
+ />
+{/if}
diff --git a/apps/client/src/lib/components/svg/sources/GithubIcon.svelte b/apps/client/src/lib/components/svg/sources/GithubIcon.svelte
new file mode 100644
index 0000000000..b562101779
--- /dev/null
+++ b/apps/client/src/lib/components/svg/sources/GithubIcon.svelte
@@ -0,0 +1,11 @@
+<svg viewBox="0 0 128 128" class="h-10 w-10">
+ <g fill="#ffffff"
+ ><path
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ d="M64 5.103c-33.347 0-60.388 27.035-60.388 60.388 0 26.682 17.303 49.317 41.297 57.303 3.017.56 4.125-1.31 4.125-2.905 0-1.44-.056-6.197-.082-11.243-16.8 3.653-20.345-7.125-20.345-7.125-2.747-6.98-6.705-8.836-6.705-8.836-5.48-3.748.413-3.67.413-3.67 6.063.425 9.257 6.223 9.257 6.223 5.386 9.23 14.127 6.562 17.573 5.02.542-3.903 2.107-6.568 3.834-8.076-13.413-1.525-27.514-6.704-27.514-29.843 0-6.593 2.36-11.98 6.223-16.21-.628-1.52-2.695-7.662.584-15.98 0 0 5.07-1.623 16.61 6.19C53.7 35 58.867 34.327 64 34.304c5.13.023 10.3.694 15.127 2.033 11.526-7.813 16.59-6.19 16.59-6.19 3.287 8.317 1.22 14.46.593 15.98 3.872 4.23 6.215 9.617 6.215 16.21 0 23.194-14.127 28.3-27.574 29.796 2.167 1.874 4.097 5.55 4.097 11.183 0 8.08-.07 14.583-.07 16.572 0 1.607 1.088 3.49 4.148 2.897 23.98-7.994 41.263-30.622 41.263-57.294C124.388 32.14 97.35 5.104 64 5.104z"
+ /><path
+ d="M26.484 91.806c-.133.3-.605.39-1.035.185-.44-.196-.685-.605-.543-.906.13-.31.603-.395 1.04-.188.44.197.69.61.537.91zm2.446 2.729c-.287.267-.85.143-1.232-.28-.396-.42-.47-.983-.177-1.254.298-.266.844-.14 1.24.28.394.426.472.984.17 1.255zM31.312 98.012c-.37.258-.976.017-1.35-.52-.37-.538-.37-1.183.01-1.44.373-.258.97-.025 1.35.507.368.545.368 1.19-.01 1.452zm3.261 3.361c-.33.365-1.036.267-1.552-.23-.527-.487-.674-1.18-.343-1.544.336-.366 1.045-.264 1.564.23.527.486.686 1.18.333 1.543zm4.5 1.951c-.147.473-.825.688-1.51.486-.683-.207-1.13-.76-.99-1.238.14-.477.823-.7 1.512-.485.683.206 1.13.756.988 1.237zm4.943.361c.017.498-.563.91-1.28.92-.723.017-1.308-.387-1.315-.877 0-.503.568-.91 1.29-.924.717-.013 1.306.387 1.306.88zm4.598-.782c.086.485-.413.984-1.126 1.117-.7.13-1.35-.172-1.44-.653-.086-.498.422-.997 1.122-1.126.714-.123 1.354.17 1.444.663zm0 0"
+ /></g
+ >
+</svg>
diff --git a/apps/client/src/lib/components/svg/sources/GitlabIcon.svelte b/apps/client/src/lib/components/svg/sources/GitlabIcon.svelte
new file mode 100644
index 0000000000..3e8c8a84c5
--- /dev/null
+++ b/apps/client/src/lib/components/svg/sources/GitlabIcon.svelte
@@ -0,0 +1,21 @@
+<svg viewBox="0 0 128 128" class="h-10 w-10">
+ <path
+ fill="#FC6D26"
+ d="M126.615 72.31l-7.034-21.647L105.64 7.76c-.716-2.206-3.84-2.206-4.556 0l-13.94 42.903H40.856L26.916 7.76c-.717-2.206-3.84-2.206-4.557 0L8.42 50.664 1.385 72.31a4.792 4.792 0 001.74 5.358L64 121.894l60.874-44.227a4.793 4.793 0 001.74-5.357"
+ /><path fill="#E24329" d="M64 121.894l23.144-71.23H40.856L64 121.893z" /><path
+ fill="#FC6D26"
+ d="M64 121.894l-23.144-71.23H8.42L64 121.893z"
+ /><path
+ fill="#FCA326"
+ d="M8.42 50.663L1.384 72.31a4.79 4.79 0 001.74 5.357L64 121.894 8.42 50.664z"
+ /><path
+ fill="#E24329"
+ d="M8.42 50.663h32.436L26.916 7.76c-.717-2.206-3.84-2.206-4.557 0L8.42 50.664z"
+ /><path fill="#FC6D26" d="M64 121.894l23.144-71.23h32.437L64 121.893z" /><path
+ fill="#FCA326"
+ d="M119.58 50.663l7.035 21.647a4.79 4.79 0 01-1.74 5.357L64 121.894l55.58-71.23z"
+ /><path
+ fill="#E24329"
+ d="M119.58 50.663H87.145l13.94-42.902c.717-2.206 3.84-2.206 4.557 0l13.94 42.903z"
+ />
+</svg>
diff --git a/apps/client/src/lib/store.ts b/apps/client/src/lib/store.ts
index c58c5921a5..0022e6c93b 100644
--- a/apps/client/src/lib/store.ts
+++ b/apps/client/src/lib/store.ts
@@ -1,11 +1,12 @@
import { writable, readable, type Writable, type Readable } from 'svelte/store';
import superjson from 'superjson';
-import type { AppRouter } from 'server/src/router';
+import type { AppRouter, PrismaPermission } from 'server/src/trpc';
import { createTRPCProxyClient, httpBatchLink } from '@trpc/client';
import { browser, dev } from '$app/environment';
import Cookies from 'js-cookie';
-const serverBaseUrl = dev ? `http://${browser && window.location.hostname}:2022` : '';
+import cuid from 'cuid';
+export const serverBaseUrl = dev ? `http://${browser && window.location.hostname}:2022` : '';
export let token: string = Cookies.get('token') || '';
export const t = createTRPCProxyClient<AppRouter>({
transformer: superjson,
@@ -20,3 +21,96 @@ export const t = createTRPCProxyClient<AppRouter>({
})
]
});
+
+interface AppSession {
+ isRegistrationEnabled: boolean;
+ token?: string;
+ ipv4: string | null;
+ ipv6: string | null;
+ version: string | null;
+ userId: string | null;
+ teamId: string | null;
+ permission: string;
+ isAdmin: boolean;
+ whiteLabeled: boolean;
+ whiteLabeledDetails: {
+ icon: string | null;
+ };
+ tokens: {
+ github: string | null;
+ gitlab: string | null;
+ };
+ pendingInvitations: Array<any>;
+}
+
+export const appSession: Writable<AppSession> = writable({
+ isRegistrationEnabled: false,
+ ipv4: null,
+ ipv6: null,
+ version: null,
+ userId: null,
+ teamId: null,
+ permission: 'read',
+ isAdmin: false,
+ whiteLabeled: false,
+ whiteLabeledDetails: {
+ icon: null
+ },
+ tokens: {
+ github: null,
+ gitlab: null
+ },
+ pendingInvitations: []
+});
+
+interface AddToast {
+ type?: 'info' | 'success' | 'error';
+ message: string;
+ timeout?: number | undefined;
+}
+export const toasts: any = writable([]);
+
+export const dismissToast = (id: string) => {
+ toasts.update((all: any) => all.filter((t: any) => t.id !== id));
+};
+export const pauseToast = (id: string) => {
+ toasts.update((all: any) => {
+ const index = all.findIndex((t: any) => t.id === id);
+ if (index > -1) clearTimeout(all[index].timeoutInterval);
+ return all;
+ });
+};
+export const resumeToast = (id: string) => {
+ toasts.update((all: any) => {
+ const index = all.findIndex((t: any) => t.id === id);
+ if (index > -1) {
+ all[index].timeoutInterval = setTimeout(() => {
+ dismissToast(id);
+ }, all[index].timeout);
+ }
+ return all;
+ });
+};
+
+export const addToast = (toast: AddToast) => {
+ const id = cuid();
+ const defaults = {
+ id,
+ type: 'info',
+ timeout: 2000
+ };
+ let t: any = { ...defaults, ...toast };
+ if (t.timeout) t.timeoutInterval = setTimeout(() => dismissToast(id), t.timeout);
+ toasts.update((all: any) => [t, ...all]);
+};
+
+export const features = readable({
+ beta: browser && window.localStorage.getItem('beta') === 'true',
+ latestVersion: browser && window.localStorage.getItem('latestVersion')
+});
+
+export const updateLoading: Writable<boolean> = writable(false);
+export const isUpdateAvailable: Writable<boolean> = writable(false);
+export const latestVersion: Writable<string> = writable('latest');
+export const loginEmail: Writable<string | undefined> = writable();
+export const search: any = writable('');
diff --git a/apps/client/src/routes/+error.svelte b/apps/client/src/routes/+error.svelte
new file mode 100644
index 0000000000..e77b92cd8f
--- /dev/null
+++ b/apps/client/src/routes/+error.svelte
@@ -0,0 +1,5 @@
+<script>
+ import { page } from '$app/stores';
+</script>
+
+<h1>{$page.error.message}</h1>
diff --git a/apps/client/src/routes/+layout.svelte b/apps/client/src/routes/+layout.svelte
index 64e89a8d2b..0664797ca5 100644
--- a/apps/client/src/routes/+layout.svelte
+++ b/apps/client/src/routes/+layout.svelte
@@ -1,7 +1,416 @@
<script lang="ts">
+ export let data: PageData;
+ import type { PageData } from './$types';
+
import '../app.postcss';
+ import { appSession } from '$lib/store';
+ import Tooltip from '$lib/components/Tooltip.svelte';
+ import { page } from '$app/stores';
+ import UpdateAvailable from '$lib/components/UpdateAvailable.svelte';
+ import Cookies from 'js-cookie';
+ import { errorNotification } from '$lib/common';
+ import Toasts from '$lib/components/Toasts.svelte';
+
+ let sidedrawerToggler: HTMLInputElement;
+
+ $appSession = {
+ ...$appSession,
+ ...data.data
+ };
+
+ const closeDrawer = () => (sidedrawerToggler.checked = false);
+ async function logout() {
+ try {
+ Cookies.remove('token');
+ return window.location.replace('/login');
+ } catch (error) {
+ return errorNotification(error);
+ }
+ }
</script>
-<div class="h-full">
- <slot />
+<svelte:head>
+ {#if !$appSession.whiteLabeled}
+ <title>Coolify</title>
+ <link rel="icon" href="/favicon.png" />
+ {:else if $appSession.whiteLabeledDetails.icon}
+ <title>Coolify</title>
+ <link rel="icon" href={$appSession.whiteLabeledDetails.icon} />
+ {/if}
+</svelte:head>
+<Toasts />
+<div class="drawer">
+ <input id="main-drawer" type="checkbox" class="drawer-toggle" bind:this={sidedrawerToggler} />
+ <div class="drawer-content">
+ {#if $appSession.userId}
+ <Tooltip triggeredBy="#iam" placement="right" color="bg-iam">IAM</Tooltip>
+ <Tooltip triggeredBy="#settings" placement="right" color="bg-settings text-black"
+ >Settings</Tooltip
+ >
+ <Tooltip triggeredBy="#documentation" placement="right" color="bg-info">Documentation</Tooltip
+ >
+ <Tooltip triggeredBy="#logout" placement="right" color="bg-red-600">Logout</Tooltip>
+ <nav class="nav-main hidden lg:block z-20">
+ <div class="flex h-screen w-full flex-col items-center transition-all duration-100">
+ {#if !$appSession.whiteLabeled}
+ <div class="mb-2 mt-4 h-10 w-10">
+ <img src="/favicon.png" alt="coolLabs logo" />
+ </div>
+ {:else if $appSession.whiteLabeledDetails.icon}
+ <div class="mb-2 mt-4 h-10 w-10">
+ <img src={$appSession.whiteLabeledDetails.icon} alt="White labeled logo" />
+ </div>
+ {/if}
+ <div class="flex flex-col space-y-2 py-2" class:mt-2={$appSession.whiteLabeled}>
+ <a
+ id="dashboard"
+ href="/"
+ class="icons hover:text-pink-500"
+ class:text-pink-500={$page.url.pathname === '/'}
+ class:bg-coolgray-500={$page.url.pathname === '/'}
+ class:bg-coolgray-200={!($page.url.pathname === '/')}
+ >
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="h-9 w-9"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <path
+ d="M19 8.71l-5.333 -4.148a2.666 2.666 0 0 0 -3.274 0l-5.334 4.148a2.665 2.665 0 0 0 -1.029 2.105v7.2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-7.2c0 -.823 -.38 -1.6 -1.03 -2.105"
+ />
+ <path d="M16 15c-2.21 1.333 -5.792 1.333 -8 0" />
+ </svg>
+ </a>
+ {#if $appSession.teamId === '0'}
+ <a
+ id="servers"
+ href="/servers"
+ class="icons hover:text-sky-500"
+ class:text-sky-500={$page.url.pathname === '/servers'}
+ class:bg-coolgray-500={$page.url.pathname === '/servers'}
+ class:bg-coolgray-200={!($page.url.pathname === '/servers')}
+ >
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="w-8 h-8 mx-auto"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <rect x="3" y="4" width="18" height="8" rx="3" />
+ <rect x="3" y="12" width="18" height="8" rx="3" />
+ <line x1="7" y1="8" x2="7" y2="8.01" />
+ <line x1="7" y1="16" x2="7" y2="16.01" />
+ </svg>
+ </a>
+ {/if}
+ </div>
+ <Tooltip triggeredBy="#dashboard" placement="right">Dashboard</Tooltip>
+ <Tooltip triggeredBy="#servers" placement="right">Servers</Tooltip>
+ <div class="flex-1" />
+ <div class="lg:block hidden">
+ <!-- <UpdateAvailable /> -->
+ </div>
+ <div class="flex flex-col space-y-2 py-2">
+ <a
+ id="iam"
+ href={$appSession.pendingInvitations.length > 0 ? '/iam/pending' : '/iam'}
+ class="icons hover:text-iam indicator"
+ class:text-iam={$page.url.pathname.startsWith('/iam')}
+ class:bg-coolgray-500={$page.url.pathname.startsWith('/iam')}
+ >
+ {#if $appSession.pendingInvitations.length > 0}
+ <span class="indicator-item rounded-full badge badge-primary mr-2"
+ >{$appSession.pendingInvitations.length}</span
+ >
+ {/if}<svg
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 24 24"
+ class="h-9 w-9"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <circle cx="9" cy="7" r="4" />
+ <path d="M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2" />
+ <path d="M16 3.13a4 4 0 0 1 0 7.75" />
+ <path d="M21 21v-2a4 4 0 0 0 -3 -3.85" />
+ </svg>
+ </a>
+ <a
+ id="settings"
+ href={$appSession.teamId === '0' ? '/settings/coolify' : '/settings/docker'}
+ class="icons hover:text-settings"
+ class:text-settings={$page.url.pathname.startsWith('/settings')}
+ class:bg-coolgray-500={$page.url.pathname.startsWith('/settings')}
+ >
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 24 24"
+ class="h-9 w-9"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <path
+ d="M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z"
+ />
+ <circle cx="12" cy="12" r="3" />
+ </svg>
+ </a>
+ <a
+ id="documentation"
+ href="https://docs.coollabs.io/coolify/"
+ target="_blank"
+ rel="noopener noreferrer"
+ class="icons hover:text-info"
+ >
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ fill="none"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ class="w-9 h-9"
+ >
+ <path
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ d="M12 6.042A8.967 8.967 0 006 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 016 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 016-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0018 18a8.967 8.967 0 00-6 2.292m0-14.25v14.25"
+ />
+ </svg>
+ </a>
+
+ <!-- svelte-ignore a11y-click-events-have-key-events -->
+ <div
+ id="logout"
+ class="icons bg-coolgray-200 hover:text-error cursor-pointer"
+ on:click={logout}
+ >
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="ml-1 h-8 w-8"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <path
+ d="M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2"
+ />
+ <path d="M7 12h14l-3 -3m0 6l3 -3" />
+ </svg>
+ </div>
+ <!-- <div class="lg:block">
+ <LocalePicker/>
+ </div> -->
+ <div
+ class="w-full text-center font-bold text-stone-400 hover:bg-coolgray-200 hover:text-white"
+ >
+ <a
+ class="text-[10px] no-underline"
+ href={`https://github.com/coollabsio/coolify/releases/tag/v${$appSession.version}`}
+ target="_blank noreferrer">v{$appSession.version}</a
+ >
+ </div>
+ </div>
+ </div>
+ </nav>
+ {#if $appSession.whiteLabeled}
+ <span class="fixed bottom-0 left-[50px] z-50 m-2 px-4 text-xs text-stone-700"
+ >Powered by <a href="https://coolify.io" target="_blank noreferrer">Coolify</a></span
+ >
+ {/if}
+ {/if}
+ <div
+ class="navbar lg:hidden space-x-2 flex flex-row justify-between bg-coollabs"
+ class:hidden={!$appSession.userId}
+ >
+ <div>
+ <label for="main-drawer" class="drawer-button btn btn-square btn-ghost flex-col">
+ <span class="burger bg-white" />
+ <span class="burger bg-white" />
+ <span class="burger bg-white" />
+ </label>
+ <div class="prose flex flex-row justify-between space-x-1 w-full items-center pr-3">
+ {#if !$appSession.whiteLabeled}
+ <h3 class="mb-0 text-white">Coolify</h3>
+ {/if}
+ </div>
+ </div>
+ <!-- <LocalePicker /> -->
+ </div>
+ <main>
+ <div class={$appSession.userId ? 'lg:pl-16' : null}>
+ <slot />
+ </div>
+ </main>
+ </div>
+ <div class="drawer-side">
+ <label for="main-drawer" class="drawer-overlay w-full" />
+ <ul class="menu bg-coolgray-200 w-60 p-2 space-y-3 pt-4 ">
+ <li>
+ <a
+ class="no-underline icons hover:text-white hover:bg-pink-500"
+ href="/"
+ class:bg-pink-500={$page.url.pathname === '/'}
+ on:click={closeDrawer}
+ >
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="h-8 w-8"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <path
+ d="M19 8.71l-5.333 -4.148a2.666 2.666 0 0 0 -3.274 0l-5.334 4.148a2.665 2.665 0 0 0 -1.029 2.105v7.2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-7.2c0 -.823 -.38 -1.6 -1.03 -2.105"
+ />
+ <path d="M16 15c-2.21 1.333 -5.792 1.333 -8 0" />
+ </svg>
+ Dashboard
+ </a>
+ </li>
+
+ <li>
+ <a
+ id="servers"
+ class="no-underline icons hover:text-white hover:bg-sky-500"
+ href="/servers"
+ class:bg-sky-500={$page.url.pathname.startsWith('/servers')}
+ on:click={closeDrawer}
+ >
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="w-8 h-8"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <rect x="3" y="4" width="18" height="8" rx="3" />
+ <rect x="3" y="12" width="18" height="8" rx="3" />
+ <line x1="7" y1="8" x2="7" y2="8.01" />
+ <line x1="7" y1="16" x2="7" y2="16.01" />
+ </svg>
+ Servers
+ </a>
+ </li>
+ <li>
+ <a
+ class="no-underline icons hover:text-white hover:bg-iam"
+ href="/iam"
+ class:bg-iam={$page.url.pathname.startsWith('/iam')}
+ on:click={closeDrawer}
+ ><svg
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 24 24"
+ class="h-8 w-8"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <circle cx="9" cy="7" r="4" />
+ <path d="M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2" />
+ <path d="M16 3.13a4 4 0 0 1 0 7.75" />
+ <path d="M21 21v-2a4 4 0 0 0 -3 -3.85" />
+ </svg>
+ IAM {#if $appSession.pendingInvitations.length > 0}
+ <span class="indicator-item rounded-full badge badge-primary"
+ >{pendingInvitations.length}</span
+ >
+ {/if}
+ </a>
+ </li>
+ <li>
+ <a
+ class="no-underline icons hover:text-black hover:bg-settings"
+ href={$appSession.teamId === '0' ? '/settings/coolify' : '/settings/ssh'}
+ class:bg-settings={$page.url.pathname.startsWith('/settings')}
+ class:text-black={$page.url.pathname.startsWith('/settings')}
+ on:click={closeDrawer}
+ >
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 24 24"
+ class="h-8 w-8"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <path
+ d="M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z"
+ />
+ <circle cx="12" cy="12" r="3" />
+ </svg>
+ Settings
+ </a>
+ </li>
+ <li class="flex-1 bg-transparent" />
+ <div class="block lg:hidden">
+ <!-- <UpdateAvailable /> -->
+ </div>
+ <li>
+ <!-- svelte-ignore a11y-click-events-have-key-events -->
+ <div class="no-underline icons hover:bg-error" on:click={logout}>
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="ml-1 h-8 w-8"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <path
+ d="M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2"
+ />
+ <path d="M7 12h14l-3 -3m0 6l3 -3" />
+ </svg>
+ <div class="-ml-1">Logout</div>
+ </div>
+ </li>
+ <li class="w-full">
+ <a
+ class="text-xs hover:bg-coolgray-200 no-underline hover:text-white text-right"
+ href={`https://github.com/coollabsio/coolify/releases/tag/v${$appSession.version}`}
+ target="_blank noreferrer">v{$appSession.version}</a
+ >
+ </li>
+ </ul>
+ </div>
</div>
diff --git a/apps/client/src/routes/+layout.ts b/apps/client/src/routes/+layout.ts
new file mode 100644
index 0000000000..127c1bc08d
--- /dev/null
+++ b/apps/client/src/routes/+layout.ts
@@ -0,0 +1,39 @@
+import { error } from '@sveltejs/kit';
+import { t } from '$lib/store';
+import type { LayoutLoad } from './$types';
+import { redirect } from '@sveltejs/kit';
+import Cookies from 'js-cookie';
+export const ssr = false;
+
+export const load: LayoutLoad = async ({ url }) => {
+ const { pathname } = new URL(url);
+ const baseSettings = await t.settings.getBaseSettings.query();
+ try {
+ if (pathname === '/login' || pathname === '/register') {
+ return {
+ ...baseSettings
+ };
+ }
+ const settings = await t.settings.getInstanceSettings.query();
+ if (settings.data.token) {
+ Cookies.set('token', settings.data.token);
+ }
+ return {
+ ...baseSettings,
+ ...settings
+ };
+ } catch (err) {
+ if (err?.data?.httpStatus == 401) {
+ throw redirect(307, '/login');
+ }
+ if (err instanceof Error) {
+ throw error(500, {
+ message: 'An unexpected error occurred, please try again later.' + '<br><br>' + err.message
+ });
+ }
+
+ throw error(500, {
+ message: 'An unexpected error occurred, please try again later.'
+ });
+ }
+};
diff --git a/apps/client/src/routes/+page.svelte b/apps/client/src/routes/+page.svelte
index 952613f4dc..b3e1c28795 100644
--- a/apps/client/src/routes/+page.svelte
+++ b/apps/client/src/routes/+page.svelte
@@ -1,10 +1,1651 @@
<script lang="ts">
- import { t } from '$lib/store';
+ import type { PageData } from './$types';
+
+ export let data: PageData;
+ const {
+ applications,
+ foundUnconfiguredApplication,
+ foundUnconfiguredService,
+ foundUnconfiguredDatabase,
+ databases,
+ services,
+ gitSources,
+ destinations,
+ settings
+ } = data;
+ let filtered: any = setInitials();
+ import { asyncSleep, errorNotification, getRndInteger } from '$lib/common';
+ import { appSession, search, t } from '$lib/store';
+
+ import ApplicationsIcons from '$lib/components/svg/applications/ApplicationIcons.svelte';
+ import DatabaseIcons from '$lib/components/svg/databases/DatabaseIcons.svelte';
+ import ServiceIcons from '$lib/components/svg/services/ServiceIcons.svelte';
+ import { dev } from '$app/environment';
+ import NewResource from '$lib/components/NewResource.svelte';
import { onMount } from 'svelte';
- onMount(async () => {
- const a = await t.api.getConnection.query();
- console.log(a);
+ import DeleteIcon from '$lib/components/DeleteIcon.svelte';
+
+ let numberOfGetStatus = 0;
+ let status: any = {};
+ let noInitialStatus: any = {
+ applications: false,
+ services: false,
+ databases: false
+ };
+ let loading = {
+ applications: false,
+ services: false,
+ databases: false
+ };
+ let searchInput: HTMLInputElement;
+ doSearch();
+ onMount(() => {
+ setTimeout(() => {
+ searchInput.focus();
+ }, 100);
});
+ async function refreshStatusApplications() {
+ noInitialStatus.applications = false;
+ numberOfGetStatus = 0;
+ for (const application of applications) {
+ status[application.id] = 'loading';
+ getStatus(application, true);
+ }
+ }
+ async function refreshStatusServices() {
+ noInitialStatus.services = false;
+ numberOfGetStatus = 0;
+ for (const service of services) {
+ status[service.id] = 'loading';
+ getStatus(service, true);
+ }
+ }
+ async function refreshStatusDatabases() {
+ noInitialStatus.databases = false;
+ numberOfGetStatus = 0;
+ for (const database of databases) {
+ status[database.id] = 'loading';
+ getStatus(database, true);
+ }
+ }
+ function setInitials(onlyOthers: boolean = false) {
+ return {
+ applications:
+ !onlyOthers &&
+ applications.filter(
+ (application: any) =>
+ application?.teams.length > 0 && application.teams[0].id === $appSession.teamId
+ ),
+ otherApplications: applications.filter(
+ (application: any) =>
+ application?.teams.length > 0 && application.teams[0].id !== $appSession.teamId
+ ),
+ databases:
+ !onlyOthers &&
+ databases.filter(
+ (database: any) =>
+ database?.teams.length > 0 && database.teams[0].id === $appSession.teamId
+ ),
+ otherDatabases: databases.filter(
+ (database: any) => database?.teams.length > 0 && database.teams[0].id !== $appSession.teamId
+ ),
+ services:
+ !onlyOthers &&
+ services.filter(
+ (service: any) => service?.teams.length > 0 && service.teams[0].id === $appSession.teamId
+ ),
+ otherServices: services.filter(
+ (service: any) => service?.teams.length > 0 && service.teams[0].id !== $appSession.teamId
+ ),
+ gitSources:
+ !onlyOthers &&
+ gitSources.filter(
+ (gitSource: any) =>
+ gitSource?.teams.length > 0 && gitSource.teams[0].id === $appSession.teamId
+ ),
+ otherGitSources: gitSources.filter(
+ (gitSource: any) =>
+ gitSource?.teams.length > 0 && gitSource.teams[0].id !== $appSession.teamId
+ ),
+ destinations:
+ !onlyOthers &&
+ destinations.filter(
+ (destination: any) =>
+ destination?.teams.length > 0 && destination.teams[0].id === $appSession.teamId
+ ),
+ otherDestinations: destinations.filter(
+ (destination: any) =>
+ destination?.teams.length > 0 && destination.teams[0].id !== $appSession.teamId
+ )
+ };
+ }
+ function clearFiltered() {
+ filtered.applications = [];
+ filtered.otherApplications = [];
+ filtered.databases = [];
+ filtered.otherDatabases = [];
+ filtered.services = [];
+ filtered.otherServices = [];
+ filtered.gitSources = [];
+ filtered.otherGitSources = [];
+ filtered.destinations = [];
+ filtered.otherDestinations = [];
+ }
+
+ async function getStatus(resources: any, force: boolean = false) {
+ const { id, buildPack, dualCerts, type, simpleDockerfile } = resources;
+ if (buildPack && applications.length + filtered.otherApplications.length > 10 && !force) {
+ noInitialStatus.applications = true;
+ return;
+ }
+ if (type && services.length + filtered.otherServices.length > 10 && !force) {
+ noInitialStatus.services = true;
+ return;
+ }
+ if (databases.length + filtered.otherDatabases.length > 10 && !force) {
+ noInitialStatus.databases = true;
+ return;
+ }
+ if (status[id] && !force) return status[id];
+ while (numberOfGetStatus > 1) {
+ await asyncSleep(getRndInteger(100, 500));
+ }
+ try {
+ numberOfGetStatus++;
+ let isRunning = false;
+ let isDegraded = false;
+ if (buildPack || simpleDockerfile) {
+ const response = await t.applications.status.query({ id })
+ if (response.length === 0) {
+ isRunning = false;
+ } else if (response.length === 1) {
+ isRunning = response[0].status.isRunning;
+ } else {
+ let overallStatus = false;
+ for (const oneStatus of response) {
+ if (oneStatus.status.isRunning) {
+ overallStatus = true;
+ } else {
+ isDegraded = true;
+ break;
+ }
+ }
+ if (overallStatus) {
+ isRunning = true;
+ } else {
+ isRunning = false;
+ }
+ }
+ } else if (typeof dualCerts !== 'undefined') {
+ const response = await t.services.status.query({ id })
+ if (Object.keys(response).length === 0) {
+ isRunning = false;
+ } else {
+ let overallStatus = false;
+ for (const oneStatus of Object.keys(response)) {
+ if (response[oneStatus].status.isRunning) {
+ overallStatus = true;
+ } else {
+ isDegraded = true;
+ break;
+ }
+ }
+ if (overallStatus) {
+ isRunning = true;
+ } else {
+ isRunning = false;
+ }
+ }
+ } else {
+ const response = await get(`/databases/${id}/status`);
+ isRunning = response.isRunning;
+ }
+
+ if (isRunning) {
+ status[id] = 'running';
+ return 'running';
+ } else if (isDegraded) {
+ status[id] = 'degraded';
+ return 'degraded';
+ } else {
+ status[id] = 'stopped';
+ return 'stopped';
+ }
+ } catch (error) {
+ status[id] = 'error';
+ return 'error';
+ } finally {
+ status = { ...status };
+ numberOfGetStatus--;
+ }
+ }
+ function filterState(state: string) {
+ clearFiltered();
+ filtered.applications = applications.filter((application: any) => {
+ if (status[application.id] === state && application.teams[0].id === $appSession.teamId)
+ return application;
+ });
+ filtered.otherApplications = applications.filter((application: any) => {
+ if (status[application.id] === state && application.teams[0].id !== $appSession.teamId)
+ return application;
+ });
+ filtered.databases = databases.filter((database: any) => {
+ if (status[database.id] === state && database.teams[0].id === $appSession.teamId)
+ return database;
+ });
+ filtered.otherDatabases = databases.filter((database: any) => {
+ if (status[database.id] === state && database.teams[0].id !== $appSession.teamId)
+ return database;
+ });
+ filtered.services = services.filter((service: any) => {
+ if (status[service.id] === state && service.teams[0].id === $appSession.teamId)
+ return service;
+ });
+ filtered.otherServices = services.filter((service: any) => {
+ if (status[service.id] === state && service.teams[0].id !== $appSession.teamId)
+ return service;
+ });
+ }
+ function filterSpecific(type: any) {
+ clearFiltered();
+ const otherType = 'other' + type[0].toUpperCase() + type.substring(1);
+ filtered[type] = eval(type).filter(
+ (resource: any) => resource.teams[0].id === $appSession.teamId
+ );
+ filtered[otherType] = eval(type).filter(
+ (resource: any) => resource.teams[0].id !== $appSession.teamId
+ );
+ }
+ function applicationFilters(application: any) {
+ return (
+ (application.id && application.id.toLowerCase().includes($search.toLowerCase())) ||
+ (application.name && application.name.toLowerCase().includes($search.toLowerCase())) ||
+ (application.fqdn && application.fqdn.toLowerCase().includes($search.toLowerCase())) ||
+ (application.dockerComposeConfiguration &&
+ application.dockerComposeConfiguration.toLowerCase().includes($search.toLowerCase())) ||
+ (application.repository &&
+ application.repository.toLowerCase().includes($search.toLowerCase())) ||
+ (application.buildpack &&
+ application.buildpack.toLowerCase().includes($search.toLowerCase())) ||
+ (application.branch && application.branch.toLowerCase().includes($search.toLowerCase())) ||
+ (application.destinationDockerId &&
+ application.destinationDocker.name.toLowerCase().includes($search.toLowerCase())) ||
+ ('bot'.includes($search) && application.settings.isBot)
+ );
+ }
+ function databaseFilters(database: any) {
+ return (
+ (database.id && database.id.toLowerCase().includes($search.toLowerCase())) ||
+ (database.name && database.name.toLowerCase().includes($search.toLowerCase())) ||
+ (database.type && database.type.toLowerCase().includes($search.toLowerCase())) ||
+ (database.version && database.version.toLowerCase().includes($search.toLowerCase())) ||
+ (database.destinationDockerId &&
+ database.destinationDocker.name.toLowerCase().includes($search.toLowerCase()))
+ );
+ }
+ function serviceFilters(service: any) {
+ return (
+ (service.id && service.id.toLowerCase().includes($search.toLowerCase())) ||
+ (service.name && service.name.toLowerCase().includes($search.toLowerCase())) ||
+ (service.type && service.type.toLowerCase().includes($search.toLowerCase())) ||
+ (service.fqdn && service.fqdn.toLowerCase().includes($search.toLowerCase())) ||
+ (service.version && service.version.toLowerCase().includes($search.toLowerCase())) ||
+ (service.destinationDockerId &&
+ service.destinationDocker.name.toLowerCase().includes($search.toLowerCase()))
+ );
+ }
+ function gitSourceFilters(source: any) {
+ return (
+ (source.id && source.id.toLowerCase().includes($search.toLowerCase())) ||
+ (source.name && source.name.toLowerCase().includes($search.toLowerCase())) ||
+ (source.type && source.type.toLowerCase().includes($search.toLowerCase())) ||
+ (source.htmlUrl && source.htmlUrl.toLowerCase().includes($search.toLowerCase())) ||
+ (source.apiUrl && source.apiUrl.toLowerCase().includes($search.toLowerCase()))
+ );
+ }
+ function destinationFilters(destination: any) {
+ return (
+ (destination.id && destination.id.toLowerCase().includes($search.toLowerCase())) ||
+ (destination.name && destination.name.toLowerCase().includes($search.toLowerCase())) ||
+ (destination.type && destination.type.toLowerCase().includes($search.toLowerCase()))
+ );
+ }
+ function doSearch(bang?: string) {
+ if (bang || bang === '') $search = bang;
+ if ($search) {
+ filtered = setInitials();
+ if ($search.startsWith('!')) {
+ if ($search === '!running') {
+ filterState('running');
+ } else if ($search === '!stopped') {
+ filterState('stopped');
+ } else if ($search === '!error') {
+ filterState('error');
+ } else if ($search === '!app') {
+ filterSpecific('applications');
+ } else if ($search === '!db') {
+ filterSpecific('databases');
+ } else if ($search === '!service') {
+ filterSpecific('services');
+ } else if ($search === '!git') {
+ filterSpecific('gitSources');
+ } else if ($search === '!destination') {
+ filterSpecific('destinations');
+ } else if ($search === '!bot') {
+ clearFiltered();
+ filtered.applications = applications.filter((application: any) => {
+ return application.settings.isBot;
+ });
+ filtered.otherApplications = applications.filter((application: any) => {
+ return application.settings.isBot && application.teams[0].id !== $appSession.teamId;
+ });
+ } else if ($search === '!notmine') {
+ clearFiltered();
+ filtered = setInitials(true);
+ }
+ } else {
+ filtered.applications = filtered.applications.filter((application: any) =>
+ applicationFilters(application)
+ );
+ filtered.otherApplications = filtered.otherApplications.filter((application: any) =>
+ applicationFilters(application)
+ );
+ filtered.databases = filtered.databases.filter((database: any) =>
+ databaseFilters(database)
+ );
+ filtered.otherDatabases = filtered.otherDatabases.filter((database: any) =>
+ databaseFilters(database)
+ );
+ filtered.services = filtered.services.filter((service: any) => serviceFilters(service));
+ filtered.otherServices = filtered.otherServices.filter((service: any) =>
+ serviceFilters(service)
+ );
+ filtered.gitSources = filtered.gitSources.filter((source: any) => gitSourceFilters(source));
+ filtered.otherGitSources = filtered.otherGitSources.filter((source: any) =>
+ gitSourceFilters(source)
+ );
+ filtered.destinations = filtered.destinations.filter((destination: any) =>
+ destinationFilters(destination)
+ );
+ filtered.otherDestinations = filtered.otherDestinations.filter((destination: any) =>
+ destinationFilters(destination)
+ );
+ }
+ } else {
+ filtered = setInitials();
+ }
+ }
+ async function cleanupApplications() {
+ try {
+ const sure = confirm(
+ 'Are you sure? This will delete all UNCONFIGURED applications and their data.'
+ );
+ if (sure) {
+ // await post(`/applications/cleanup/unconfigured`, {});
+ return window.location.reload();
+ }
+ } catch (error) {
+ return errorNotification(error);
+ }
+ }
+ async function cleanupServices() {
+ try {
+ const sure = confirm(
+ 'Are you sure? This will delete all UNCONFIGURED services and their data.'
+ );
+ if (sure) {
+ // await post(`/services/cleanup/unconfigured`, {});
+ return window.location.reload();
+ }
+ } catch (error) {
+ return errorNotification(error);
+ }
+ }
+ async function cleanupDatabases() {
+ try {
+ const sure = confirm(
+ 'Are you sure? This will delete all UNCONFIGURED databases and their data.'
+ );
+ if (sure) {
+ // await post(`/databases/cleanup/unconfigured`, {});
+ return window.location.reload();
+ }
+ } catch (error) {
+ return errorNotification(error);
+ }
+ }
+ async function deleteApplication(id: string) {
+ try {
+ const sure = confirm('Are you sure? This will delete this application!');
+ if (sure) {
+ // await del(`/applications/${id}`, { force: true });
+ return window.location.reload();
+ }
+ } catch (error) {
+ return errorNotification(error);
+ }
+ }
+ async function deleteService(id: string) {
+ try {
+ const sure = confirm('Are you sure? This will delete this service!');
+ if (sure) {
+ // await del(`/services/${id}`, {});
+ return window.location.reload();
+ }
+ } catch (error) {
+ return errorNotification(error);
+ }
+ }
+ async function deleteDatabase(id: string) {
+ try {
+ const sure = confirm('Are you sure? This will delete this database!');
+ if (sure) {
+ // await del(`/databases/${id}`, { force: true });
+ return window.location.reload();
+ }
+ } catch (error) {
+ return errorNotification(error);
+ }
+ }
</script>
-<div>hello</div>
+<nav class="header">
+ <h1 class="mr-4 text-2xl font-bold">Dashboard</h1>
+ {#if $appSession.isAdmin && (applications.length !== 0 || destinations.length !== 0 || databases.length !== 0 || services.length !== 0 || gitSources.length !== 0 || destinations.length !== 0)}
+ <NewResource />
+ {/if}
+</nav>
+<div class="container lg:mx-auto lg:p-0 px-8 pt-5">
+ {#if applications.length !== 0 || destinations.length !== 0 || databases.length !== 0 || services.length !== 0 || gitSources.length !== 0 || destinations.length !== 0}
+ <div class="space-x-2 lg:flex lg:justify-center text-center mb-4 ">
+ <button
+ class="btn btn-sm btn-ghost"
+ class:bg-applications={$search === '!app'}
+ class:hover:bg-coollabs={$search !== '!app'}
+ on:click={() => doSearch('!app')}
+ >
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="h-6 w-6 mr-2 hidden lg:block "
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentcolor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <rect x="4" y="4" width="6" height="6" rx="1" />
+ <rect x="4" y="14" width="6" height="6" rx="1" />
+ <rect x="14" y="14" width="6" height="6" rx="1" />
+ <line x1="14" y1="7" x2="20" y2="7" />
+ <line x1="17" y1="4" x2="17" y2="10" />
+ </svg> Applications</button
+ >
+ <button
+ class="btn btn-sm btn-ghost"
+ class:bg-services={$search === '!service'}
+ class:hover:bg-coollabs={$search !== '!service'}
+ on:click={() => doSearch('!service')}
+ ><svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="h-6 w-6 mr-2 hidden lg:block"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <path d="M7 18a4.6 4.4 0 0 1 0 -9a5 4.5 0 0 1 11 2h1a3.5 3.5 0 0 1 0 7h-12" />
+ </svg> Services</button
+ >
+ <button
+ class="btn btn-sm btn-ghost "
+ class:bg-databases={$search === '!db'}
+ class:hover:bg-coollabs={$search !== '!db'}
+ on:click={() => doSearch('!db')}
+ >
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="h-6 w-6 mr-2 hidden lg:block"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <ellipse cx="12" cy="6" rx="8" ry="3" />
+ <path d="M4 6v6a8 3 0 0 0 16 0v-6" />
+ <path d="M4 12v6a8 3 0 0 0 16 0v-6" />
+ </svg> Databases</button
+ >
+ <button
+ class="btn btn-sm btn-ghost"
+ class:bg-sources={$search === '!git'}
+ class:hover:bg-coollabs={$search !== '!git'}
+ on:click={() => doSearch('!git')}
+ >
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="h-6 w-6 mr-2 hidden lg:block"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <circle cx="6" cy="6" r="2" />
+ <circle cx="18" cy="18" r="2" />
+ <path d="M11 6h5a2 2 0 0 1 2 2v8" />
+ <polyline points="14 9 11 6 14 3" />
+ <path d="M13 18h-5a2 2 0 0 1 -2 -2v-8" />
+ <polyline points="10 15 13 18 10 21" />
+ </svg> Git Sources</button
+ >
+ <button
+ class="btn btn-sm btn-ghost"
+ class:bg-destinations={$search === '!destination'}
+ class:hover:bg-coollabs={$search !== '!destination'}
+ on:click={() => doSearch('!destination')}
+ >
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="h-6 w-6 mr-2 hidden lg:block"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <path
+ d="M22 12.54c-1.804 -.345 -2.701 -1.08 -3.523 -2.94c-.487 .696 -1.102 1.568 -.92 2.4c.028 .238 -.32 1.002 -.557 1h-14c0 5.208 3.164 7 6.196 7c4.124 .022 7.828 -1.376 9.854 -5c1.146 -.101 2.296 -1.505 2.95 -2.46z"
+ />
+ <path d="M5 10h3v3h-3z" />
+ <path d="M8 10h3v3h-3z" />
+ <path d="M11 10h3v3h-3z" />
+ <path d="M8 7h3v3h-3z" />
+ <path d="M11 7h3v3h-3z" />
+ <path d="M11 4h3v3h-3z" />
+ <path d="M4.571 18c1.5 0 2.047 -.074 2.958 -.78" />
+ <line x1="10" y1="16" x2="10" y2="16.01" />
+ </svg>Destinations</button
+ >
+ </div>
+ <div class="form-control">
+ <div class="input-group flex w-full">
+ <!-- svelte-ignore a11y-click-events-have-key-events -->
+ <div
+ class="btn btn-square cursor-default no-animation hover:bg-error"
+ on:click={() => doSearch('')}
+ >
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="w-6 h-6"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentcolor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <line x1="18" y1="6" x2="6" y2="18" />
+ <line x1="6" y1="6" x2="18" y2="18" />
+ </svg>
+ </div>
+
+ <input
+ bind:this={searchInput}
+ id="search"
+ type="text"
+ placeholder="Search: You can search for names, domains, types, database types, version, servers etc..."
+ class="w-full input input-bordered input-primary"
+ bind:value={$search}
+ on:input={() => doSearch()}
+ />
+ </div>
+ <label for="search" class="label w-full mt-3">
+ <span class="label-text text-xs flex flex-wrap gap-2 items-center">
+ <button
+ class:bg-coollabs={$search === '!bot'}
+ class="badge badge-lg text-white text-xs rounded"
+ on:click={() => doSearch('!bot')}>Bots</button
+ >
+
+ <button
+ class:bg-coollabs={$search === '!notmine'}
+ class="badge badge-lg text-white text-xs rounded"
+ on:click={() => doSearch('!notmine')}>Other Teams</button
+ >
+ <button
+ class:bg-coollabs={$search === '!running'}
+ class="badge badge-lg text-white text-xs rounded"
+ on:click={() => doSearch('!running')}>Running</button
+ >
+ <button
+ class:bg-coollabs={$search === '!stopped'}
+ class="badge badge-lg text-white text-xs rounded"
+ on:click={() => doSearch('!stopped')}>Stopped</button
+ >
+ <button
+ class:bg-coollabs={$search === '!error'}
+ class="badge badge-lg text-white text-xs rounded"
+ on:click={() => doSearch('!error')}>Error</button
+ >
+ </span>
+ </label>
+ </div>
+ {/if}
+ {#if (filtered.applications.length > 0 && applications.length > 0) || filtered.otherApplications.length > 0}
+ <div class="flex items-center mt-10 space-x-2">
+ <h1 class="title lg:text-3xl">Applications</h1>
+ <button class="btn btn-sm btn-primary" on:click={refreshStatusApplications}
+ >{noInitialStatus.applications ? 'Load Status' : 'Refresh Status'}</button
+ >
+ {#if foundUnconfiguredApplication}
+ <button
+ class="btn btn-sm"
+ class:loading={loading.applications}
+ disabled={loading.applications}
+ on:click={cleanupApplications}>Cleanup Unconfigured Resources</button
+ >
+ {/if}
+ </div>
+ {/if}
+ {#if filtered.applications.length > 0 && applications.length > 0}
+ <div class="divider" />
+ <div
+ class="grid grid-col gap-2 lg:gap-8 auto-cols-max grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 p-4"
+ >
+ {#if filtered.applications.length > 0}
+ {#each filtered.applications as application}
+ <a class="no-underline mb-5" href={`/applications/${application.id}`}>
+ <div
+ class="w-full rounded p-5 bg-coolgray-200 hover:bg-green-600 indicator duration-150"
+ >
+ {#await getStatus(application)}
+ <span class="indicator-item badge bg-yellow-300 badge-sm" />
+ {:then}
+ {#if !noInitialStatus.applications}
+ {#if status[application.id] === 'loading'}
+ <span class="indicator-item badge bg-yellow-300 badge-sm" />
+ {:else if status[application.id] === 'running'}
+ <span class="indicator-item badge bg-success badge-sm" />
+ {:else if status[application.id] === 'degraded'}
+ <span
+ class="indicator-item indicator-middle indicator-center badge bg-warning text-black font-bold badge-xl"
+ >Degraded</span
+ >
+ {:else}
+ <span class="indicator-item badge bg-error badge-sm" />
+ {/if}
+ {/if}
+ {/await}
+ <div class="w-full flex flex-row">
+ <ApplicationsIcons {application} isAbsolute={true} />
+ <div class="w-full flex flex-col">
+ <h1 class="font-bold text-base truncate">
+ {application.name}
+ {#if application.settings?.isBot}
+ <span class="text-xs badge bg-coolblack border-none text-applications"
+ >BOT</span
+ >
+ {/if}
+ </h1>
+ <div class="h-10 text-xs">
+ {#if application?.fqdn}
+ <h2>{application?.fqdn.replace('https://', '').replace('http://', '')}</h2>
+ {:else if !application.settings?.isBot && !application?.fqdn && application.buildPack !== 'compose'}
+ <h2 class="text-red-500">Not configured</h2>
+ {/if}
+ {#if application.destinationDocker?.name}
+ <div class="truncate">{application.destinationDocker?.name}</div>
+ {/if}
+ {#if application.teams.length > 0 && application.teams[0]?.name}
+ <div class="truncate">{application.teams[0]?.name}</div>
+ {/if}
+ </div>
+
+ <div class="flex justify-end items-end space-x-2 h-10">
+ {#if application?.fqdn}
+ <a
+ href={application?.fqdn}
+ target="_blank noreferrer"
+ class="icons hover:bg-green-500"
+ >
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="h-6 w-6"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <path d="M11 7h-5a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-5" />
+ <line x1="10" y1="14" x2="20" y2="4" />
+ <polyline points="15 4 20 4 20 9" />
+ </svg>
+ </a>
+ {/if}
+
+ {#if application.settings?.isBot && application.exposePort}
+ <a
+ href={`http://${dev ? 'localhost' : settings.ipv4}:${
+ application.exposePort
+ }`}
+ target="_blank noreferrer"
+ class="icons hover:bg-green-500"
+ >
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="h-6 w-6"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <path d="M11 7h-5a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-5" />
+ <line x1="10" y1="14" x2="20" y2="4" />
+ <polyline points="15 4 20 4 20 9" />
+ </svg>
+ </a>
+ {/if}
+ <button
+ class="icons hover:bg-green-500"
+ on:click|stopPropagation|preventDefault={() =>
+ deleteApplication(application.id)}><DeleteIcon /></button
+ >
+ </div>
+ </div>
+ </div>
+ </div>
+ </a>
+ {/each}
+ {:else}
+ <h1 class="">Nothing here.</h1>
+ {/if}
+ </div>
+ {/if}
+ {#if filtered.otherApplications.length > 0}
+ {#if filtered.applications.length > 0}
+ <div class="divider w-32 mx-auto" />
+ {/if}
+ {/if}
+ {#if filtered.otherApplications.length > 0}
+ <div
+ class="grid grid-col gap-8 auto-cols-max grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 p-4"
+ >
+ {#each filtered.otherApplications as application}
+ <a class="no-underline mb-5" href={`/applications/${application.id}`}>
+ <div class="w-full rounded p-5 bg-coolgray-200 hover:bg-green-600 indicator duration-150">
+ {#await getStatus(application)}
+ <span class="indicator-item badge bg-yellow-300 badge-sm" />
+ {:then}
+ {#if !noInitialStatus.applications}
+ {#if status[application.id] === 'loading'}
+ <span class="indicator-item badge bg-yellow-300 badge-sm" />
+ {:else if status[application.id] === 'running'}
+ <span class="indicator-item badge bg-success badge-sm" />
+ {:else}
+ <span class="indicator-item badge bg-error badge-sm" />
+ {/if}
+ {/if}
+ {/await}
+ <div class="w-full flex flex-row">
+ <ApplicationsIcons {application} isAbsolute={true} />
+ <div class="w-full flex flex-col">
+ <h1 class="font-bold text-base truncate">
+ {application.name}
+ {#if application.settings?.isBot}
+ <span class="text-xs badge bg-coolblack border-none text-applications">BOT</span
+ >
+ {/if}
+ </h1>
+ <div class="h-10 text-xs">
+ {#if application?.fqdn}
+ <h2>{application?.fqdn.replace('https://', '').replace('http://', '')}</h2>
+ {:else if !application.settings?.isBot && !application?.fqdn}
+ <h2 class="text-red-500">Not configured</h2>
+ {/if}
+ {#if application.destinationDocker?.name}
+ <div class="truncate">{application.destinationDocker?.name}</div>
+ {/if}
+ {#if application.teams.length > 0 && application.teams[0]?.name}
+ <div class="truncate">{application.teams[0]?.name}</div>
+ {/if}
+ </div>
+
+ <div class="flex justify-end items-end space-x-2 h-10">
+ {#if application?.fqdn}
+ <a
+ href={application?.fqdn}
+ target="_blank noreferrer"
+ class="icons hover:bg-green-500"
+ >
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="h-6 w-6"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <path d="M11 7h-5a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-5" />
+ <line x1="10" y1="14" x2="20" y2="4" />
+ <polyline points="15 4 20 4 20 9" />
+ </svg>
+ </a>
+ {/if}
+
+ {#if application.settings?.isBot && application.exposePort}
+ <a
+ href={`http://${dev ? 'localhost' : settings.ipv4}:${application.exposePort}`}
+ target="_blank noreferrer"
+ class="icons hover:bg-green-500"
+ >
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="h-6 w-6"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <path d="M11 7h-5a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-5" />
+ <line x1="10" y1="14" x2="20" y2="4" />
+ <polyline points="15 4 20 4 20 9" />
+ </svg>
+ </a>
+ {/if}
+ <button
+ class="icons hover:bg-green-500"
+ on:click|stopPropagation|preventDefault={() =>
+ deleteApplication(application.id)}><DeleteIcon /></button
+ >
+ </div>
+ </div>
+ </div>
+ </div>
+ </a>
+ {/each}
+ </div>
+ {/if}
+ {#if (filtered.services.length > 0 && services.length > 0) || filtered.otherServices.length > 0}
+ <div class="flex items-center mt-10 space-x-2">
+ <h1 class="title lg:text-3xl">Services</h1>
+ <button class="btn btn-sm btn-primary" on:click={refreshStatusServices}
+ >{noInitialStatus.services ? 'Load Status' : 'Refresh Status'}</button
+ >
+ {#if foundUnconfiguredService}
+ <button
+ class="btn btn-sm"
+ class:loading={loading.services}
+ disabled={loading.services}
+ on:click={cleanupServices}>Cleanup Unconfigured Resources</button
+ >
+ {/if}
+ </div>
+ {/if}
+ {#if filtered.services.length > 0 && services.length > 0}
+ <div class="divider" />
+ <div
+ class="grid grid-col gap-8 auto-cols-max grid-cols-1 md:grid-cols-2 lg:md:grid-cols-3 xl:grid-cols-4 p-4"
+ >
+ {#if filtered.services.length > 0}
+ {#each filtered.services as service}
+ {#key service.id}
+ <a class="no-underline mb-5" href={`/services/${service.id}`}>
+ <div
+ class="w-full rounded p-5 bg-coolgray-200 hover:bg-pink-600 indicator duration-150"
+ >
+ {#await getStatus(service)}
+ <span class="indicator-item badge bg-yellow-300 badge-sm" />
+ {:then}
+ {#if !noInitialStatus.services}
+ {#if status[service.id] === 'loading'}
+ <span class="indicator-item badge bg-yellow-300 badge-sm" />
+ {:else if status[service.id] === 'running'}
+ <span class="indicator-item badge bg-success badge-sm" />
+ {:else}
+ <span class="indicator-item badge bg-error badge-sm" />
+ {/if}
+ {/if}
+ {/await}
+ <div class="w-full flex flex-row">
+ <ServiceIcons type={service.type} isAbsolute={true} />
+ <div class="w-full flex flex-col">
+ <h1 class="font-bold text-base truncate">{service.name}</h1>
+ <div class="h-10 text-xs">
+ {#if service?.fqdn}
+ <h2>{service?.fqdn.replace('https://', '').replace('http://', '')}</h2>
+ {:else}
+ <h2 class="text-red-500">URL not configured</h2>
+ {/if}
+ {#if service.destinationDocker?.name}
+ <div class="truncate">{service.destinationDocker?.name}</div>
+ {/if}
+ {#if service.teams.length > 0 && service.teams[0]?.name}
+ <div class="truncate">{service.teams[0]?.name}</div>
+ {/if}
+ </div>
+ <div class="flex justify-end items-end space-x-2 h-10">
+ {#if service?.fqdn}
+ <a
+ href={service?.fqdn}
+ target="_blank noreferrer"
+ class="icons hover:bg-pink-500"
+ >
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="h-6 w-6"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <path d="M11 7h-5a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-5" />
+ <line x1="10" y1="14" x2="20" y2="4" />
+ <polyline points="15 4 20 4 20 9" />
+ </svg>
+ </a>
+ {/if}
+ <button
+ class="icons hover:bg-pink-500"
+ on:click|stopPropagation|preventDefault={() => deleteService(service.id)}
+ ><DeleteIcon /></button
+ >
+ </div>
+ </div>
+ </div>
+ </div>
+ </a>
+ {/key}
+ {/each}
+ {:else}
+ <h1 class="">Nothing here.</h1>
+ {/if}
+ </div>
+ {/if}
+ {#if filtered.otherServices.length > 0}
+ {#if filtered.services.length > 0}
+ <div class="divider w-32 mx-auto" />
+ {/if}
+ {/if}
+ {#if filtered.otherServices.length > 0}
+ <div
+ class="grid grid-col gap-8 auto-cols-max grid-cols-1 md:grid-cols-2 lg:md:grid-cols-3 xl:grid-cols-4 p-4"
+ >
+ {#each filtered.otherServices as service}
+ {#key service.id}
+ <a class="no-underline mb-5" href={`/services/${service.id}`}>
+ <div
+ class="w-full rounded p-5 bg-coolgray-200 hover:bg-pink-600 indicator duration-150"
+ >
+ {#await getStatus(service)}
+ <span class="indicator-item badge bg-yellow-300 badge-sm" />
+ {:then}
+ {#if !noInitialStatus.services}
+ {#if status[service.id] === 'loading'}
+ <span class="indicator-item badge bg-yellow-300 badge-sm" />
+ {:else if status[service.id] === 'running'}
+ <span class="indicator-item badge bg-success badge-sm" />
+ {:else}
+ <span class="indicator-item badge bg-error badge-sm" />
+ {/if}
+ {/if}
+ {/await}
+ <div class="w-full flex flex-row">
+ <ServiceIcons type={service.type} isAbsolute={true} />
+ <div class="w-full flex flex-col">
+ <h1 class="font-bold text-base truncate">{service.name}</h1>
+ <div class="h-10 text-xs">
+ {#if service?.fqdn}
+ <h2>{service?.fqdn.replace('https://', '').replace('http://', '')}</h2>
+ {:else}
+ <h2 class="text-red-500">URL not configured</h2>
+ {/if}
+ {#if service.destinationDocker?.name}
+ <div class="truncate">{service.destinationDocker?.name}</div>
+ {/if}
+ {#if service.teams.length > 0 && service.teams[0]?.name}
+ <div class="truncate">{service.teams[0]?.name}</div>
+ {/if}
+ </div>
+ <div class="flex justify-end items-end space-x-2 h-10">
+ {#if service?.fqdn}
+ <a
+ href={service?.fqdn}
+ target="_blank noreferrer"
+ class="icons hover:bg-pink-500"
+ >
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="h-6 w-6"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <path d="M11 7h-5a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-5" />
+ <line x1="10" y1="14" x2="20" y2="4" />
+ <polyline points="15 4 20 4 20 9" />
+ </svg>
+ </a>
+ {/if}
+ <button
+ class="icons hover:bg-pink-500"
+ on:click|stopPropagation|preventDefault={() => deleteService(service.id)}
+ ><DeleteIcon /></button
+ >
+ </div>
+ </div>
+ </div>
+ </div>
+ </a>
+ {/key}
+ {/each}
+ </div>
+ {/if}
+ {#if (filtered.databases.length > 0 && databases.length > 0) || filtered.otherDatabases.length > 0}
+ <div class="flex items-center mt-10 space-x-2">
+ <h1 class="title lg:text-3xl">Databases</h1>
+ <button class="btn btn-sm btn-primary" on:click={refreshStatusDatabases}
+ >{noInitialStatus.databases ? 'Load Status' : 'Refresh Status'}</button
+ >
+ {#if foundUnconfiguredDatabase}
+ <button
+ class="btn btn-sm"
+ class:loading={loading.databases}
+ disabled={loading.databases}
+ on:click={cleanupDatabases}>Cleanup Unconfigured Resources</button
+ >
+ {/if}
+ </div>
+ {/if}
+ {#if filtered.databases.length > 0 && databases.length > 0}
+ <div class="divider" />
+ <div
+ class="grid grid-col gap-8 auto-cols-max grid-cols-1 md:grid-cols-2 lg:md:grid-cols-3 xl:grid-cols-4 p-4"
+ >
+ {#if filtered.databases.length > 0}
+ {#each filtered.databases as database}
+ {#key database.id}
+ <a class="no-underline mb-5" href={`/databases/${database.id}`}>
+ <div
+ class="w-full rounded p-5 bg-coolgray-200 hover:bg-databases indicator duration-150"
+ >
+ {#await getStatus(database)}
+ <span class="indicator-item badge bg-yellow-300 badge-sm" />
+ {:then}
+ {#if !noInitialStatus.databases}
+ {#if status[database.id] === 'loading'}
+ <span class="indicator-item badge bg-yellow-300 badge-sm" />
+ {:else if status[database.id] === 'running'}
+ <span class="indicator-item badge bg-success badge-sm" />
+ {:else}
+ <span class="indicator-item badge bg-error badge-sm" />
+ {/if}
+ {/if}
+ {/await}
+ <div class="w-full flex flex-row">
+ <DatabaseIcons type={database.type} isAbsolute={true} />
+ <div class="w-full flex flex-col">
+ <div class="h-10">
+ <h1 class="font-bold text-base truncate">{database.name}</h1>
+ <div class="h-10 text-xs">
+ {#if database?.version}
+ <h2 class="">{database?.version}</h2>
+ {:else}
+ <h2 class="text-red-500">Not version not configured</h2>
+ {/if}
+ {#if database.destinationDocker?.name}
+ <div class="truncate">{database.destinationDocker?.name}</div>
+ {/if}
+ {#if database.teams.length > 0 && database.teams[0]?.name}
+ <div class="truncate">{database.teams[0]?.name}</div>
+ {/if}
+ </div>
+ </div>
+ <div class="flex justify-end items-center space-x-2 h-10">
+ {#if database.settings?.isPublic}
+ <div title="Public" class="icons hover:bg-transparent">
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="h-6 w-6 "
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <circle cx="12" cy="12" r="9" />
+ <line x1="3.6" y1="9" x2="20.4" y2="9" />
+ <line x1="3.6" y1="15" x2="20.4" y2="15" />
+ <path d="M11.5 3a17 17 0 0 0 0 18" />
+ <path d="M12.5 3a17 17 0 0 1 0 18" />
+ </svg>
+ </div>
+ {/if}
+ <button
+ class="icons hover:bg-databases-100"
+ on:click|stopPropagation|preventDefault={() => deleteDatabase(database.id)}
+ ><DeleteIcon /></button
+ >
+ </div>
+ </div>
+ </div>
+ </div>
+ </a>
+ {/key}
+ {/each}
+ {:else}
+ <h1 class="">Nothing here.</h1>
+ {/if}
+ </div>
+ {/if}
+ {#if filtered.otherDatabases.length > 0}
+ {#if filtered.databases.length > 0}
+ <div class="divider w-32 mx-auto" />
+ {/if}
+ {/if}
+ {#if filtered.otherDatabases.length > 0}
+ <div
+ class="grid grid-col gap-8 auto-cols-max grid-cols-1 md:grid-cols-2 lg:md:grid-cols-3 xl:grid-cols-4 p-4"
+ >
+ {#each filtered.otherDatabases as database}
+ {#key database.id}
+ <a class="no-underline mb-5" href={`/databases/${database.id}`}>
+ <div
+ class="w-full rounded p-5 bg-coolgray-200 hover:bg-databases indicator duration-150"
+ >
+ {#await getStatus(database)}
+ <span class="indicator-item badge bg-yellow-300 badge-sm" />
+ {:then}
+ {#if !noInitialStatus.databases}
+ {#if status[database.id] === 'loading'}
+ <span class="indicator-item badge bg-yellow-300 badge-sm" />
+ {:else if status[database.id] === 'running'}
+ <span class="indicator-item badge bg-success badge-sm" />
+ {:else}
+ <span class="indicator-item badge bg-error badge-sm" />
+ {/if}
+ {/if}
+ {/await}
+ <div class="w-full flex flex-row">
+ <DatabaseIcons type={database.type} isAbsolute={true} />
+ <div class="w-full flex flex-col">
+ <div class="h-10">
+ <h1 class="font-bold text-base truncate">{database.name}</h1>
+ <div class="h-10 text-xs">
+ {#if database?.version}
+ <h2 class="">{database?.version}</h2>
+ {:else}
+ <h2 class="text-red-500">Not version not configured</h2>
+ {/if}
+ {#if database.destinationDocker?.name}
+ <div class="truncate">{database.destinationDocker?.name}</div>
+ {/if}
+ {#if database.teams.length > 0 && database.teams[0]?.name}
+ <div class="truncate">{database.teams[0]?.name}</div>
+ {/if}
+ </div>
+ </div>
+ <div class="flex justify-end items-end space-x-2 h-10">
+ {#if database.settings?.isPublic}
+ <div title="Public">
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="h-6 w-6 "
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <circle cx="12" cy="12" r="9" />
+ <line x1="3.6" y1="9" x2="20.4" y2="9" />
+ <line x1="3.6" y1="15" x2="20.4" y2="15" />
+ <path d="M11.5 3a17 17 0 0 0 0 18" />
+ <path d="M12.5 3a17 17 0 0 1 0 18" />
+ </svg>
+ </div>
+ {/if}
+ <button
+ class="icons hover:bg-databases"
+ on:click|stopPropagation|preventDefault={() => deleteDatabase(database.id)}
+ ><DeleteIcon /></button
+ >
+ </div>
+ </div>
+ </div>
+ </div>
+ </a>
+ {/key}
+ {/each}
+ </div>
+ {/if}
+ {#if (filtered.gitSources.length > 0 && gitSources.length > 0) || filtered.otherGitSources.length > 0}
+ <div class="flex items-center mt-10">
+ <h1 class="title lg:text-3xl">Git Sources</h1>
+ </div>
+ {/if}
+ {#if filtered.gitSources.length > 0 && gitSources.length > 0}
+ <div class="divider" />
+ <div
+ class="grid grid-col gap-8 auto-cols-max grid-cols-1 md:grid-cols-2 lg:md:grid-cols-3 xl:grid-cols-4 p-4"
+ >
+ {#if filtered.gitSources.length > 0}
+ {#each filtered.gitSources as source}
+ {#key source.id}
+ <a class="no-underline mb-5" href={`/sources/${source.id}`}>
+ <div
+ class="w-full rounded p-5 bg-coolgray-200 hover:bg-sources indicator duration-150"
+ >
+ <div class="w-full flex flex-row">
+ <div class="absolute top-0 left-0 -m-5 flex">
+ {#if source?.type === 'gitlab'}
+ <svg viewBox="0 0 128 128" class="h-10 w-10">
+ <path
+ fill="#FC6D26"
+ d="M126.615 72.31l-7.034-21.647L105.64 7.76c-.716-2.206-3.84-2.206-4.556 0l-13.94 42.903H40.856L26.916 7.76c-.717-2.206-3.84-2.206-4.557 0L8.42 50.664 1.385 72.31a4.792 4.792 0 001.74 5.358L64 121.894l60.874-44.227a4.793 4.793 0 001.74-5.357"
+ /><path
+ fill="#E24329"
+ d="M64 121.894l23.144-71.23H40.856L64 121.893z"
+ /><path
+ fill="#FC6D26"
+ d="M64 121.894l-23.144-71.23H8.42L64 121.893z"
+ /><path
+ fill="#FCA326"
+ d="M8.42 50.663L1.384 72.31a4.79 4.79 0 001.74 5.357L64 121.894 8.42 50.664z"
+ /><path
+ fill="#E24329"
+ d="M8.42 50.663h32.436L26.916 7.76c-.717-2.206-3.84-2.206-4.557 0L8.42 50.664z"
+ /><path
+ fill="#FC6D26"
+ d="M64 121.894l23.144-71.23h32.437L64 121.893z"
+ /><path
+ fill="#FCA326"
+ d="M119.58 50.663l7.035 21.647a4.79 4.79 0 01-1.74 5.357L64 121.894l55.58-71.23z"
+ /><path
+ fill="#E24329"
+ d="M119.58 50.663H87.145l13.94-42.902c.717-2.206 3.84-2.206 4.557 0l13.94 42.903z"
+ />
+ </svg>
+ {:else if source?.type === 'github'}
+ <svg viewBox="0 0 128 128" class="h-10 w-10">
+ <g fill="#ffffff"
+ ><path
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ d="M64 5.103c-33.347 0-60.388 27.035-60.388 60.388 0 26.682 17.303 49.317 41.297 57.303 3.017.56 4.125-1.31 4.125-2.905 0-1.44-.056-6.197-.082-11.243-16.8 3.653-20.345-7.125-20.345-7.125-2.747-6.98-6.705-8.836-6.705-8.836-5.48-3.748.413-3.67.413-3.67 6.063.425 9.257 6.223 9.257 6.223 5.386 9.23 14.127 6.562 17.573 5.02.542-3.903 2.107-6.568 3.834-8.076-13.413-1.525-27.514-6.704-27.514-29.843 0-6.593 2.36-11.98 6.223-16.21-.628-1.52-2.695-7.662.584-15.98 0 0 5.07-1.623 16.61 6.19C53.7 35 58.867 34.327 64 34.304c5.13.023 10.3.694 15.127 2.033 11.526-7.813 16.59-6.19 16.59-6.19 3.287 8.317 1.22 14.46.593 15.98 3.872 4.23 6.215 9.617 6.215 16.21 0 23.194-14.127 28.3-27.574 29.796 2.167 1.874 4.097 5.55 4.097 11.183 0 8.08-.07 14.583-.07 16.572 0 1.607 1.088 3.49 4.148 2.897 23.98-7.994 41.263-30.622 41.263-57.294C124.388 32.14 97.35 5.104 64 5.104z"
+ /><path
+ d="M26.484 91.806c-.133.3-.605.39-1.035.185-.44-.196-.685-.605-.543-.906.13-.31.603-.395 1.04-.188.44.197.69.61.537.91zm2.446 2.729c-.287.267-.85.143-1.232-.28-.396-.42-.47-.983-.177-1.254.298-.266.844-.14 1.24.28.394.426.472.984.17 1.255zM31.312 98.012c-.37.258-.976.017-1.35-.52-.37-.538-.37-1.183.01-1.44.373-.258.97-.025 1.35.507.368.545.368 1.19-.01 1.452zm3.261 3.361c-.33.365-1.036.267-1.552-.23-.527-.487-.674-1.18-.343-1.544.336-.366 1.045-.264 1.564.23.527.486.686 1.18.333 1.543zm4.5 1.951c-.147.473-.825.688-1.51.486-.683-.207-1.13-.76-.99-1.238.14-.477.823-.7 1.512-.485.683.206 1.13.756.988 1.237zm4.943.361c.017.498-.563.91-1.28.92-.723.017-1.308-.387-1.315-.877 0-.503.568-.91 1.29-.924.717-.013 1.306.387 1.306.88zm4.598-.782c.086.485-.413.984-1.126 1.117-.7.13-1.35-.172-1.44-.653-.086-.498.422-.997 1.122-1.126.714-.123 1.354.17 1.444.663zm0 0"
+ /></g
+ >
+ </svg>
+ {/if}
+
+ {#if source.isSystemWide}
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="h-10 w-10"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <circle cx="12" cy="12" r="9" />
+ <line x1="3.6" y1="9" x2="20.4" y2="9" />
+ <line x1="3.6" y1="15" x2="20.4" y2="15" />
+ <path d="M11.5 3a17 17 0 0 0 0 18" />
+ <path d="M12.5 3a17 17 0 0 1 0 18" />
+ </svg>
+ {/if}
+ </div>
+ <div class="w-full flex flex-col">
+ <div class="h-10">
+ <h1 class="font-bold text-base truncate">{source.name}</h1>
+ {#if source.teams.length > 0 && source.teams[0]?.name}
+ <div class="truncate text-xs">{source.teams[0]?.name}</div>
+ {/if}
+ </div>
+
+ <div class="flex justify-end items-end space-x-2 h-10" />
+ </div>
+ </div>
+ </div>
+ </a>
+ {/key}
+ {/each}
+ {:else}
+ <h1 class="">Nothing here.</h1>
+ {/if}
+ </div>
+ {/if}
+ {#if filtered.otherGitSources.length > 0}
+ {#if filtered.gitSources.length > 0}
+ <div class="divider w-32 mx-auto" />
+ {/if}
+ {/if}
+ {#if filtered.otherGitSources.length > 0}
+ <div
+ class="grid grid-col gap-8 auto-cols-max grid-cols-1 md:grid-cols-2 lg:md:grid-cols-3 xl:grid-cols-4 p-4"
+ >
+ {#each filtered.otherGitSources as source}
+ {#key source.id}
+ <a class="no-underline mb-5" href={`/sources/${source.id}`}>
+ <div class="w-full rounded p-5 bg-coolgray-200 hover:bg-sources indicator duration-150">
+ <div class="w-full flex flex-row">
+ <div class="absolute top-0 left-0 -m-5 flex">
+ {#if source?.type === 'gitlab'}
+ <svg viewBox="0 0 128 128" class="h-10 w-10">
+ <path
+ fill="#FC6D26"
+ d="M126.615 72.31l-7.034-21.647L105.64 7.76c-.716-2.206-3.84-2.206-4.556 0l-13.94 42.903H40.856L26.916 7.76c-.717-2.206-3.84-2.206-4.557 0L8.42 50.664 1.385 72.31a4.792 4.792 0 001.74 5.358L64 121.894l60.874-44.227a4.793 4.793 0 001.74-5.357"
+ /><path fill="#E24329" d="M64 121.894l23.144-71.23H40.856L64 121.893z" /><path
+ fill="#FC6D26"
+ d="M64 121.894l-23.144-71.23H8.42L64 121.893z"
+ /><path
+ fill="#FCA326"
+ d="M8.42 50.663L1.384 72.31a4.79 4.79 0 001.74 5.357L64 121.894 8.42 50.664z"
+ /><path
+ fill="#E24329"
+ d="M8.42 50.663h32.436L26.916 7.76c-.717-2.206-3.84-2.206-4.557 0L8.42 50.664z"
+ /><path fill="#FC6D26" d="M64 121.894l23.144-71.23h32.437L64 121.893z" /><path
+ fill="#FCA326"
+ d="M119.58 50.663l7.035 21.647a4.79 4.79 0 01-1.74 5.357L64 121.894l55.58-71.23z"
+ /><path
+ fill="#E24329"
+ d="M119.58 50.663H87.145l13.94-42.902c.717-2.206 3.84-2.206 4.557 0l13.94 42.903z"
+ />
+ </svg>
+ {:else if source?.type === 'github'}
+ <svg viewBox="0 0 128 128" class="h-10 w-10">
+ <g fill="#ffffff"
+ ><path
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ d="M64 5.103c-33.347 0-60.388 27.035-60.388 60.388 0 26.682 17.303 49.317 41.297 57.303 3.017.56 4.125-1.31 4.125-2.905 0-1.44-.056-6.197-.082-11.243-16.8 3.653-20.345-7.125-20.345-7.125-2.747-6.98-6.705-8.836-6.705-8.836-5.48-3.748.413-3.67.413-3.67 6.063.425 9.257 6.223 9.257 6.223 5.386 9.23 14.127 6.562 17.573 5.02.542-3.903 2.107-6.568 3.834-8.076-13.413-1.525-27.514-6.704-27.514-29.843 0-6.593 2.36-11.98 6.223-16.21-.628-1.52-2.695-7.662.584-15.98 0 0 5.07-1.623 16.61 6.19C53.7 35 58.867 34.327 64 34.304c5.13.023 10.3.694 15.127 2.033 11.526-7.813 16.59-6.19 16.59-6.19 3.287 8.317 1.22 14.46.593 15.98 3.872 4.23 6.215 9.617 6.215 16.21 0 23.194-14.127 28.3-27.574 29.796 2.167 1.874 4.097 5.55 4.097 11.183 0 8.08-.07 14.583-.07 16.572 0 1.607 1.088 3.49 4.148 2.897 23.98-7.994 41.263-30.622 41.263-57.294C124.388 32.14 97.35 5.104 64 5.104z"
+ /><path
+ d="M26.484 91.806c-.133.3-.605.39-1.035.185-.44-.196-.685-.605-.543-.906.13-.31.603-.395 1.04-.188.44.197.69.61.537.91zm2.446 2.729c-.287.267-.85.143-1.232-.28-.396-.42-.47-.983-.177-1.254.298-.266.844-.14 1.24.28.394.426.472.984.17 1.255zM31.312 98.012c-.37.258-.976.017-1.35-.52-.37-.538-.37-1.183.01-1.44.373-.258.97-.025 1.35.507.368.545.368 1.19-.01 1.452zm3.261 3.361c-.33.365-1.036.267-1.552-.23-.527-.487-.674-1.18-.343-1.544.336-.366 1.045-.264 1.564.23.527.486.686 1.18.333 1.543zm4.5 1.951c-.147.473-.825.688-1.51.486-.683-.207-1.13-.76-.99-1.238.14-.477.823-.7 1.512-.485.683.206 1.13.756.988 1.237zm4.943.361c.017.498-.563.91-1.28.92-.723.017-1.308-.387-1.315-.877 0-.503.568-.91 1.29-.924.717-.013 1.306.387 1.306.88zm4.598-.782c.086.485-.413.984-1.126 1.117-.7.13-1.35-.172-1.44-.653-.086-.498.422-.997 1.122-1.126.714-.123 1.354.17 1.444.663zm0 0"
+ /></g
+ >
+ </svg>
+ {/if}
+
+ {#if source.isSystemWide}
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="h-10 w-10"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <circle cx="12" cy="12" r="9" />
+ <line x1="3.6" y1="9" x2="20.4" y2="9" />
+ <line x1="3.6" y1="15" x2="20.4" y2="15" />
+ <path d="M11.5 3a17 17 0 0 0 0 18" />
+ <path d="M12.5 3a17 17 0 0 1 0 18" />
+ </svg>
+ {/if}
+ </div>
+ <div class="w-full flex flex-col">
+ <div class="h-10">
+ <h1 class="font-bold text-base truncate">{source.name}</h1>
+ {#if source.teams.length > 0 && source.teams[0]?.name}
+ <div class="truncate text-xs">{source.teams[0]?.name}</div>
+ {/if}
+ </div>
+ <div class="flex justify-end items-end space-x-2 h-10" />
+ </div>
+ </div>
+ </div>
+ </a>
+ {/key}
+ {/each}
+ </div>
+ {/if}
+ {#if (filtered.destinations.length > 0 && destinations.length > 0) || filtered.otherDestinations.length > 0}
+ <div class="flex items-center mt-10">
+ <h1 class="title lg:text-3xl">Destinations</h1>
+ </div>
+ {/if}
+ {#if filtered.destinations.length > 0 && destinations.length > 0}
+ <div class="divider" />
+ <div
+ class="grid grid-col gap-8 auto-cols-max grid-cols-1 md:grid-cols-2 lg:md:grid-cols-3 xl:grid-cols-4 p-4 "
+ >
+ {#if filtered.destinations.length > 0}
+ {#each filtered.destinations as destination}
+ {#key destination.id}
+ <a class="no-underline mb-5" href={`/destinations/${destination.id}`}>
+ <div
+ class="w-full rounded p-5 bg-coolgray-200 hover:bg-destinations indicator duration-150"
+ >
+ <div class="w-full flex flex-row">
+ <div class="absolute top-0 left-0 -m-5 h-10 w-10">
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="absolute top-0 left-0 -m-2 h-12 w-12 text-sky-500"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <path
+ d="M22 12.54c-1.804 -.345 -2.701 -1.08 -3.523 -2.94c-.487 .696 -1.102 1.568 -.92 2.4c.028 .238 -.32 1.002 -.557 1h-14c0 5.208 3.164 7 6.196 7c4.124 .022 7.828 -1.376 9.854 -5c1.146 -.101 2.296 -1.505 2.95 -2.46z"
+ />
+ <path d="M5 10h3v3h-3z" />
+ <path d="M8 10h3v3h-3z" />
+ <path d="M11 10h3v3h-3z" />
+ <path d="M8 7h3v3h-3z" />
+ <path d="M11 7h3v3h-3z" />
+ <path d="M11 4h3v3h-3z" />
+ <path d="M4.571 18c1.5 0 2.047 -.074 2.958 -.78" />
+ <line x1="10" y1="16" x2="10" y2="16.01" />
+ </svg>
+ {#if destination.remoteEngine}
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="absolute top-0 left-9 -m-2 h-6 w-6 text-sky-500 rotate-45"
+ viewBox="0 0 24 24"
+ stroke-width="3"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <line x1="12" y1="18" x2="12.01" y2="18" />
+ <path d="M9.172 15.172a4 4 0 0 1 5.656 0" />
+ <path d="M6.343 12.343a8 8 0 0 1 11.314 0" />
+ <path d="M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0" />
+ </svg>
+ {/if}
+ </div>
+ <div class="w-full flex flex-col">
+ <h1 class="font-bold text-base truncate">{destination.name}</h1>
+ <div class="h-10 text-xs">
+ {#if $appSession.teamId === '0' && destination.remoteVerified === false && destination.remoteEngine}
+ <h2 class="text-red-500">Not verified yet</h2>
+ {/if}
+ {#if destination.remoteEngine && !destination.sshKeyId}
+ <h2 class="text-red-500">SSH key missing</h2>
+ {/if}
+ {#if destination.teams.length > 0 && destination.teams[0]?.name}
+ <div class="truncate">{destination.teams[0]?.name}</div>
+ {/if}
+ </div>
+ </div>
+ </div>
+ </div>
+ </a>
+ {/key}
+ {/each}
+ {:else}
+ <h1 class="">Nothing here.</h1>
+ {/if}
+ </div>
+ {/if}
+ {#if filtered.otherDestinations.length > 0}
+ {#if filtered.destinations.length > 0}
+ <div class="divider w-32 mx-auto" />
+ {/if}
+ {/if}
+ {#if filtered.otherDestinations.length > 0}
+ <div
+ class="grid grid-col gap-8 auto-cols-max grid-cols-1 md:grid-cols-2 lg:md:grid-cols-3 xl:grid-cols-4 p-4"
+ >
+ {#each filtered.otherDestinations as destination}
+ {#key destination.id}
+ <a class="no-underline mb-5" href={`/destinations/${destination.id}`}>
+ <div
+ class="w-full rounded p-5 bg-coolgray-200 hover:bg-destinations indicator duration-150"
+ >
+ <div class="w-full flex flex-row">
+ <div class="absolute top-0 left-0 -m-5 h-10 w-10">
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="absolute top-0 left-0 -m-2 h-12 w-12 text-sky-500"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <path
+ d="M22 12.54c-1.804 -.345 -2.701 -1.08 -3.523 -2.94c-.487 .696 -1.102 1.568 -.92 2.4c.028 .238 -.32 1.002 -.557 1h-14c0 5.208 3.164 7 6.196 7c4.124 .022 7.828 -1.376 9.854 -5c1.146 -.101 2.296 -1.505 2.95 -2.46z"
+ />
+ <path d="M5 10h3v3h-3z" />
+ <path d="M8 10h3v3h-3z" />
+ <path d="M11 10h3v3h-3z" />
+ <path d="M8 7h3v3h-3z" />
+ <path d="M11 7h3v3h-3z" />
+ <path d="M11 4h3v3h-3z" />
+ <path d="M4.571 18c1.5 0 2.047 -.074 2.958 -.78" />
+ <line x1="10" y1="16" x2="10" y2="16.01" />
+ </svg>
+ {#if destination.remoteEngine}
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="absolute top-0 left-9 -m-2 h-6 w-6 text-sky-500 rotate-45"
+ viewBox="0 0 24 24"
+ stroke-width="3"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <line x1="12" y1="18" x2="12.01" y2="18" />
+ <path d="M9.172 15.172a4 4 0 0 1 5.656 0" />
+ <path d="M6.343 12.343a8 8 0 0 1 11.314 0" />
+ <path d="M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0" />
+ </svg>
+ {/if}
+ </div>
+ <div class="w-full flex flex-col">
+ <h1 class="font-bold text-base truncate">{destination.name}</h1>
+ <div class="h-10 text-xs">
+ {#if $appSession.teamId === '0' && destination.remoteVerified === false && destination.remoteEngine}
+ <h2 class="text-red-500">Not verified yet</h2>
+ {/if}
+ {#if destination.remoteEngine && !destination.sshKeyId}
+ <h2 class="text-red-500">SSH key missing</h2>
+ {/if}
+ {#if destination.teams.length > 0 && destination.teams[0]?.name}
+ <div class="truncate">{destination.teams[0]?.name}</div>
+ {/if}
+ </div>
+ </div>
+ </div>
+ </div>
+ </a>
+ {/key}
+ {/each}
+ </div>
+ {/if}
+
+ {#if filtered.applications.length === 0 && filtered.destinations.length === 0 && filtered.databases.length === 0 && filtered.services.length === 0 && filtered.gitSources.length === 0 && filtered.destinations.length === 0 && $search}
+ <div class="flex flex-col items-center justify-center h-full pt-20">
+ <h1 class="text-2xl font-bold pb-4">
+ Nothing found with <span class="text-error font-bold">{$search}</span>.
+ </h1>
+ </div>
+ {/if}
+ {#if applications.length === 0 && destinations.length === 0 && databases.length === 0 && services.length === 0 && gitSources.length === 0 && destinations.length === 0}
+ <div class="hero">
+ <div class="hero-content text-center">
+ <div class="">
+ <h1 class="text-5xl font-bold">
+ Hey <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="w-20 h-20 inline-flex"
+ viewBox="0 0 36 36"
+ ><path
+ fill="#EF9645"
+ d="M4.861 9.147c.94-.657 2.357-.531 3.201.166l-.968-1.407c-.779-1.111-.5-2.313.612-3.093 1.112-.777 4.263 1.312 4.263 1.312-.786-1.122-.639-2.544.483-3.331 1.122-.784 2.67-.513 3.456.611l10.42 14.72L25 31l-11.083-4.042L4.25 12.625c-.793-1.129-.519-2.686.611-3.478z"
+ /><path
+ fill="#FFDC5D"
+ d="M2.695 17.336s-1.132-1.65.519-2.781c1.649-1.131 2.78.518 2.78.518l5.251 7.658c.181-.302.379-.6.6-.894L4.557 11.21s-1.131-1.649.519-2.78c1.649-1.131 2.78.518 2.78.518l6.855 9.997c.255-.208.516-.417.785-.622L7.549 6.732s-1.131-1.649.519-2.78c1.649-1.131 2.78.518 2.78.518l7.947 11.589c.292-.179.581-.334.871-.498L12.238 4.729s-1.131-1.649.518-2.78c1.649-1.131 2.78.518 2.78.518l7.854 11.454 1.194 1.742c-4.948 3.394-5.419 9.779-2.592 13.902.565.825 1.39.26 1.39.26-3.393-4.949-2.357-10.51 2.592-13.903L24.515 8.62s-.545-1.924 1.378-2.47c1.924-.545 2.47 1.379 2.47 1.379l1.685 5.004c.668 1.984 1.379 3.961 2.32 5.831 2.657 5.28 1.07 11.842-3.94 15.279-5.465 3.747-12.936 2.354-16.684-3.11L2.695 17.336z"
+ /><g fill="#5DADEC"
+ ><path
+ d="M12 32.042C8 32.042 3.958 28 3.958 24c0-.553-.405-1-.958-1s-1.042.447-1.042 1C1.958 30 6 34.042 12 34.042c.553 0 1-.489 1-1.042s-.447-.958-1-.958z"
+ /><path
+ d="M7 34c-3 0-5-2-5-5 0-.553-.447-1-1-1s-1 .447-1 1c0 4 3 7 7 7 .553 0 1-.447 1-1s-.447-1-1-1zM24 2c-.552 0-1 .448-1 1s.448 1 1 1c4 0 8 3.589 8 8 0 .552.448 1 1 1s1-.448 1-1c0-5.514-4-10-10-10z"
+ /><path
+ d="M29 .042c-.552 0-1 .406-1 .958s.448 1.042 1 1.042c3 0 4.958 2.225 4.958 4.958 0 .552.489 1 1.042 1s.958-.448.958-1C35.958 3.163 33 .042 29 .042z"
+ /></g
+ ></svg
+ >
+ </h1>
+ <p class="py-6 text-xl">It looks like you did not configure anything yet.</p>
+ <NewResource><button class="btn btn-primary">Let's Get Started</button></NewResource>
+ </div>
+ </div>
+ </div>
+ {/if}
+</div>
+<div class="mb-20" />
diff --git a/apps/client/src/routes/+page.ts b/apps/client/src/routes/+page.ts
new file mode 100644
index 0000000000..00c21903ae
--- /dev/null
+++ b/apps/client/src/routes/+page.ts
@@ -0,0 +1,16 @@
+import { error } from '@sveltejs/kit';
+import { t } from '$lib/store';
+import type { LayoutLoad } from './$types';
+import { redirect } from '@sveltejs/kit';
+import Cookies from 'js-cookie';
+export const ssr = false;
+
+export const load: LayoutLoad = async ({ url }) => {
+ try {
+ return await t.dashboard.resources.query();
+ } catch (err) {
+ throw error(500, {
+ message: 'An unexpected error occurred, please try again later.'
+ });
+ }
+};
diff --git a/apps/client/src/routes/login/+page.svelte b/apps/client/src/routes/login/+page.svelte
new file mode 100644
index 0000000000..9ee7a30547
--- /dev/null
+++ b/apps/client/src/routes/login/+page.svelte
@@ -0,0 +1,123 @@
+<script lang="ts">
+ import { browser } from '$app/environment';
+ import Cookies from 'js-cookie';
+ import { goto } from '$app/navigation';
+ import { errorNotification } from '$lib/common';
+ import { appSession, loginEmail, t } from '$lib/store';
+ import { onMount } from 'svelte';
+ let loading = false;
+ let emailEl: HTMLInputElement;
+ let email: string, password: string;
+
+ onMount(async () => {
+ if ($appSession.userId) {
+ return await goto('/');
+ }
+ emailEl.focus();
+ });
+ async function handleSubmit() {
+ loading = true;
+ try {
+ const { token } = await t.auth.login.mutate({ email, password });
+ Cookies.set('token', token, {
+ path: '/'
+ });
+ return window.location.assign('/');
+ } catch (error) {
+ return errorNotification(error);
+ } finally {
+ loading = false;
+ }
+ }
+ async function gotoRegister() {
+ $loginEmail = email?.toLowerCase();
+ return await goto('/register');
+ }
+</script>
+
+<svelt:head>
+ <title>Login</title>
+</svelt:head>
+
+<div class="flex lg:flex-row flex-col h-screen">
+ <div class="bg-neutral-focus h-screen lg:flex hidden flex-col justify-end p-20 flex-1">
+ <h1 class="title lg:text-6xl mb-5 border-gradient">Coolify</h1>
+ <h3 class="title">Made self-hosting simple.</h3>
+ </div>
+ <div class="flex flex-1 flex-col lg:max-w-2xl">
+ <div class="flex flex-row p-8 items-center space-x-3">
+ {#if $appSession.whiteLabeledDetails.icon}
+ <div class="avatar" style="width: 40px; height: 40px">
+ <img
+ src={$appSession.whiteLabeledDetails.icon}
+ alt="Icon for white labeled version of Coolify"
+ />
+ </div>
+ {:else}
+ <div>
+ <div class="avatar" style="width: 40px; height: 40px">
+ <img src="favicon.png" alt="Coolify icon" />
+ </div>
+ </div>
+ <div class="prose">
+ <h4>Coolify</h4>
+ </div>
+ {/if}
+ </div>
+ <div
+ class="w-full md:px-20 lg:px-10 xl:px-20 p-6 flex flex-col h-full justify-center items-center"
+ >
+ <div class="mb-5 w-full prose prose-neutral">
+ <h1 class="m-0 white">Welcome back</h1>
+ <h5>Please login to continue.</h5>
+ </div>
+ <form on:submit|preventDefault={handleSubmit} class="flex flex-col py-4 space-y-3 w-full">
+ <input
+ type="email"
+ name="email"
+ placeholder="Email"
+ autocomplete="off"
+ required
+ bind:this={emailEl}
+ bind:value={email}
+ class="w-full"
+ />
+ <input
+ type="password"
+ name="password"
+ placeholder="Password"
+ bind:value={password}
+ required
+ class="w-full"
+ />
+
+ <div class="flex space-y-3 flex-col pt-3">
+ <button
+ type="submit"
+ disabled={loading}
+ class="btn"
+ class:loading
+ class:bg-coollabs={!loading}>{loading ? 'Authenticating' : 'Login'}</button
+ >
+ {#if $appSession.isRegistrationEnabled}
+ <button on:click|preventDefault={gotoRegister} class="btn btn-ghost">Register</button>
+ {:else}
+ <div class="text-stone-600 text-xs">
+ Registration is disabled. Please ask an admin to activate it.
+ </div>
+ {/if}
+ </div>
+ </form>
+ {#if browser && window.location.host === 'demo.coolify.io'}
+ <div class="pt-5 font-bold">
+ Registration is <span class="text-pink-500">open</span>, just fill in an email (does not
+ need to be live email address for the demo instance) and a password.
+ </div>
+ <div class="pt-5 font-bold">
+ All users gets an <span class="text-pink-500">own namespace</span>, so you won't be able
+ to access other users data.
+ </div>
+ {/if}
+ </div>
+ </div>
+</div>
diff --git a/apps/client/src/routes/register/+page.svelte b/apps/client/src/routes/register/+page.svelte
new file mode 100644
index 0000000000..2bf9931d8e
--- /dev/null
+++ b/apps/client/src/routes/register/+page.svelte
@@ -0,0 +1,146 @@
+<script lang="ts">
+ export let userCount: number;
+ import { goto } from '$app/navigation';
+ import { errorNotification } from '$lib/common';
+ import { appSession, loginEmail, t } from '$lib/store';
+ import { onMount } from 'svelte';
+ import Cookies from 'js-cookie';
+ if (!$appSession.isRegistrationEnabled) {
+ window.location.assign('/');
+ }
+ let loading = false;
+ let emailEl: HTMLInputElement;
+ let passwordEl: HTMLInputElement;
+ let email: string | undefined, password: string, passwordCheck: string;
+
+ onMount(() => {
+ email = $loginEmail;
+ if (email) {
+ passwordEl.focus();
+ } else {
+ emailEl.focus();
+ }
+ });
+ async function handleSubmit() {
+ if (loading) return;
+
+ if (password !== passwordCheck) {
+ return errorNotification("Passwords don't match");
+ }
+ loading = true;
+ try {
+ const payload = await t.auth.register.mutate({ email, password });
+ Cookies.set('token', payload.token, {
+ path: '/'
+ });
+ $appSession.teamId = payload.teamId;
+ $appSession.userId = payload.userId;
+ $appSession.permission = payload.permission;
+ $appSession.isAdmin = payload.isAdmin;
+ return await goto('/');
+ } catch (error) {
+ return errorNotification(error);
+ } finally {
+ loading = false;
+ }
+ }
+</script>
+
+<div class="flex lg:flex-row flex-col h-screen">
+ <div class="bg-neutral-focus h-screen lg:flex hidden flex-col justify-end p-20 flex-1">
+ <h1 class="title lg:text-6xl mb-5 border-gradient">Coolify</h1>
+ <h3 class="title">Made self-hosting simple.</h3>
+ </div>
+ <div class="flex flex-1 flex-col lg:max-w-2xl">
+ <div class="flex flex-row p-8 items-center space-x-3 justify-between">
+ <!-- svelte-ignore a11y-click-events-have-key-events -->
+ <div class="icons cursor-pointer" on:click={() => goto('/')}>
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="h-6 w-6"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <line x1="5" y1="12" x2="19" y2="12" />
+ <line x1="5" y1="12" x2="11" y2="18" />
+ <line x1="5" y1="12" x2="11" y2="6" />
+ </svg>
+ </div>
+ <div class="flex flex-row items-center space-x-3">
+ {#if $appSession.whiteLabeledDetails.icon}
+ <div class="avatar" style="width: 40px; height: 40px">
+ <img
+ src={$appSession.whiteLabeledDetails.icon}
+ alt="Icon for white labeled version of Coolify"
+ />
+ </div>
+ {:else}
+ <div>
+ <div class="avatar" style="width: 40px; height: 40px">
+ <img src="favicon.png" alt="Coolify icon" />
+ </div>
+ </div>
+ <div class="prose">
+ <h4>Coolify</h4>
+ </div>
+ {/if}
+ </div>
+ </div>
+ <div
+ class="w-full md:px-20 lg:px-10 xl:px-20 p-6 flex flex-col h-full justify-center items-center"
+ >
+ <div class="mb-5 w-full prose prose-neutral">
+ <h1 class="m-0 white">Get started</h1>
+ <h5>Enter the required fields to complete the registration.</h5>
+ </div>
+ <form on:submit|preventDefault={handleSubmit} class="flex flex-col py-4 space-y-3 w-full">
+ <input
+ type="email"
+ name="email"
+ placeholder="Email"
+ autocomplete="off"
+ required
+ bind:this={emailEl}
+ bind:value={email}
+ class="w-full"
+ />
+ <input
+ type="password"
+ name="password"
+ placeholder="Password"
+ bind:this={passwordEl}
+ bind:value={password}
+ required
+ class="w-full"
+ />
+ <input
+ type="password"
+ name="passwordCheck"
+ placeholder="Confirm password"
+ bind:value={passwordCheck}
+ required
+ class="w-full"
+ />
+
+ <div class="flex space-y-3 flex-col pt-3">
+ <button
+ type="submit"
+ class="btn"
+ disabled={loading}
+ class:bg-transparent={loading}
+ class:bg-coollabs={!loading}
+ class:loading>{loading ? 'Registering' : 'Register'}</button
+ >
+ </div>
+ </form>
+ {#if userCount === 0}
+ <div class="pt-5">"First user will be admin."</div>
+ {/if}
+ </div>
+ </div>
+</div>
diff --git a/apps/client/static/favicon.png b/apps/client/static/favicon.png
index 825b9e65af..2c4482801f 100644
Binary files a/apps/client/static/favicon.png and b/apps/client/static/favicon.png differ
diff --git a/apps/client/static/icons/appsmith.png b/apps/client/static/icons/appsmith.png
new file mode 100644
index 0000000000..314ad9053c
Binary files /dev/null and b/apps/client/static/icons/appsmith.png differ
diff --git a/apps/client/static/icons/appwrite.png b/apps/client/static/icons/appwrite.png
new file mode 100644
index 0000000000..2aaa3e1abe
Binary files /dev/null and b/apps/client/static/icons/appwrite.png differ
diff --git a/apps/client/static/icons/compose.png b/apps/client/static/icons/compose.png
new file mode 100644
index 0000000000..b9cfb40e1f
Binary files /dev/null and b/apps/client/static/icons/compose.png differ
diff --git a/apps/client/static/icons/default.png b/apps/client/static/icons/default.png
new file mode 100644
index 0000000000..2c4482801f
Binary files /dev/null and b/apps/client/static/icons/default.png differ
diff --git a/apps/client/static/icons/fider.png b/apps/client/static/icons/fider.png
new file mode 100644
index 0000000000..6e34acafe6
Binary files /dev/null and b/apps/client/static/icons/fider.png differ
diff --git a/apps/client/static/icons/ghost.png b/apps/client/static/icons/ghost.png
new file mode 100644
index 0000000000..f4e3006547
Binary files /dev/null and b/apps/client/static/icons/ghost.png differ
diff --git a/apps/client/static/icons/gitea.svg b/apps/client/static/icons/gitea.svg
new file mode 100644
index 0000000000..87c7c82db4
--- /dev/null
+++ b/apps/client/static/icons/gitea.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640" style="enable-background:new 0 0 640 640" xml:space="preserve" width="32" height="32"><path style="fill:#fff" d="m395.9 484.2-126.9-61c-12.5-6-17.9-21.2-11.8-33.8l61-126.9c6-12.5 21.2-17.9 33.8-11.8 17.2 8.3 27.1 13 27.1 13l-.1-109.2 16.7-.1.1 117.1s57.4 24.2 83.1 40.1c3.7 2.3 10.2 6.8 12.9 14.4 2.1 6.1 2 13.1-1 19.3l-61 126.9c-6.2 12.7-21.4 18.1-33.9 12z"/><path style="fill:#609926" d="M622.7 149.8c-4.1-4.1-9.6-4-9.6-4s-117.2 6.6-177.9 8c-13.3.3-26.5.6-39.6.7v117.2c-5.5-2.6-11.1-5.3-16.6-7.9 0-36.4-.1-109.2-.1-109.2-29 .4-89.2-2.2-89.2-2.2s-141.4-7.1-156.8-8.5c-9.8-.6-22.5-2.1-39 1.5-8.7 1.8-33.5 7.4-53.8 26.9C-4.9 212.4 6.6 276.2 8 285.8c1.7 11.7 6.9 44.2 31.7 72.5 45.8 56.1 144.4 54.8 144.4 54.8s12.1 28.9 30.6 55.5c25 33.1 50.7 58.9 75.7 62 63 0 188.9-.1 188.9-.1s12 .1 28.3-10.3c14-8.5 26.5-23.4 26.5-23.4S547 483 565 451.5c5.5-9.7 10.1-19.1 14.1-28 0 0 55.2-117.1 55.2-231.1-1.1-34.5-9.6-40.6-11.6-42.6zM125.6 353.9c-25.9-8.5-36.9-18.7-36.9-18.7S69.6 321.8 60 295.4c-16.5-44.2-1.4-71.2-1.4-71.2s8.4-22.5 38.5-30c13.8-3.7 31-3.1 31-3.1s7.1 59.4 15.7 94.2c7.2 29.2 24.8 77.7 24.8 77.7s-26.1-3.1-43-9.1zm300.3 107.6s-6.1 14.5-19.6 15.4c-5.8.4-10.3-1.2-10.3-1.2s-.3-.1-5.3-2.1l-112.9-55s-10.9-5.7-12.8-15.6c-2.2-8.1 2.7-18.1 2.7-18.1L322 273s4.8-9.7 12.2-13c.6-.3 2.3-1 4.5-1.5 8.1-2.1 18 2.8 18 2.8L467.4 315s12.6 5.7 15.3 16.2c1.9 7.4-.5 14-1.8 17.2-6.3 15.4-55 113.1-55 113.1z"/><path style="fill:#609926" d="M326.8 380.1c-8.2.1-15.4 5.8-17.3 13.8-1.9 8 2 16.3 9.1 20 7.7 4 17.5 1.8 22.7-5.4 5.1-7.1 4.3-16.9-1.8-23.1l24-49.1c1.5.1 3.7.2 6.2-.5 4.1-.9 7.1-3.6 7.1-3.6 4.2 1.8 8.6 3.8 13.2 6.1 4.8 2.4 9.3 4.9 13.4 7.3.9.5 1.8 1.1 2.8 1.9 1.6 1.3 3.4 3.1 4.7 5.5 1.9 5.5-1.9 14.9-1.9 14.9-2.3 7.6-18.4 40.6-18.4 40.6-8.1-.2-15.3 5-17.7 12.5-2.6 8.1 1.1 17.3 8.9 21.3 7.8 4 17.4 1.7 22.5-5.3 5-6.8 4.6-16.3-1.1-22.6 1.9-3.7 3.7-7.4 5.6-11.3 5-10.4 13.5-30.4 13.5-30.4.9-1.7 5.7-10.3 2.7-21.3-2.5-11.4-12.6-16.7-12.6-16.7-12.2-7.9-29.2-15.2-29.2-15.2s0-4.1-1.1-7.1c-1.1-3.1-2.8-5.1-3.9-6.3 4.7-9.7 9.4-19.3 14.1-29-4.1-2-8.1-4-12.2-6.1-4.8 9.8-9.7 19.7-14.5 29.5-6.7-.1-12.9 3.5-16.1 9.4-3.4 6.3-2.7 14.1 1.9 19.8l-24.6 50.4z"/></svg>
diff --git a/apps/client/static/icons/glitchtip.svg b/apps/client/static/icons/glitchtip.svg
new file mode 100644
index 0000000000..2ae389aaef
--- /dev/null
+++ b/apps/client/static/icons/glitchtip.svg
@@ -0,0 +1,46 @@
+<svg
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ style="isolation:isolate"
+ viewBox="0 0 400 400"
+>
+ <defs>
+ <clipPath id="_clipPath_5kOQy2sGcuF9aeG3NHWmCAGgMEPQrnNW">
+ <rect width="400" height="400" />
+ </clipPath>
+ </defs>
+ <g clip-path="url(#_clipPath_5kOQy2sGcuF9aeG3NHWmCAGgMEPQrnNW)">
+ <g>
+ <g>
+ <path
+ d=" M 276.155 367.684 L 337.655 367.684 L 337.655 180.781 L 205.525 180.781 L 205.525 241.801 L 267.987 241.801 L 267.987 258.617 C 267.987 291.29 238.678 308.586 202.162 308.586 C 156.998 308.586 127.689 282.641 127.689 226.906 L 127.689 173.094 C 127.689 117.359 156.998 91.414 202.162 91.414 C 241.08 91.414 261.74 112.554 271.83 138.5 L 331.409 104.386 C 306.424 52.976 261.74 26.55 202.162 26.55 C 111.353 26.55 50.333 88.531 50.333 201.441 C 50.333 313.872 110.873 373.45 187.748 373.45 C 238.197 373.45 268.947 347.985 273.752 314.352 L 276.155 314.352 L 276.155 367.684 Z "
+ fill="rgb(132,24,128)"
+ />
+ </g>
+ <g opacity="0.5">
+ <path
+ d=" M 139.701 175.78 L 139.701 173.094 C 139.701 117.359 169.01 91.414 214.174 91.414 C 253.092 91.414 273.752 112.554 283.842 138.5 L 343.421 104.386 C 318.436 52.976 273.752 26.55 214.174 26.55 C 128.962 26.55 69.981 81.125 63.033 181.145 L 139.701 175.78 Z "
+ fill-rule="evenodd"
+ fill="rgb(233,64,86)"
+ />
+ </g>
+ <g opacity="0.5">
+ <path
+ d=" M 349.667 305.194 L 349.667 247.137 L 279.998 252.019 L 279.998 258.617 C 279.998 291.29 250.69 308.586 214.174 308.586 C 179.697 308.586 154.459 293.467 144.446 261.518 L 70.341 266.711 C 76.285 288.796 85.348 307.563 96.86 322.909 L 349.667 305.194 Z "
+ fill-rule="evenodd"
+ fill="rgb(233,64,86)"
+ />
+ </g>
+ <path
+ d=" M 337.655 247.03 L 337.655 180.781 L 205.525 180.781 L 205.525 241.801 L 267.987 241.801 L 267.987 251.912 L 337.655 247.03 Z M 132.401 261.413 C 129.319 251.534 127.689 240.048 127.689 226.906 L 127.689 175.099 L 51.069 180.468 C 50.581 187.25 50.333 194.242 50.333 201.441 C 50.333 225.632 53.136 247.376 58.301 266.606 L 132.401 261.413 Z "
+ fill-rule="evenodd"
+ fill="rgb(233,64,86)"
+ />
+ <path
+ d=" M 337.655 305.862 L 337.655 367.684 L 276.155 367.684 L 276.155 314.352 L 273.752 314.352 C 268.947 347.985 238.197 373.45 187.748 373.45 C 146.712 373.45 110.33 356.473 85.327 323.543 L 337.655 305.862 Z "
+ fill-rule="evenodd"
+ fill="rgb(255,63,42)"
+ />
+ </g>
+ </g>
+</svg>
\ No newline at end of file
diff --git a/apps/client/static/icons/grafana.png b/apps/client/static/icons/grafana.png
new file mode 100644
index 0000000000..c8659494f8
Binary files /dev/null and b/apps/client/static/icons/grafana.png differ
diff --git a/apps/client/static/icons/hasura.png b/apps/client/static/icons/hasura.png
new file mode 100644
index 0000000000..30490401ea
Binary files /dev/null and b/apps/client/static/icons/hasura.png differ
diff --git a/apps/client/static/icons/keycloak.png b/apps/client/static/icons/keycloak.png
new file mode 100644
index 0000000000..8f29f7af7a
Binary files /dev/null and b/apps/client/static/icons/keycloak.png differ
diff --git a/apps/client/static/icons/languagetool.svg b/apps/client/static/icons/languagetool.svg
new file mode 100644
index 0000000000..fc8cab02fa
--- /dev/null
+++ b/apps/client/static/icons/languagetool.svg
@@ -0,0 +1,2 @@
+
+<svg xmlns="http://www.w3.org/2000/svg" width="367" height="277" fill="none" viewBox="0 0 367 277"><path fill="#fff" fill-rule="evenodd" d="M52.114 0H87.64c14.753 0 26.712 11.96 26.712 26.712v103.641h69.45v37.396h-80.135c-14.752 0-26.711-11.959-26.711-26.711V37.396H52.114V0ZM323.77 26.712v27.78h-37.396V37.396h-29.383V167.75h-37.396V37.396h-29.383v17.096h-37.396v-27.78C152.817 11.959 164.776 0 179.528 0H297.06c14.752 0 26.711 11.96 26.711 26.712Z" clip-rule="evenodd"/><path fill="#5EB5FF" d="M34.778 268.051 0 243.21c10.217-14.304 20.757-25.37 31.846-33.133 12.326-8.628 25.423-13.212 38.966-13.212 12.576 0 23.468 3.05 33.199 8.888 3.926 2.356 7.532 5.073 11.178 8.29 2.514 2.218 4.31 3.959 8.13 7.779 5.791 5.791 8.197 7.914 11.076 9.641 3.124 1.875 6.423 2.798 11.21 2.798 4.792 0 8.104-.926 11.245-2.807 2.893-1.732 5.319-3.868 11.108-9.646l.053-.053c3.802-3.795 5.615-5.549 8.13-7.763 3.641-3.206 7.241-5.915 11.158-8.263 9.711-5.821 20.572-8.864 33.099-8.864 12.527 0 23.387 3.043 33.098 8.864 3.917 2.348 7.517 5.057 11.159 8.263 2.514 2.214 4.328 3.968 8.129 7.763l.053.053c5.789 5.778 8.215 7.914 11.109 9.646 3.14 1.881 6.452 2.807 11.244 2.807 4.265 0 8.975-1.648 14.457-5.486 6.719-4.703 13.987-12.334 21.578-22.961l34.778 24.841c-10.217 14.304-20.757 25.37-31.847 33.133C321.831 272.416 308.733 277 295.19 277c-12.57 0-23.465-3.047-33.203-8.879-3.929-2.354-7.541-5.069-11.192-8.283-2.522-2.22-4.34-3.978-8.15-7.781l-.053-.053c-5.775-5.764-8.193-7.893-11.07-9.618-3.112-1.865-6.385-2.782-11.124-2.782-4.74 0-8.013.917-11.125 2.782-2.877 1.725-5.295 3.854-11.07 9.618l-.053.053c-3.809 3.803-5.628 5.561-8.15 7.781-3.651 3.214-7.262 5.929-11.192 8.283-9.738 5.832-20.632 8.879-33.203 8.879-12.575 0-23.467-3.05-33.199-8.888-3.926-2.356-7.532-5.073-11.178-8.29-2.514-2.218-4.31-3.959-8.13-7.779-5.79-5.791-8.196-7.914-11.076-9.641-3.124-1.875-6.422-2.798-11.21-2.798-4.264 0-8.974 1.648-14.457 5.486-6.718 4.703-13.986 12.334-21.577 22.961Z"/></svg>
\ No newline at end of file
diff --git a/apps/client/static/icons/lavalink.png b/apps/client/static/icons/lavalink.png
new file mode 100644
index 0000000000..114458bf28
Binary files /dev/null and b/apps/client/static/icons/lavalink.png differ
diff --git a/apps/client/static/icons/meilisearch.svg b/apps/client/static/icons/meilisearch.svg
new file mode 100644
index 0000000000..72a8f30e11
--- /dev/null
+++ b/apps/client/static/icons/meilisearch.svg
@@ -0,0 +1,40 @@
+<svg
+ viewBox="0 0 127 74"
+ xmlns="http://www.w3.org/2000/svg"
+ ><path
+ d="M.825 73.993l23.244-59.47A21.85 21.85 0 0144.42.625h14.014L35.19 60.096a21.85 21.85 0 01-20.352 13.897H.825z"
+ fill="url(#meilisearch_logo_svg__paint0_linear_0_6)"
+ /><path
+ d="M34.925 73.993l23.243-59.47A21.85 21.85 0 0178.52.626h14.013L69.29 60.096a21.85 21.85 0 01-20.351 13.897H34.925z"
+ fill="url(#meilisearch_logo_svg__paint1_linear_0_6)"
+ /><path
+ d="M69.026 73.993l23.244-59.47A21.85 21.85 0 01112.621.626h14.014l-23.244 59.47a21.851 21.851 0 01-20.352 13.897H69.026z"
+ fill="url(#meilisearch_logo_svg__paint2_linear_0_6)"
+ /><defs
+ ><linearGradient
+ id="meilisearch_logo_svg__paint0_linear_0_6"
+ x1="126.635"
+ y1="-4.978"
+ x2="0.825"
+ y2="66.098"
+ gradientUnits="userSpaceOnUse"
+ ><stop stop-color="#FF5CAA" /><stop offset="1" stop-color="#FF4E62" /></linearGradient
+ ><linearGradient
+ id="meilisearch_logo_svg__paint1_linear_0_6"
+ x1="126.635"
+ y1="-4.978"
+ x2="0.825"
+ y2="66.098"
+ gradientUnits="userSpaceOnUse"
+ ><stop stop-color="#FF5CAA" /><stop offset="1" stop-color="#FF4E62" /></linearGradient
+ ><linearGradient
+ id="meilisearch_logo_svg__paint2_linear_0_6"
+ x1="126.635"
+ y1="-4.978"
+ x2="0.825"
+ y2="66.098"
+ gradientUnits="userSpaceOnUse"
+ ><stop stop-color="#FF5CAA" /><stop offset="1" stop-color="#FF4E62" /></linearGradient
+ ></defs
+ ></svg
+>
diff --git a/apps/client/static/icons/minio.png b/apps/client/static/icons/minio.png
new file mode 100644
index 0000000000..d1b32be9ed
Binary files /dev/null and b/apps/client/static/icons/minio.png differ
diff --git a/apps/client/static/icons/moodle.png b/apps/client/static/icons/moodle.png
new file mode 100644
index 0000000000..a5cec5be7c
Binary files /dev/null and b/apps/client/static/icons/moodle.png differ
diff --git a/apps/client/static/icons/n8n.svg b/apps/client/static/icons/n8n.svg
new file mode 100644
index 0000000000..262a6e7a6d
--- /dev/null
+++ b/apps/client/static/icons/n8n.svg
@@ -0,0 +1 @@
+<svg width="163" height="60" viewBox="0 0 80 20" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-3baeee6e="" class=""><path fill-rule="evenodd" clip-rule="evenodd" d="M78.9736 8C78.9736 12.4183 75.3919 16 70.9736 16C67.246 16 64.1138 13.4505 63.2257 10H52.0564C50.101 10 48.4323 11.4137 48.1108 13.3424L47.782 15.3152C47.4698 17.1883 46.5223 18.8185 45.1824 20C46.5223 21.1815 47.4698 22.8117 47.782 24.6848L48.1108 26.6576C48.4323 28.5863 50.101 30 52.0564 30H55.2257C56.1138 26.5495 59.246 24 62.9736 24C67.3919 24 70.9736 27.5817 70.9736 32C70.9736 36.4183 67.3919 40 62.9736 40C59.246 40 56.1138 37.4505 55.2257 34H52.0564C48.1457 34 44.8082 31.1727 44.1653 27.3152L43.8364 25.3424C43.515 23.4137 41.8462 22 39.8909 22H36.628C35.6294 25.2801 32.5802 27.6667 28.9736 27.6667C25.367 27.6667 22.3179 25.2801 21.3193 22H16.628C15.6294 25.2801 12.5802 27.6667 8.97363 27.6667C4.55536 27.6667 0.973633 24.0849 0.973633 19.6667C0.973633 15.2484 4.55536 11.6667 8.97363 11.6667C12.8204 11.6667 16.033 14.3817 16.7998 18H21.1475C21.9143 14.3817 25.1269 11.6667 28.9736 11.6667C32.8204 11.6667 36.033 14.3817 36.7998 18H39.8909C41.8462 18 43.515 16.5863 43.8364 14.6576L44.1653 12.6848C44.8082 8.8273 48.1457 6 52.0564 6L63.2257 6C64.1138 2.54955 67.246 0 70.9736 0C75.3919 0 78.9736 3.58172 78.9736 8ZM74.9736 8C74.9736 10.2091 73.1828 12 70.9736 12C68.7645 12 66.9736 10.2091 66.9736 8C66.9736 5.79086 68.7645 4 70.9736 4C73.1828 4 74.9736 5.79086 74.9736 8ZM8.97363 23.6667C11.1828 23.6667 12.9736 21.8758 12.9736 19.6667C12.9736 17.4575 11.1828 15.6667 8.97363 15.6667C6.76449 15.6667 4.97363 17.4575 4.97363 19.6667C4.97363 21.8758 6.76449 23.6667 8.97363 23.6667ZM28.9736 23.6667C31.1828 23.6667 32.9736 21.8758 32.9736 19.6667C32.9736 17.4575 31.1828 15.6667 28.9736 15.6667C26.7645 15.6667 24.9736 17.4575 24.9736 19.6667C24.9736 21.8758 26.7645 23.6667 28.9736 23.6667ZM62.9736 36C65.1828 36 66.9736 34.2091 66.9736 32C66.9736 29.7909 65.1828 28 62.9736 28C60.7645 28 58.9736 29.7909 58.9736 32C58.9736 34.2091 60.7645 36 62.9736 36Z" fill="#EA4B71" data-v-3baeee6e="" data-darkreader-inline-fill="" style="--darkreader-inline-fill:#a21335;"></path></svg>
\ No newline at end of file
diff --git a/apps/client/static/icons/nocodb.png b/apps/client/static/icons/nocodb.png
new file mode 100644
index 0000000000..dec31a6dd8
Binary files /dev/null and b/apps/client/static/icons/nocodb.png differ
diff --git a/apps/client/static/icons/plausibleanalytics.png b/apps/client/static/icons/plausibleanalytics.png
new file mode 100644
index 0000000000..c02e68d636
Binary files /dev/null and b/apps/client/static/icons/plausibleanalytics.png differ
diff --git a/apps/client/static/icons/pocketbase.svg b/apps/client/static/icons/pocketbase.svg
new file mode 100644
index 0000000000..5b5de956be
--- /dev/null
+++ b/apps/client/static/icons/pocketbase.svg
@@ -0,0 +1,9 @@
+<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
+<rect x="25.536" y="13.4861" width="1.71467" height="16.7338" transform="rotate(45.9772 25.536 13.4861)" fill="white"/>
+<path d="M26 14H36.8C37.4628 14 38 14.5373 38 15.2V36.8C38 37.4628 37.4628 38 36.8 38H15.2C14.5373 38 14 37.4628 14 36.8V26" fill="white"/>
+<path d="M26 14H36.8C37.4628 14 38 14.5373 38 15.2V36.8C38 37.4628 37.4628 38 36.8 38H15.2C14.5373 38 14 37.4628 14 36.8V26" stroke="#16161a" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
+<path d="M26 14V3.2C26 2.53726 25.4628 2 24.8 2H3.2C2.53726 2 2 2.53726 2 3.2V24.8C2 25.4628 2.53726 26 3.2 26H14" fill="white"/>
+<path d="M26 14V3.2C26 2.53726 25.4628 2 24.8 2H3.2C2.53726 2 2 2.53726 2 3.2V24.8C2 25.4628 2.53726 26 3.2 26H14" stroke="#16161a" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
+<path d="M10 20C9.44772 20 9 19.5523 9 19V8C9 7.44772 9.44772 7 10 7H13.7531C14.4801 7 15.1591 7.07311 15.7901 7.21932C16.4348 7.35225 16.9904 7.58487 17.4568 7.91718C17.9369 8.2362 18.3141 8.6682 18.5885 9.21319C18.8628 9.74489 19 10.4029 19 11.1871C19 11.9448 18.856 12.6028 18.5679 13.161C18.2936 13.7193 17.9163 14.1779 17.4362 14.5368C16.9561 14.8957 16.4005 15.1616 15.7695 15.3344C15.1385 15.5072 14.4664 15.5936 13.7531 15.5936H13.0247C12.4724 15.5936 12.0247 16.0413 12.0247 16.5936V19C12.0247 19.5523 11.577 20 11.0247 20H10ZM12.0247 12.2607C12.0247 12.813 12.4724 13.2607 13.0247 13.2607H13.5679C15.214 13.2607 16.037 12.5695 16.037 11.1871C16.037 10.5092 15.8244 10.0307 15.3992 9.75153C14.9877 9.47239 14.3772 9.33282 13.5679 9.33282H13.0247C12.4724 9.33282 12.0247 9.78054 12.0247 10.3328V12.2607Z" fill="#16161a"/>
+<path d="M22 33C21.4477 33 21 32.5523 21 32V21C21 20.4477 21.4477 20 22 20H25.4877C26.1844 20 26.8265 20.0532 27.4139 20.1595C28.015 20.2526 28.5342 20.4254 28.9713 20.6779C29.4085 20.9305 29.75 21.2628 29.9959 21.6748C30.2555 22.0869 30.3852 22.6053 30.3852 23.2301C30.3852 23.5225 30.3374 23.8149 30.2418 24.1074C30.1598 24.3998 30.0232 24.6723 29.832 24.9248C29.6407 25.1774 29.4016 25.4034 29.1148 25.6028C28.837 25.7958 28.5081 25.939 28.1279 26.0323C28.1058 26.0378 28.0902 26.0575 28.0902 26.0802V26.0802C28.0902 26.1039 28.1073 26.1242 28.1306 26.1286C29.0669 26.3034 29.7774 26.6332 30.2623 27.1181C30.7541 27.6099 31 28.2945 31 29.1718C31 29.8364 30.8702 30.408 30.6107 30.8865C30.3511 31.365 29.9891 31.7638 29.5246 32.0828C29.0601 32.3885 28.5137 32.6212 27.8852 32.7807C27.2705 32.9269 26.6011 33 25.8771 33H22ZM24.0123 24.2239C24.0123 24.7762 24.46 25.2239 25.0123 25.2239H25.3443C26.082 25.2239 26.6148 25.0844 26.9426 24.8052C27.2705 24.5261 27.4344 24.1339 27.4344 23.6288C27.4344 23.1503 27.2637 22.8113 26.9221 22.612C26.5943 22.3993 26.0751 22.2929 25.3648 22.2929H25.0123C24.46 22.2929 24.0123 22.7407 24.0123 23.2929V24.2239ZM24.0123 29.7071C24.0123 30.2593 24.46 30.7071 25.0123 30.7071H25.6311C27.2432 30.7071 28.0492 30.1222 28.0492 28.9525C28.0492 28.3809 27.8511 27.9688 27.4549 27.7163C27.0724 27.4637 26.4645 27.3374 25.6311 27.3374H25.0123C24.46 27.3374 24.0123 27.7851 24.0123 28.3374V29.7071Z" fill="#16161a"/>
+</svg>
diff --git a/apps/client/static/icons/searxng.svg b/apps/client/static/icons/searxng.svg
new file mode 100644
index 0000000000..c0dd11b438
--- /dev/null
+++ b/apps/client/static/icons/searxng.svg
@@ -0,0 +1,56 @@
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ id="svg8"
+ version="1.1"
+ viewBox="0 0 92 92"
+ height="92mm"
+ width="92mm">
+ <defs
+ id="defs2" />
+ <metadata
+ id="metadata5">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ transform="translate(-40.921303,-17.416526)"
+ id="layer1">
+ <circle
+ r="0"
+ style="fill:none;stroke:#000000;stroke-width:12;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ cy="92"
+ cx="75"
+ id="path3713" />
+ <circle
+ r="30"
+ cy="53.902557"
+ cx="75.921303"
+ id="path834"
+ style="fill:none;fill-opacity:1;stroke:#3050ff;stroke-width:10;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
+ <path
+ d="m 67.514849,37.91524 a 18,18 0 0 1 21.051475,3.312407 18,18 0 0 1 3.137312,21.078282"
+ id="path852"
+ style="fill:none;fill-opacity:1;stroke:#3050ff;stroke-width:5;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
+ <rect
+ transform="rotate(-46.234709)"
+ ry="1.8669105e-13"
+ y="122.08995"
+ x="3.7063529"
+ height="39.963303"
+ width="18.846331"
+ id="rect912"
+ style="opacity:1;fill:#3050ff;fill-opacity:1;stroke:none;stroke-width:8;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
+ </g>
+</svg>
diff --git a/apps/client/static/icons/trilium.png b/apps/client/static/icons/trilium.png
new file mode 100644
index 0000000000..249aceef34
Binary files /dev/null and b/apps/client/static/icons/trilium.png differ
diff --git a/apps/client/static/icons/umami.svg b/apps/client/static/icons/umami.svg
new file mode 100644
index 0000000000..b9d1abca3f
--- /dev/null
+++ b/apps/client/static/icons/umami.svg
@@ -0,0 +1,78 @@
+<svg
+ version="1.0"
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 856.000000 856.000000"
+ preserveAspectRatio="xMidYMid meet"
+>
+ <metadata> Created by potrace 1.11, written by Peter Selinger 2001-2013 </metadata>
+ <g
+ transform="translate(0.000000,856.000000) scale(0.100000,-0.100000)"
+ fill="#fff"
+ stroke="none"
+ >
+ <path
+ d="M4027 8163 c-2 -2 -28 -5 -58 -7 -50 -4 -94 -9 -179 -22 -19 -2 -48
+-6 -65 -9 -47 -6 -236 -44 -280 -55 -22 -6 -49 -12 -60 -15 -34 -6 -58 -13
+-130 -36 -38 -13 -72 -23 -75 -24 -29 -6 -194 -66 -264 -96 -49 -22 -95 -39
+-102 -39 -7 0 -19 -7 -28 -15 -8 -9 -18 -15 -21 -14 -7 1 -197 -92 -205 -101
+-3 -3 -21 -13 -40 -24 -79 -42 -123 -69 -226 -137 -94 -62 -246 -173 -280
+-204 -6 -5 -29 -25 -52 -43 -136 -111 -329 -305 -457 -462 -21 -25 -41 -47
+-44 -50 -4 -3 -22 -26 -39 -52 -18 -25 -38 -52 -45 -60 -34 -35 -207 -308
+-259 -408 -13 -25 -25 -47 -28 -50 -11 -11 -121 -250 -159 -346 -42 -105 -114
+-321 -126 -374 l-7 -30 -263 0 c-245 0 -268 -2 -321 -21 -94 -35 -171 -122
+-191 -216 -9 -39 -8 -852 0 -938 9 -87 16 -150 23 -195 3 -19 6 -48 8 -65 3
+-29 14 -97 22 -140 3 -11 7 -36 10 -55 3 -19 9 -51 14 -70 5 -19 11 -46 14
+-60 29 -138 104 -401 145 -505 5 -11 23 -58 42 -105 18 -47 42 -105 52 -130
+11 -25 21 -49 22 -55 3 -10 109 -224 164 -330 18 -33 50 -89 71 -124 22 -34
+40 -64 40 -66 0 -8 104 -161 114 -167 6 -4 7 -8 3 -8 -4 0 4 -12 18 -27 14
+-15 25 -32 25 -36 0 -5 6 -14 13 -21 6 -7 21 -25 32 -41 11 -15 34 -44 50 -64
+17 -21 41 -52 55 -70 13 -18 33 -43 45 -56 11 -13 42 -49 70 -81 100 -118 359
+-369 483 -469 34 -27 62 -53 62 -57 0 -5 6 -8 13 -8 7 0 19 -9 27 -20 8 -11
+19 -20 26 -20 6 0 19 -9 29 -20 10 -11 22 -20 27 -20 5 0 23 -13 41 -30 18
+-16 37 -30 44 -30 6 0 13 -4 15 -8 3 -8 186 -132 194 -132 2 0 27 -15 56 -34
+132 -83 377 -207 558 -280 36 -15 74 -31 85 -36 62 -26 220 -81 320 -109 79
+-23 191 -53 214 -57 14 -3 28 -7 31 -9 4 -2 20 -7 36 -9 16 -3 40 -8 54 -11
+14 -3 36 -8 50 -11 14 -2 36 -7 50 -10 13 -3 40 -8 60 -10 19 -2 46 -7 60 -10
+54 -10 171 -25 320 -40 90 -9 613 -12 636 -4 11 5 28 4 37 -1 9 -6 17 -6 17
+-1 0 4 10 8 23 9 29 0 154 12 192 18 17 3 46 7 65 9 70 10 131 20 183 32 16 3
+38 7 50 9 45 7 165 36 252 60 50 14 100 28 112 30 12 3 34 10 48 15 14 5 25 7
+25 4 0 -4 6 -2 13 3 6 6 30 16 52 22 22 7 47 15 55 18 8 4 17 7 20 7 10 2 179
+68 240 94 96 40 342 159 395 191 17 10 53 30 80 46 28 15 81 47 118 71 37 24
+72 44 76 44 5 0 11 3 13 8 2 4 30 25 63 47 33 22 62 42 65 45 3 3 50 38 105
+79 55 40 105 79 110 85 6 6 24 22 40 34 85 65 465 430 465 447 0 3 8 13 18 23
+9 10 35 40 57 66 22 27 47 56 55 65 8 9 42 52 74 96 32 44 71 96 85 115 140
+183 358 576 461 830 12 30 28 69 36 85 24 56 123 355 117 355 -3 0 -1 6 5 13
+6 6 14 30 18 52 10 48 9 46 17 65 5 13 37 155 52 230 9 42 35 195 40 231 34
+235 40 357 40 804 l0 420 -24 44 c-46 87 -143 157 -231 166 -19 2 -144 4 -276
+4 l-242 1 -36 118 c-21 64 -46 139 -56 166 -11 27 -20 52 -20 57 0 5 -11 33
+-25 63 -14 30 -25 58 -25 61 0 18 -152 329 -162 333 -5 2 -8 10 -8 18 0 8 -4
+14 -10 14 -5 0 -9 3 -8 8 3 9 -40 82 -128 217 -63 97 -98 145 -187 259 -133
+171 -380 420 -559 564 -71 56 -132 102 -138 102 -5 0 -10 3 -10 8 0 4 -25 23
+-55 42 -30 19 -55 38 -55 43 0 4 -6 7 -13 7 -7 0 -22 8 -33 18 -11 9 -37 26
+-59 37 -21 11 -44 25 -50 30 -41 37 -413 220 -540 266 -27 9 -61 22 -75 27
+-14 5 -28 10 -32 11 -4 1 -28 10 -53 21 -25 11 -46 19 -48 18 -2 -1 -109 29
+-137 40 -13 4 -32 9 -65 16 -5 1 -16 5 -22 9 -7 5 -13 6 -13 3 0 -2 -15 0 -32
+5 -18 5 -44 11 -58 14 -14 3 -36 7 -50 10 -14 3 -50 9 -80 15 -30 6 -64 12
+-75 14 -11 2 -45 6 -75 10 -30 4 -71 9 -90 12 -19 3 -53 6 -75 7 -22 1 -44 5
+-50 8 -11 7 -542 9 -548 2z m57 -404 c7 10 436 8 511 -3 22 -3 60 -8 85 -11
+25 -2 56 -6 70 -9 14 -2 43 -7 65 -10 38 -5 58 -9 115 -21 14 -3 34 -7 45 -9
+11 -2 58 -14 105 -26 47 -12 92 -23 100 -25 35 -7 279 -94 308 -109 17 -9 34
+-16 37 -16 3 1 20 -6 38 -14 17 -8 68 -31 112 -51 44 -20 82 -35 84 -35 2 1 7
+-3 10 -8 3 -5 43 -28 88 -51 45 -23 87 -48 93 -56 7 -8 17 -15 22 -15 12 0
+192 -121 196 -132 2 -4 8 -8 13 -8 10 0 119 -86 220 -172 102 -87 256 -244
+349 -357 25 -30 53 -63 63 -73 9 -10 17 -22 17 -28 0 -5 3 -10 8 -10 4 0 25
+-27 46 -60 22 -33 43 -60 48 -60 4 0 8 -5 8 -11 0 -6 11 -25 25 -43 14 -18 25
+-38 25 -44 0 -7 4 -12 8 -12 5 0 16 -15 25 -32 9 -18 30 -55 47 -83 46 -77
+161 -305 154 -305 -4 0 -2 -6 4 -12 6 -7 23 -47 40 -88 16 -41 33 -84 37 -95
+5 -11 9 -22 10 -25 0 -3 11 -36 24 -73 13 -38 21 -70 19 -73 -3 -2 -1386 -3
+-3075 -2 l-3071 3 38 110 c47 137 117 301 182 425 62 118 167 295 191 320 9
+11 17 22 17 25 0 7 39 63 58 83 6 7 26 35 44 60 18 26 37 52 43 57 6 6 34 37
+61 70 48 59 271 286 329 335 17 14 53 43 80 65 28 22 52 42 55 45 3 3 21 17
+40 30 19 14 40 28 45 32 40 32 105 78 109 78 3 0 28 16 55 35 26 19 53 35 58
+35 5 0 18 8 29 18 17 15 53 35 216 119 118 60 412 176 422 166 3 -4 6 -2 6 4
+0 6 12 13 28 16 15 3 52 12 82 21 30 9 63 19 73 21 10 2 27 7 37 10 10 3 29 8
+42 10 13 3 48 10 78 16 30 7 61 12 68 12 6 0 12 4 12 9 0 5 5 6 10 3 6 -4 34
+-2 63 4 51 11 71 13 197 26 36 4 67 9 69 11 2 2 10 -1 17 -7 8 -6 14 -7 18 0z"
+ />
+ </g>
+</svg>
diff --git a/apps/client/static/icons/uptimekuma.svg b/apps/client/static/icons/uptimekuma.svg
new file mode 100644
index 0000000000..e67bc836a1
--- /dev/null
+++ b/apps/client/static/icons/uptimekuma.svg
@@ -0,0 +1,154 @@
+<svg
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ version="1.1"
+ preserveAspectRatio="xMidYMid meet"
+ viewBox="0 0 640 640"
+ width="640"
+ height="640"
+ ><defs
+ ><path
+ d="M407.55 916.24C471.25 916.24 522.89 967.88 522.89 1031.57C522.89 1113.88 522.89 1245.44 522.89 1327.74C522.89 1391.44 471.25 1443.08 407.55 1443.08C325.25 1443.08 193.68 1443.08 111.38 1443.08C47.69 1443.08 -3.95 1391.44 -3.95 1327.74C-3.95 1245.44 -3.95 1113.88 -3.95 1031.57C-3.95 967.88 47.69 916.24 111.38 916.24C193.68 916.24 325.25 916.24 407.55 916.24Z"
+ id="a1LdTs1gvU"
+ /><linearGradient
+ id="gradientcoH7TNh19"
+ gradientUnits="userSpaceOnUse"
+ x1="256.07"
+ y1="1132.14"
+ x2="609.11"
+ y2="1480.42"
+ ><stop style="stop-color: #c2efd2;stop-opacity: 1" offset="0%" /><stop
+ style="stop-color: #8ff0e5;stop-opacity: 1"
+ offset="100%"
+ /></linearGradient
+ ><path
+ d="M-467.41 394.63C-467.41 554.76 -597.42 684.76 -757.55 684.76C-917.68 684.76 -1047.69 554.76 -1047.69 394.63C-1047.69 234.5 -917.68 104.49 -757.55 104.49C-597.42 104.49 -467.41 234.5 -467.41 394.63Z"
+ id="a1uaEBd4xM"
+ /><path
+ d="M-96.99 -586.14C-57.24 -619.85 -5.79 -604.75 19.26 -580.46C31.43 -568.66 56.57 -546.36 40.97 -491.67C32.76 -462.87 10.41 -436.4 -26.05 -412.27C-15.07 -377.85 -5.6 -344.76 2.36 -313C14.29 -265.36 13.55 -189.67 -26.05 -155.4C-67.27 -119.73 -166.91 -104.09 -234.24 -103.09C-301.57 -102.1 -406.19 -113.09 -461.6 -155.4C-517.01 -197.7 -512.24 -257.07 -498.04 -313C-488.58 -350.28 -476.43 -383.38 -461.6 -412.27C-505.54 -441.3 -530.54 -467.76 -536.6 -491.67C-545.68 -527.54 -530.93 -565.61 -501.12 -586.14C-471.31 -606.67 -435.18 -606.9 -400.45 -586.14C-377.3 -572.3 -354.79 -542.13 -332.92 -495.62C-287.85 -505.25 -254.96 -509.57 -234.24 -508.6C-214.74 -507.68 -186.57 -503.36 -149.72 -495.62C-135.81 -537.95 -118.23 -568.12 -96.99 -586.14Z"
+ id="f8p7QlEjN3"
+ /><linearGradient
+ id="gradienta4Tg99ZOOp"
+ gradientUnits="userSpaceOnUse"
+ x1="-440.25"
+ y1="-388.59"
+ x2="-100.49"
+ y2="-147.33"
+ ><stop style="stop-color: #5cdd8b;stop-opacity: 1" offset="0%" /><stop
+ style="stop-color: #7ae6a1;stop-opacity: 1"
+ offset="100%"
+ /></linearGradient
+ ><path
+ d="M-86.03 -10.69C-61.35 -10.69 -41.34 9.32 -41.34 34.01C-41.34 119.07 -41.34 329.58 -41.34 414.65C-41.34 439.33 -61.35 459.34 -86.03 459.34C-136.01 459.34 -241.25 459.34 -291.23 459.34C-315.92 459.34 -335.93 439.33 -335.93 414.65C-335.93 329.58 -335.93 119.07 -335.93 34.01C-335.93 9.32 -315.92 -10.69 -291.23 -10.69C-241.25 -10.69 -136.01 -10.69 -86.03 -10.69Z"
+ id="d32ZZRxd1S"
+ /><linearGradient
+ id="gradientb1JxIe4xUm"
+ gradientUnits="userSpaceOnUse"
+ x1="-791.65"
+ y1="-33.27"
+ x2="892.1"
+ y2="418.94"
+ ><stop style="stop-color: #5cdd8b;stop-opacity: 1" offset="0%" /><stop
+ style="stop-color: #5ae98f;stop-opacity: 1"
+ offset="100%"
+ /></linearGradient
+ ><path
+ d="M-257.95 458.12C-247.92 449.62 -234.93 453.43 -228.61 459.56C-225.54 462.54 -219.19 468.17 -223.13 481.97C-225.2 489.24 -230.84 495.92 -240.05 502.01C-237.27 510.7 -234.88 519.06 -232.88 527.07C-229.86 539.1 -230.05 558.21 -240.05 566.86C-250.45 575.86 -275.6 579.81 -292.6 580.06C-309.6 580.31 -336.01 577.54 -349.99 566.86C-363.98 556.18 -362.77 541.19 -359.19 527.07C-356.8 517.66 -353.73 509.31 -349.99 502.01C-361.08 494.69 -367.39 488.01 -368.92 481.97C-371.22 472.92 -367.49 463.31 -359.97 458.12C-352.44 452.94 -343.32 452.88 -334.56 458.12C-328.71 461.62 -323.03 469.23 -317.51 480.97C-306.13 478.54 -297.83 477.45 -292.6 477.7C-287.68 477.93 -280.56 479.02 -271.26 480.97C-267.75 470.29 -263.32 462.67 -257.95 458.12Z"
+ id="b19LRRbPrG"
+ /><path
+ d="M490.4 235.64C544.09 358.38 544.09 435.34 490.4 466.5C409.85 513.24 199.96 527.49 139.54 455.64C99.26 407.74 99.26 334.4 139.54 235.64C180.5 168.18 238.71 134.45 314.17 134.45C389.64 134.45 448.38 168.18 490.4 235.64Z"
+ id="bN5StdyPU"
+ /><linearGradient
+ id="gradientb1HT15TsY0"
+ gradientUnits="userSpaceOnUse"
+ x1="259.78"
+ y1="261.15"
+ x2="463.85"
+ y2="456.49"
+ ><stop style="stop-color: #5cdd8b;stop-opacity: 1" offset="0%" /><stop
+ style="stop-color: #86e6a9;stop-opacity: 1"
+ offset="100%"
+ /></linearGradient
+ ><path
+ d="M393.81 -775.89C428.26 -748.09 439.99 -725.54 429 -708.22C412.51 -682.24 353.16 -646.07 324.5 -657.93C305.39 -665.83 294.22 -687.32 290.97 -722.41C292.69 -748.43 304.61 -767.19 326.73 -778.69C348.85 -790.19 371.21 -789.26 393.81 -775.89Z"
+ id="arh6miPP2"
+ /><linearGradient
+ id="gradientc2g6rBSAiq"
+ gradientUnits="userSpaceOnUse"
+ x1="330.1"
+ y1="-733.26"
+ x2="419.69"
+ y2="-707.1"
+ ><stop style="stop-color: #5cdd8b;stop-opacity: 1" offset="0%" /><stop
+ style="stop-color: #86e6a9;stop-opacity: 1"
+ offset="100%"
+ /></linearGradient
+ ><path
+ d="M675.36 -369.24C669.97 -325.31 657.02 -303.43 636.51 -303.61C605.74 -303.87 543.67 -335.15 538.59 -365.74C535.2 -386.14 547.54 -406.99 575.61 -428.29C598.61 -440.58 620.83 -440.37 642.29 -427.67C663.74 -414.97 674.77 -395.49 675.36 -369.24Z"
+ id="a2VENFzCvL"
+ /><linearGradient
+ id="gradientc18GuJy4sZ"
+ gradientUnits="userSpaceOnUse"
+ x1="605.5"
+ y1="-400.8"
+ x2="630.64"
+ y2="-310.92"
+ ><stop style="stop-color: #5cdd8b;stop-opacity: 1" offset="0%" /><stop
+ style="stop-color: #86e6a9;stop-opacity: 1"
+ offset="100%"
+ /></linearGradient
+ ></defs
+ ><g
+ ><g
+ ><g><use xlink:href="#a1LdTs1gvU" opacity="1" fill="url(#gradientcoH7TNh19)" /></g><g
+ ><use xlink:href="#a1uaEBd4xM" opacity="1" fill="#ebf0ed" fill-opacity="1" /></g
+ ><g
+ ><use xlink:href="#f8p7QlEjN3" opacity="1" fill="url(#gradienta4Tg99ZOOp)" /><g
+ ><use
+ xlink:href="#f8p7QlEjN3"
+ opacity="1"
+ fill-opacity="0"
+ stroke="#ffffff"
+ stroke-width="98"
+ stroke-opacity="0.57"
+ /></g
+ ></g
+ ><g
+ ><use xlink:href="#d32ZZRxd1S" opacity="1" fill="url(#gradientb1JxIe4xUm)" /><g
+ ><use
+ xlink:href="#d32ZZRxd1S"
+ opacity="1"
+ fill-opacity="0"
+ stroke="#f2f2f2"
+ stroke-width="60"
+ stroke-opacity="0.51"
+ /></g
+ ></g
+ ><g
+ ><use xlink:href="#b19LRRbPrG" opacity="1" fill="#d8ad9a" fill-opacity="1" /><g
+ ><use
+ xlink:href="#b19LRRbPrG"
+ opacity="1"
+ fill-opacity="0"
+ stroke="#ffffff"
+ stroke-width="17"
+ stroke-opacity="1"
+ /></g
+ ></g
+ ><g
+ ><use xlink:href="#bN5StdyPU" opacity="1" fill="url(#gradientb1HT15TsY0)" /><g
+ ><use
+ xlink:href="#bN5StdyPU"
+ opacity="1"
+ fill-opacity="0"
+ stroke="#f2f2f2"
+ stroke-width="200"
+ stroke-opacity="0.51"
+ /></g
+ ></g
+ ><g><use xlink:href="#arh6miPP2" opacity="1" fill="url(#gradientc2g6rBSAiq)" /></g><g
+ ><use xlink:href="#a2VENFzCvL" opacity="1" fill="url(#gradientc18GuJy4sZ)" /></g
+ ></g
+ ></g
+ ></svg
+>
diff --git a/apps/client/static/icons/vaultwarden.svg b/apps/client/static/icons/vaultwarden.svg
new file mode 100644
index 0000000000..15433d8ed8
--- /dev/null
+++ b/apps/client/static/icons/vaultwarden.svg
@@ -0,0 +1,30 @@
+<svg
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ version="1.1"
+ id="Icon"
+ x="0px"
+ y="0px"
+ viewBox="0 0 1024 1024"
+ style="enable-background:new 0 0 1024 1024;"
+ xml:space="preserve"
+>
+ <style type="text/css">
+ .st0 {
+ fill: #175ddc;
+ }
+ .st1 {
+ fill: #ffffff;
+ }
+ </style>
+ <path
+ id="Background"
+ class="st0"
+ d="M1024,864c0,88.4-71.6,160-160,160H160C71.6,1024,0,952.4,0,864V160C0,71.6,71.6,0,160,0h704 c88.4,0,160,71.6,160,160V864z"
+ />
+ <path
+ id="Identity"
+ class="st1"
+ d="M829.8,128.6c-6.5-6.5-14.2-9.7-23-9.7H217.2c-8.9,0-16.5,3.2-23,9.7c-6.5,6.5-9.7,14.2-9.7,23 v393.1c0,29.3,5.7,58.4,17.1,87.3c11.4,28.8,25.6,54.4,42.5,76.8c16.9,22.3,37,44.1,60.4,65.3c23.4,21.2,45,38.7,64.7,52.7 c19.8,14,40.4,27.2,61.9,39.7c21.5,12.5,36.8,20.9,45.8,25.3c9,4.4,16.3,7.9,21.7,10.2c4.1,2,8.5,3.1,13.3,3.1c4.8,0,9.2-1,13.3-3.1 c5.5-2.4,12.7-5.8,21.8-10.2c9-4.4,24.3-12.9,45.8-25.3c21.5-12.5,42.1-25.7,61.9-39.7c19.8-14,41.4-31.6,64.8-52.7 c23.4-21.2,43.5-42.9,60.4-65.3c16.9-22.4,31-47.9,42.5-76.8c11.4-28.8,17.1-57.9,17.1-87.3V151.7 C839.6,142.8,836.3,135.1,829.8,128.6z M753.8,548.4c0,142.3-241.8,264.9-241.8,264.9V203.1h241.8 C753.8,203.1,753.8,406.1,753.8,548.4z"
+ />
+</svg>
diff --git a/apps/client/static/icons/vscodeserver.png b/apps/client/static/icons/vscodeserver.png
new file mode 100644
index 0000000000..37a084767a
Binary files /dev/null and b/apps/client/static/icons/vscodeserver.png differ
diff --git a/apps/client/static/icons/weblate.svg b/apps/client/static/icons/weblate.svg
new file mode 100644
index 0000000000..99c6ac483f
--- /dev/null
+++ b/apps/client/static/icons/weblate.svg
@@ -0,0 +1,56 @@
+<svg
+ xmlns="http://www.w3.org/2000/svg"
+ version="1.1"
+ viewBox="0 0 250 250"
+ ><linearGradient
+ id="a"
+ x1=".3965"
+ x2="98.808"
+ y1="55.253"
+ y2="55.253"
+ gradientTransform="scale(.98308 1.0172)"
+ gradientUnits="userSpaceOnUse"
+ ><stop stop-color="#00d2e6" offset="0" /><stop
+ stop-color="#2eccaa"
+ offset="1"
+ /></linearGradient
+ ><linearGradient
+ id="b"
+ x1="49.017"
+ x2="99.793"
+ y1="137.89"
+ y2="113.96"
+ gradientTransform="scale(1.1631 .8598)"
+ gradientUnits="userSpaceOnUse"
+ ><stop stop-opacity="0" offset="0" /><stop offset=".51413" /><stop
+ stop-opacity="0"
+ offset="1"
+ /></linearGradient
+ ><linearGradient
+ id="c"
+ x1="201.82"
+ x2="103.58"
+ y1="57.649"
+ y2="57.649"
+ gradientTransform="scale(.98308 1.0172)"
+ gradientUnits="userSpaceOnUse"
+ ><stop stop-color="#1fa385" offset="0" /><stop
+ stop-color="#2eccaa"
+ offset="1"
+ /></linearGradient
+ ><g transform="translate(50,76)" fill-rule="evenodd"
+ ><path
+ d="m127.25 111.61c-2.8884-0.0145-5.7666-0.6024-8.4797-1.7847-6.1117-2.6626-11.493-7.6912-15.872-14.495 1.2486-2.2193 2.3738-4.5173 3.3784-6.8535 4.4051-10.243 6.5-21.46 6.6607-32.593-0.0233-0.22082-0.0416-0.44244-0.0552-0.66483l-0.0121-0.57132c-0.01-4.3654-0.67459-8.7898-2.1767-12.909-1.7304-4.7458-4.4887-9.4955-8.865-11.348-0.79519-0.33595-1.6316-0.47701-2.4642-0.45737-5.5049-10.289-5.6799-20.149 0-29.537 0.10115 0 0.20619 3.9293e-4 0.30734 0.001179 6.7012 0.07387 13.34 2.1418 19.021 5.7536 15.469 9.835 23.182 29.001 23.352 47.818 2e-3 0.22083-3.9e-4 0.44126-7e-3 0.66169h0.0868c-0.0226 19.887-4.8049 40.054-14.875 56.979zm-34.3 31.216c-14.448 5.9425-31.228 5.6236-45.549-1.025-16.476-7.6476-29.065-22.512-36.818-39.479-13.262-29.022-13.566-63.715-0.98815-93.182 9.4458 3.7788 17.845-2.2397 17.845-2.2397s-0.01945 9.2605 8.9478 13.905c-9.2007 21.556-8.979 47.167 0.2412 68.173 4.4389 10.107 11.22 19.519 20.619 24.842 3.3547 1.8996 7.041 3.126 10.833 3.5862 0.01404 0.0219 0.02808 0.0439 0.04214 0.0658 6.6965 10.449 15.132 19.157 24.828 25.354z"
+ fill="url(#a)"
+ fill-rule="nonzero"
+ /><path
+ d="m127.24 111.61c-2.8869-0.0151-5.7636-0.60296-8.4755-1.7846-6.1127-2.663-11.495-7.6928-15.874-14.498 1.2494-2.2205 2.3754-4.5198 3.3806-6.8572 1.3282-3.0884 2.4463-6.2648 3.3644-9.501 2.128-7.4978 30.382 2.0181 26.072 14.371-2.2239 6.373-5.0394 12.509-8.4675 18.27zm-34.302 31.212c-14.446 5.9396-31.224 5.6198-45.543-1.0278-16.476-7.6476 0.44739-33.303 9.8465-27.981 3.3533 1.8988 7.0378 3.125 10.828 3.5856 0.01567 0.0245 0.03135 0.049 0.04704 0.0735 6.695 10.447 15.128 19.153 24.821 25.349z"
+ fill="url(#b)"
+ opacity=".3"
+ /><path
+ d="m56.762 54.628c-0.0066-0.22043-0.0093-0.44086-7e-3 -0.66169 0.17001-18.817 7.8827-37.983 23.352-47.818 5.6811-3.6118 12.32-5.6798 19.021-5.7536 0.10115-7.8585e-4 0.20619-0.001179 0.30734-0.001179v29.537c-0.83254-0.01965-1.669 0.12141-2.4642 0.45737-4.3763 1.8523-7.1345 6.602-8.865 11.348-1.5021 4.1191-2.1669 8.5434-2.1767 12.909l-0.01206 0.57132c-0.01362 0.2224-0.0319 0.44401-0.05524 0.66483 0.16067 11.134 2.2556 22.35 6.6607 32.593 4.9334 11.472 12.775 22.025 23.847 26.849 8.3526 3.6397 17.612 2.7811 25.182-1.5057 9.3991-5.3226 16.18-14.734 20.619-24.842 9.2202-21.006 9.4419-46.617 0.24121-68.173 8.9673-4.6444 8.9478-13.905 8.9478-13.905s8.3993 6.0185 17.845 2.2397c12.578 29.466 12.274 64.16-0.98815 93.182-7.7535 16.967-20.343 31.831-36.818 39.479-14.667 6.809-31.913 6.9792-46.591 0.58389-13.19-5.7489-23.918-16.106-31.637-28.15-11.179-17.443-16.472-38.678-16.496-59.604z"
+ fill="url(#c)"
+ fill-rule="nonzero"
+ /></g
+ ></svg
+>
diff --git a/apps/client/static/icons/wordpress.svg b/apps/client/static/icons/wordpress.svg
new file mode 100644
index 0000000000..31149e2baa
--- /dev/null
+++ b/apps/client/static/icons/wordpress.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" role="img" width="28" height="28" viewBox="0 0 28 28">
+ <path fill="#fff" d="M13.6052 0.923525C16.1432 0.923525 18.6137 1.67953 20.7062 3.09703C22.7447 4.47403 24.3512 6.41803 25.3097 8.68603C26.9837 12.6415 26.5382 17.164 24.1352 20.7145C22.7582 22.753 20.8142 24.3595 18.5462 25.318C14.5907 26.992 10.0682 26.5465 6.51772 24.1435C4.47922 22.7665 2.87272 20.8225 1.91422 18.5545C0.240225 14.599 0.685725 10.0765 3.08872 6.52603C4.46572 4.48753 6.40973 2.88103 8.67772 1.92253C10.2302 1.26103 11.9177 0.923525 13.6052 0.923525ZM13.6052 0.113525C6.15322 0.113525 0.105225 6.16153 0.105225 13.6135C0.105225 21.0655 6.15322 27.1135 13.6052 27.1135C21.0572 27.1135 27.1052 21.0655 27.1052 13.6135C27.1052 6.16153 21.0572 0.113525 13.6052 0.113525Z" data-darkreader-inline-fill="" style="--darkreader-inline-fill:currentColor;"></path>
+ <path fill="#fff" d="M2.36011 13.6133C2.36011 17.9198 4.81711 21.8618 8.70511 23.7383L3.33211 9.03684C2.68411 10.4813 2.36011 12.0338 2.36011 13.6133ZM21.2061 13.0463C21.2061 11.6558 20.7066 10.6973 20.2746 9.94134C19.8426 9.18534 19.1676 8.22684 19.1676 7.30884C19.1676 6.39084 19.9506 5.31084 21.0576 5.31084H21.2061C16.6296 1.11234 9.51511 1.42284 5.31661 6.01284C4.91161 6.45834 4.53361 6.93084 4.20961 7.43034H4.93861C6.11311 7.43034 7.93561 7.28184 7.93561 7.28184C8.54311 7.24134 8.61061 8.13234 8.00311 8.21334C8.00311 8.21334 7.39561 8.28084 6.72061 8.32134L10.8111 20.5118L13.2681 13.1273L11.5131 8.32134C10.9056 8.28084 10.3386 8.21334 10.3386 8.21334C9.73111 8.17284 9.79861 7.25484 10.4061 7.28184C10.4061 7.28184 12.2691 7.43034 13.3626 7.43034C14.4561 7.43034 16.3596 7.28184 16.3596 7.28184C16.9671 7.24134 17.0346 8.13234 16.4271 8.21334C16.4271 8.21334 15.8196 8.28084 15.1446 8.32134L19.2081 20.4173L20.3691 16.7453C20.8821 15.1388 21.1926 14.0048 21.1926 13.0328L21.2061 13.0463ZM13.7946 14.5853L10.4196 24.3998C12.6876 25.0613 15.1041 25.0073 17.3316 24.2243L17.2506 24.0758L13.7946 14.5853ZM23.4741 8.21334C23.5281 8.59134 23.5551 8.98284 23.5551 9.37434C23.5551 10.5218 23.3391 11.8043 22.7046 13.3973L19.2621 23.3333C24.5271 20.2688 26.4036 13.5593 23.4741 8.21334Z" data-darkreader-inline-fill="" style="--darkreader-inline-fill:currentColor;"></path>
+</svg>
\ No newline at end of file
diff --git a/apps/client/static/poppins-v19-latin-ext_latin_devanagari-500.woff b/apps/client/static/poppins-v19-latin-ext_latin_devanagari-500.woff
new file mode 100644
index 0000000000..d5e713b461
Binary files /dev/null and b/apps/client/static/poppins-v19-latin-ext_latin_devanagari-500.woff differ
diff --git a/apps/client/static/poppins-v19-latin-ext_latin_devanagari-500.woff2 b/apps/client/static/poppins-v19-latin-ext_latin_devanagari-500.woff2
new file mode 100644
index 0000000000..6e1053fbc7
Binary files /dev/null and b/apps/client/static/poppins-v19-latin-ext_latin_devanagari-500.woff2 differ
diff --git a/apps/client/static/poppins-v19-latin-ext_latin_devanagari-regular.woff b/apps/client/static/poppins-v19-latin-ext_latin_devanagari-regular.woff
new file mode 100644
index 0000000000..ccce523feb
Binary files /dev/null and b/apps/client/static/poppins-v19-latin-ext_latin_devanagari-regular.woff differ
diff --git a/apps/client/static/poppins-v19-latin-ext_latin_devanagari-regular.woff2 b/apps/client/static/poppins-v19-latin-ext_latin_devanagari-regular.woff2
new file mode 100644
index 0000000000..7457692a28
Binary files /dev/null and b/apps/client/static/poppins-v19-latin-ext_latin_devanagari-regular.woff2 differ
diff --git a/apps/client/tailwind.config.cjs b/apps/client/tailwind.config.cjs
index 0f5280a69a..cab4ddbb7f 100644
--- a/apps/client/tailwind.config.cjs
+++ b/apps/client/tailwind.config.cjs
@@ -1,11 +1,76 @@
-const config = {
- content: ['./src/**/*.{html,js,svelte,ts}'],
+const defaultTheme = require('tailwindcss/defaultTheme');
+module.exports = {
+ content: [
+ './**/*.html',
+ './src/**/*.{js,jsx,ts,tsx,svelte}',
+ './node_modules/flowbite-svelte/**/*.{html,js,svelte,ts}'
+ ],
+ important: true,
+ daisyui: {
+ themes: [
+ {
+ coollabs: {
+ 'base-100': '#323232',
+ 'base-200': '#242424',
+ 'base-300': '#181818',
+ primary: '#6B16ED',
+ 'primary-content': '#fff',
+ secondary: '#343232',
+ accent: '#343232',
+ neutral: '#272626',
+ info: '#0284c7',
+ success: '#16A34A',
+ warning: '#FFFF00',
+ error: '#DC2626',
+ '--rounded-btn': '0.3rem',
+ '--btn-text-case': 'normal'
+ }
+ }
+ ]
+ },
theme: {
+ extend: {
+ keyframes: {
+ wiggle: {
+ '0%, 100%': { transform: 'rotate(-3deg)' },
+ '50%': { transform: 'rotate(3deg)' }
+ }
+ },
+ animation: {
+ wiggle: 'wiggle 0.5s ease-in-out infinite'
+ },
+ fontFamily: {
+ sans: ['Poppins', ...defaultTheme.fontFamily.sans]
+ },
+ colors: {
+ applications: '#16A34A',
+ databases: '#9333EA',
+ 'databases-100': '#9b46ea',
+ destinations: '#0284C7',
+ sources: '#EA580C',
+ services: '#DB2777',
+ settings: '#FEE440',
+ iam: '#C026D3',
+ coollabs: '#6B16ED',
+ 'coollabs-100': '#7317FF',
+ coolblack: '#141414',
+ 'coolgray-100': '#181818',
+ 'coolgray-200': '#202020',
+ 'coolgray-300': '#242424',
+ 'coolgray-400': '#282828',
+ 'coolgray-500': '#323232'
+ }
+ }
+ },
+ variants: {
+ scrollbar: ['dark'],
extend: {}
},
-
- plugins: []
+ darkMode: 'class',
+ plugins: [
+ require('tailwindcss-scrollbar'),
+ require('daisyui'),
+ require('@tailwindcss/typography')
+ ]
};
-
-module.exports = config;
diff --git a/apps/server/.env-template b/apps/server/.env-template
index a45f8578c4..d038e068ce 100644
--- a/apps/server/.env-template
+++ b/apps/server/.env-template
@@ -1,2 +1,4 @@
NODE_ENV="development"
-DATABASE_URL="file:../db/dev.db"
\ No newline at end of file
+
+COOLIFY_DATABASE_URL="file:../db/dev.db"
+COOLIFY_SECRET_KEY="32-character-long-secret-key"
\ No newline at end of file
diff --git a/apps/server/package.json b/apps/server/package.json
index 0621bd01b7..3ce4e8afa3 100644
--- a/apps/server/package.json
+++ b/apps/server/package.json
@@ -16,7 +16,6 @@
"db:migrate": "DATABASE_URL=file:../db/migration.db prisma migrate dev --skip-seed --name"
},
"dependencies": {
- "jsonwebtoken": "8.5.1",
"@fastify/autoload": "5.6.0",
"@fastify/cors": "8.2.0",
"@fastify/env": "4.1.0",
@@ -27,18 +26,31 @@
"@trpc/client": "10.1.0",
"@trpc/server": "10.1.0",
"abort-controller": "3.0.0",
+ "bcryptjs": "2.4.3",
+ "cuid": "2.1.8",
+ "dayjs": "1.11.6",
+ "dotenv": "^16.0.3",
+ "execa": "6.1.0",
"fastify": "4.10.2",
"fastify-plugin": "4.4.0",
+ "got": "^12.5.3",
+ "is-port-reachable": "4.0.0",
+ "jsonwebtoken": "8.5.1",
"node-fetch": "3.3.0",
"prisma": "4.6.1",
+ "shell-quote": "^1.7.4",
+ "ssh-config": "4.1.6",
"superjson": "1.11.0",
"tslib": "2.4.1",
+ "unique-names-generator": "4.7.1",
"ws": "8.11.0",
"zod": "3.19.1"
},
"devDependencies": {
+ "@types/jsonwebtoken": "^8.5.9",
"@types/node": "18.11.9",
"@types/node-fetch": "2.6.2",
+ "@types/shell-quote": "^1.7.1",
"@types/ws": "8.5.3",
"npm-run-all": "4.1.5",
"rimraf": "3.0.2",
diff --git a/apps/server/prisma/migrations/20220131142425_init/migration.sql b/apps/server/prisma/migrations/20220131142425_init/migration.sql
new file mode 100644
index 0000000000..6607a48b5a
--- /dev/null
+++ b/apps/server/prisma/migrations/20220131142425_init/migration.sql
@@ -0,0 +1,443 @@
+-- CreateTable
+CREATE TABLE "Setting" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "fqdn" TEXT,
+ "isRegistrationEnabled" BOOLEAN NOT NULL DEFAULT false,
+ "proxyPassword" TEXT NOT NULL,
+ "proxyUser" TEXT NOT NULL,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL
+);
+
+-- CreateTable
+CREATE TABLE "User" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "email" TEXT NOT NULL,
+ "type" TEXT NOT NULL,
+ "password" TEXT,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL
+);
+
+-- CreateTable
+CREATE TABLE "Permission" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "userId" TEXT NOT NULL,
+ "teamId" TEXT NOT NULL,
+ "permission" TEXT NOT NULL,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "Permission_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User" ("id") ON DELETE RESTRICT ON UPDATE CASCADE,
+ CONSTRAINT "Permission_teamId_fkey" FOREIGN KEY ("teamId") REFERENCES "Team" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+
+-- CreateTable
+CREATE TABLE "Team" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "name" TEXT,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ "databaseId" TEXT,
+ "serviceId" TEXT,
+ FOREIGN KEY ("databaseId") REFERENCES "Database" ("id") ON DELETE SET NULL ON UPDATE CASCADE,
+ FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE SET NULL ON UPDATE CASCADE
+);
+
+-- CreateTable
+CREATE TABLE "TeamInvitation" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "uid" TEXT NOT NULL,
+ "email" TEXT NOT NULL,
+ "teamId" TEXT NOT NULL,
+ "teamName" TEXT NOT NULL,
+ "permission" TEXT NOT NULL,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
+);
+
+-- CreateTable
+CREATE TABLE "Application" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "name" TEXT NOT NULL,
+ "fqdn" TEXT,
+ "repository" TEXT,
+ "configHash" TEXT,
+ "branch" TEXT,
+ "buildPack" TEXT,
+ "projectId" INTEGER,
+ "port" INTEGER,
+ "installCommand" TEXT,
+ "buildCommand" TEXT,
+ "startCommand" TEXT,
+ "baseDirectory" TEXT,
+ "publishDirectory" TEXT,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ "destinationDockerId" TEXT,
+ "gitSourceId" TEXT,
+ CONSTRAINT "Application_destinationDockerId_fkey" FOREIGN KEY ("destinationDockerId") REFERENCES "DestinationDocker" ("id") ON DELETE SET NULL ON UPDATE CASCADE,
+ CONSTRAINT "Application_gitSourceId_fkey" FOREIGN KEY ("gitSourceId") REFERENCES "GitSource" ("id") ON DELETE SET NULL ON UPDATE CASCADE
+);
+
+-- CreateTable
+CREATE TABLE "ApplicationSettings" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "applicationId" TEXT NOT NULL,
+ "debug" BOOLEAN NOT NULL DEFAULT false,
+ "previews" BOOLEAN NOT NULL DEFAULT false,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "ApplicationSettings_applicationId_fkey" FOREIGN KEY ("applicationId") REFERENCES "Application" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+
+-- CreateTable
+CREATE TABLE "Secret" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "name" TEXT NOT NULL,
+ "value" TEXT NOT NULL,
+ "isBuildSecret" BOOLEAN NOT NULL DEFAULT false,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ "applicationId" TEXT NOT NULL,
+ CONSTRAINT "Secret_applicationId_fkey" FOREIGN KEY ("applicationId") REFERENCES "Application" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+
+-- CreateTable
+CREATE TABLE "BuildLog" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "applicationId" TEXT,
+ "buildId" TEXT NOT NULL,
+ "line" TEXT NOT NULL,
+ "time" INTEGER NOT NULL
+);
+
+-- CreateTable
+CREATE TABLE "Build" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "type" TEXT NOT NULL,
+ "applicationId" TEXT,
+ "destinationDockerId" TEXT,
+ "gitSourceId" TEXT,
+ "githubAppId" TEXT,
+ "gitlabAppId" TEXT,
+ "commit" TEXT,
+ "status" TEXT DEFAULT 'queued',
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL
+);
+
+-- CreateTable
+CREATE TABLE "DestinationDocker" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "network" TEXT NOT NULL,
+ "name" TEXT NOT NULL,
+ "engine" TEXT NOT NULL,
+ "remoteEngine" BOOLEAN NOT NULL DEFAULT false,
+ "isCoolifyProxyUsed" BOOLEAN DEFAULT false,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL
+);
+
+-- CreateTable
+CREATE TABLE "GitSource" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "name" TEXT NOT NULL,
+ "type" TEXT,
+ "apiUrl" TEXT,
+ "htmlUrl" TEXT,
+ "organization" TEXT,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ "githubAppId" TEXT,
+ "gitlabAppId" TEXT,
+ CONSTRAINT "GitSource_githubAppId_fkey" FOREIGN KEY ("githubAppId") REFERENCES "GithubApp" ("id") ON DELETE SET NULL ON UPDATE CASCADE,
+ CONSTRAINT "GitSource_gitlabAppId_fkey" FOREIGN KEY ("gitlabAppId") REFERENCES "GitlabApp" ("id") ON DELETE SET NULL ON UPDATE CASCADE
+);
+
+-- CreateTable
+CREATE TABLE "GithubApp" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "name" TEXT,
+ "appId" INTEGER,
+ "installationId" INTEGER,
+ "clientId" TEXT,
+ "clientSecret" TEXT,
+ "webhookSecret" TEXT,
+ "privateKey" TEXT,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL
+);
+
+-- CreateTable
+CREATE TABLE "GitlabApp" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "oauthId" INTEGER NOT NULL,
+ "groupName" TEXT,
+ "deployKeyId" INTEGER,
+ "privateSshKey" TEXT,
+ "publicSshKey" TEXT,
+ "webhookToken" TEXT,
+ "appId" TEXT,
+ "appSecret" TEXT,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL
+);
+
+-- CreateTable
+CREATE TABLE "Database" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "name" TEXT NOT NULL,
+ "publicPort" INTEGER,
+ "defaultDatabase" TEXT,
+ "type" TEXT,
+ "version" TEXT,
+ "dbUser" TEXT,
+ "dbUserPassword" TEXT,
+ "rootUser" TEXT,
+ "rootUserPassword" TEXT,
+ "destinationDockerId" TEXT,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "Database_destinationDockerId_fkey" FOREIGN KEY ("destinationDockerId") REFERENCES "DestinationDocker" ("id") ON DELETE SET NULL ON UPDATE CASCADE
+);
+
+-- CreateTable
+CREATE TABLE "DatabaseSettings" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "databaseId" TEXT NOT NULL,
+ "isPublic" BOOLEAN NOT NULL DEFAULT false,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "DatabaseSettings_databaseId_fkey" FOREIGN KEY ("databaseId") REFERENCES "Database" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+
+-- CreateTable
+CREATE TABLE "Service" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "name" TEXT NOT NULL,
+ "fqdn" TEXT,
+ "type" TEXT,
+ "version" TEXT,
+ "destinationDockerId" TEXT,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "Service_destinationDockerId_fkey" FOREIGN KEY ("destinationDockerId") REFERENCES "DestinationDocker" ("id") ON DELETE SET NULL ON UPDATE CASCADE
+);
+
+-- CreateTable
+CREATE TABLE "PlausibleAnalytics" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "email" TEXT,
+ "username" TEXT,
+ "password" TEXT NOT NULL,
+ "postgresqlUser" TEXT NOT NULL,
+ "postgresqlPassword" TEXT NOT NULL,
+ "postgresqlDatabase" TEXT NOT NULL,
+ "postgresqlPublicPort" INTEGER,
+ "secretKeyBase" TEXT,
+ "serviceId" TEXT NOT NULL,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "PlausibleAnalytics_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+
+-- CreateTable
+CREATE TABLE "Minio" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "rootUser" TEXT NOT NULL,
+ "rootUserPassword" TEXT NOT NULL,
+ "publicPort" INTEGER,
+ "serviceId" TEXT NOT NULL,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "Minio_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+
+-- CreateTable
+CREATE TABLE "Vscodeserver" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "password" TEXT NOT NULL,
+ "serviceId" TEXT NOT NULL,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "Vscodeserver_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+
+-- CreateTable
+CREATE TABLE "Wordpress" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "extraConfig" TEXT,
+ "tablePrefix" TEXT,
+ "mysqlUser" TEXT NOT NULL,
+ "mysqlPassword" TEXT NOT NULL,
+ "mysqlRootUser" TEXT NOT NULL,
+ "mysqlRootUserPassword" TEXT NOT NULL,
+ "mysqlDatabase" TEXT,
+ "mysqlPublicPort" INTEGER,
+ "serviceId" TEXT NOT NULL,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "Wordpress_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+
+-- CreateTable
+CREATE TABLE "_TeamToUser" (
+ "A" TEXT NOT NULL,
+ "B" TEXT NOT NULL,
+ FOREIGN KEY ("A") REFERENCES "Team" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
+ FOREIGN KEY ("B") REFERENCES "User" ("id") ON DELETE CASCADE ON UPDATE CASCADE
+);
+
+-- CreateTable
+CREATE TABLE "_ApplicationToTeam" (
+ "A" TEXT NOT NULL,
+ "B" TEXT NOT NULL,
+ FOREIGN KEY ("A") REFERENCES "Application" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
+ FOREIGN KEY ("B") REFERENCES "Team" ("id") ON DELETE CASCADE ON UPDATE CASCADE
+);
+
+-- CreateTable
+CREATE TABLE "_GitSourceToTeam" (
+ "A" TEXT NOT NULL,
+ "B" TEXT NOT NULL,
+ FOREIGN KEY ("A") REFERENCES "GitSource" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
+ FOREIGN KEY ("B") REFERENCES "Team" ("id") ON DELETE CASCADE ON UPDATE CASCADE
+);
+
+-- CreateTable
+CREATE TABLE "_GithubAppToTeam" (
+ "A" TEXT NOT NULL,
+ "B" TEXT NOT NULL,
+ FOREIGN KEY ("A") REFERENCES "GithubApp" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
+ FOREIGN KEY ("B") REFERENCES "Team" ("id") ON DELETE CASCADE ON UPDATE CASCADE
+);
+
+-- CreateTable
+CREATE TABLE "_GitlabAppToTeam" (
+ "A" TEXT NOT NULL,
+ "B" TEXT NOT NULL,
+ FOREIGN KEY ("A") REFERENCES "GitlabApp" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
+ FOREIGN KEY ("B") REFERENCES "Team" ("id") ON DELETE CASCADE ON UPDATE CASCADE
+);
+
+-- CreateTable
+CREATE TABLE "_DestinationDockerToTeam" (
+ "A" TEXT NOT NULL,
+ "B" TEXT NOT NULL,
+ FOREIGN KEY ("A") REFERENCES "DestinationDocker" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
+ FOREIGN KEY ("B") REFERENCES "Team" ("id") ON DELETE CASCADE ON UPDATE CASCADE
+);
+
+-- CreateTable
+CREATE TABLE "_DatabaseToTeam" (
+ "A" TEXT NOT NULL,
+ "B" TEXT NOT NULL,
+ FOREIGN KEY ("A") REFERENCES "Database" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
+ FOREIGN KEY ("B") REFERENCES "Team" ("id") ON DELETE CASCADE ON UPDATE CASCADE
+);
+
+-- CreateTable
+CREATE TABLE "_ServiceToTeam" (
+ "A" TEXT NOT NULL,
+ "B" TEXT NOT NULL,
+ FOREIGN KEY ("A") REFERENCES "Service" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
+ FOREIGN KEY ("B") REFERENCES "Team" ("id") ON DELETE CASCADE ON UPDATE CASCADE
+);
+
+-- CreateIndex
+CREATE UNIQUE INDEX "Setting_fqdn_key" ON "Setting"("fqdn");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "User_id_key" ON "User"("id");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "User_email_key" ON "User"("email");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "Application_fqdn_key" ON "Application"("fqdn");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "ApplicationSettings_applicationId_key" ON "ApplicationSettings"("applicationId");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "Secret_name_key" ON "Secret"("name");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "DestinationDocker_network_key" ON "DestinationDocker"("network");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "GitSource_githubAppId_key" ON "GitSource"("githubAppId");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "GitSource_gitlabAppId_key" ON "GitSource"("gitlabAppId");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "GithubApp_name_key" ON "GithubApp"("name");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "GitlabApp_oauthId_key" ON "GitlabApp"("oauthId");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "GitlabApp_groupName_key" ON "GitlabApp"("groupName");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "DatabaseSettings_databaseId_key" ON "DatabaseSettings"("databaseId");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "PlausibleAnalytics_serviceId_key" ON "PlausibleAnalytics"("serviceId");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "Minio_serviceId_key" ON "Minio"("serviceId");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "Vscodeserver_serviceId_key" ON "Vscodeserver"("serviceId");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "Wordpress_serviceId_key" ON "Wordpress"("serviceId");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "_TeamToUser_AB_unique" ON "_TeamToUser"("A", "B");
+
+-- CreateIndex
+CREATE INDEX "_TeamToUser_B_index" ON "_TeamToUser"("B");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "_ApplicationToTeam_AB_unique" ON "_ApplicationToTeam"("A", "B");
+
+-- CreateIndex
+CREATE INDEX "_ApplicationToTeam_B_index" ON "_ApplicationToTeam"("B");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "_GitSourceToTeam_AB_unique" ON "_GitSourceToTeam"("A", "B");
+
+-- CreateIndex
+CREATE INDEX "_GitSourceToTeam_B_index" ON "_GitSourceToTeam"("B");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "_GithubAppToTeam_AB_unique" ON "_GithubAppToTeam"("A", "B");
+
+-- CreateIndex
+CREATE INDEX "_GithubAppToTeam_B_index" ON "_GithubAppToTeam"("B");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "_GitlabAppToTeam_AB_unique" ON "_GitlabAppToTeam"("A", "B");
+
+-- CreateIndex
+CREATE INDEX "_GitlabAppToTeam_B_index" ON "_GitlabAppToTeam"("B");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "_DestinationDockerToTeam_AB_unique" ON "_DestinationDockerToTeam"("A", "B");
+
+-- CreateIndex
+CREATE INDEX "_DestinationDockerToTeam_B_index" ON "_DestinationDockerToTeam"("B");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "_DatabaseToTeam_AB_unique" ON "_DatabaseToTeam"("A", "B");
+
+-- CreateIndex
+CREATE INDEX "_DatabaseToTeam_B_index" ON "_DatabaseToTeam"("B");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "_ServiceToTeam_AB_unique" ON "_ServiceToTeam"("A", "B");
+
+-- CreateIndex
+CREATE INDEX "_ServiceToTeam_B_index" ON "_ServiceToTeam"("B");
diff --git a/apps/server/prisma/migrations/20220210104005_redis_aol/migration.sql b/apps/server/prisma/migrations/20220210104005_redis_aol/migration.sql
new file mode 100644
index 0000000000..8a7e41098f
--- /dev/null
+++ b/apps/server/prisma/migrations/20220210104005_redis_aol/migration.sql
@@ -0,0 +1,28 @@
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_Team" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "name" TEXT,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ "databaseId" TEXT,
+ "serviceId" TEXT
+);
+INSERT INTO "new_Team" ("createdAt", "databaseId", "id", "name", "serviceId", "updatedAt") SELECT "createdAt", "databaseId", "id", "name", "serviceId", "updatedAt" FROM "Team";
+DROP TABLE "Team";
+ALTER TABLE "new_Team" RENAME TO "Team";
+CREATE TABLE "new_DatabaseSettings" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "databaseId" TEXT NOT NULL,
+ "isPublic" BOOLEAN NOT NULL DEFAULT false,
+ "appendOnly" BOOLEAN NOT NULL DEFAULT true,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "DatabaseSettings_databaseId_fkey" FOREIGN KEY ("databaseId") REFERENCES "Database" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+INSERT INTO "new_DatabaseSettings" ("createdAt", "databaseId", "id", "isPublic", "updatedAt") SELECT "createdAt", "databaseId", "id", "isPublic", "updatedAt" FROM "DatabaseSettings";
+DROP TABLE "DatabaseSettings";
+ALTER TABLE "new_DatabaseSettings" RENAME TO "DatabaseSettings";
+CREATE UNIQUE INDEX "DatabaseSettings_databaseId_key" ON "DatabaseSettings"("databaseId");
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20220212142309_unique_secret_by_application/migration.sql b/apps/server/prisma/migrations/20220212142309_unique_secret_by_application/migration.sql
new file mode 100644
index 0000000000..da4aa8e7cc
--- /dev/null
+++ b/apps/server/prisma/migrations/20220212142309_unique_secret_by_application/migration.sql
@@ -0,0 +1,11 @@
+/*
+ Warnings:
+
+ - A unique constraint covering the columns `[name,applicationId]` on the table `Secret` will be added. If there are existing duplicate values, this will fail.
+
+*/
+-- DropIndex
+DROP INDEX "Secret_name_key";
+
+-- CreateIndex
+CREATE UNIQUE INDEX "Secret_name_applicationId_key" ON "Secret"("name", "applicationId");
diff --git a/apps/server/prisma/migrations/20220217211304_dualcerts/migration.sql b/apps/server/prisma/migrations/20220217211304_dualcerts/migration.sql
new file mode 100644
index 0000000000..a6ea0a57df
--- /dev/null
+++ b/apps/server/prisma/migrations/20220217211304_dualcerts/migration.sql
@@ -0,0 +1,47 @@
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_Setting" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "fqdn" TEXT,
+ "isRegistrationEnabled" BOOLEAN NOT NULL DEFAULT false,
+ "dualCerts" BOOLEAN NOT NULL DEFAULT false,
+ "proxyPassword" TEXT NOT NULL,
+ "proxyUser" TEXT NOT NULL,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL
+);
+INSERT INTO "new_Setting" ("createdAt", "fqdn", "id", "isRegistrationEnabled", "proxyPassword", "proxyUser", "updatedAt") SELECT "createdAt", "fqdn", "id", "isRegistrationEnabled", "proxyPassword", "proxyUser", "updatedAt" FROM "Setting";
+DROP TABLE "Setting";
+ALTER TABLE "new_Setting" RENAME TO "Setting";
+CREATE UNIQUE INDEX "Setting_fqdn_key" ON "Setting"("fqdn");
+CREATE TABLE "new_ApplicationSettings" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "applicationId" TEXT NOT NULL,
+ "dualCerts" BOOLEAN NOT NULL DEFAULT false,
+ "debug" BOOLEAN NOT NULL DEFAULT false,
+ "previews" BOOLEAN NOT NULL DEFAULT false,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "ApplicationSettings_applicationId_fkey" FOREIGN KEY ("applicationId") REFERENCES "Application" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+INSERT INTO "new_ApplicationSettings" ("applicationId", "createdAt", "debug", "id", "previews", "updatedAt") SELECT "applicationId", "createdAt", "debug", "id", "previews", "updatedAt" FROM "ApplicationSettings";
+DROP TABLE "ApplicationSettings";
+ALTER TABLE "new_ApplicationSettings" RENAME TO "ApplicationSettings";
+CREATE UNIQUE INDEX "ApplicationSettings_applicationId_key" ON "ApplicationSettings"("applicationId");
+CREATE TABLE "new_Service" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "name" TEXT NOT NULL,
+ "fqdn" TEXT,
+ "dualCerts" BOOLEAN NOT NULL DEFAULT false,
+ "type" TEXT,
+ "version" TEXT,
+ "destinationDockerId" TEXT,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "Service_destinationDockerId_fkey" FOREIGN KEY ("destinationDockerId") REFERENCES "DestinationDocker" ("id") ON DELETE SET NULL ON UPDATE CASCADE
+);
+INSERT INTO "new_Service" ("createdAt", "destinationDockerId", "fqdn", "id", "name", "type", "updatedAt", "version") SELECT "createdAt", "destinationDockerId", "fqdn", "id", "name", "type", "updatedAt", "version" FROM "Service";
+DROP TABLE "Service";
+ALTER TABLE "new_Service" RENAME TO "Service";
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20220219231255_prmr_secrets/migration.sql b/apps/server/prisma/migrations/20220219231255_prmr_secrets/migration.sql
new file mode 100644
index 0000000000..728fcae36f
--- /dev/null
+++ b/apps/server/prisma/migrations/20220219231255_prmr_secrets/migration.sql
@@ -0,0 +1,19 @@
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_Secret" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "name" TEXT NOT NULL,
+ "value" TEXT NOT NULL,
+ "isPRMRSecret" BOOLEAN NOT NULL DEFAULT false,
+ "isBuildSecret" BOOLEAN NOT NULL DEFAULT false,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ "applicationId" TEXT NOT NULL,
+ CONSTRAINT "Secret_applicationId_fkey" FOREIGN KEY ("applicationId") REFERENCES "Application" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+INSERT INTO "new_Secret" ("applicationId", "createdAt", "id", "isBuildSecret", "name", "updatedAt", "value") SELECT "applicationId", "createdAt", "id", "isBuildSecret", "name", "updatedAt", "value" FROM "Secret";
+DROP TABLE "Secret";
+ALTER TABLE "new_Secret" RENAME TO "Secret";
+CREATE UNIQUE INDEX "Secret_name_applicationId_isPRMRSecret_key" ON "Secret"("name", "applicationId", "isPRMRSecret");
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20220220141136_public_portrange/migration.sql b/apps/server/prisma/migrations/20220220141136_public_portrange/migration.sql
new file mode 100644
index 0000000000..6423e97611
--- /dev/null
+++ b/apps/server/prisma/migrations/20220220141136_public_portrange/migration.sql
@@ -0,0 +1,20 @@
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_Setting" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "fqdn" TEXT,
+ "isRegistrationEnabled" BOOLEAN NOT NULL DEFAULT false,
+ "dualCerts" BOOLEAN NOT NULL DEFAULT false,
+ "minPort" INTEGER NOT NULL DEFAULT 9000,
+ "maxPort" INTEGER NOT NULL DEFAULT 9100,
+ "proxyPassword" TEXT NOT NULL,
+ "proxyUser" TEXT NOT NULL,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL
+);
+INSERT INTO "new_Setting" ("createdAt", "dualCerts", "fqdn", "id", "isRegistrationEnabled", "proxyPassword", "proxyUser", "updatedAt") SELECT "createdAt", "dualCerts", "fqdn", "id", "isRegistrationEnabled", "proxyPassword", "proxyUser", "updatedAt" FROM "Setting";
+DROP TABLE "Setting";
+ALTER TABLE "new_Setting" RENAME TO "Setting";
+CREATE UNIQUE INDEX "Setting_fqdn_key" ON "Setting"("fqdn");
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20220301101928_proxyhash/migration.sql b/apps/server/prisma/migrations/20220301101928_proxyhash/migration.sql
new file mode 100644
index 0000000000..87845b38b8
--- /dev/null
+++ b/apps/server/prisma/migrations/20220301101928_proxyhash/migration.sql
@@ -0,0 +1,2 @@
+-- AlterTable
+ALTER TABLE "Setting" ADD COLUMN "proxyHash" TEXT;
diff --git a/apps/server/prisma/migrations/20220304141408_service_secrets/migration.sql b/apps/server/prisma/migrations/20220304141408_service_secrets/migration.sql
new file mode 100644
index 0000000000..baa0c3f546
--- /dev/null
+++ b/apps/server/prisma/migrations/20220304141408_service_secrets/migration.sql
@@ -0,0 +1,13 @@
+-- CreateTable
+CREATE TABLE "ServiceSecret" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "name" TEXT NOT NULL,
+ "value" TEXT NOT NULL,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ "serviceId" TEXT NOT NULL,
+ CONSTRAINT "ServiceSecret_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+
+-- CreateIndex
+CREATE UNIQUE INDEX "ServiceSecret_name_serviceId_key" ON "ServiceSecret"("name", "serviceId");
diff --git a/apps/server/prisma/migrations/20220311213422_autodeploy/migration.sql b/apps/server/prisma/migrations/20220311213422_autodeploy/migration.sql
new file mode 100644
index 0000000000..d534d93726
--- /dev/null
+++ b/apps/server/prisma/migrations/20220311213422_autodeploy/migration.sql
@@ -0,0 +1,19 @@
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_ApplicationSettings" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "applicationId" TEXT NOT NULL,
+ "dualCerts" BOOLEAN NOT NULL DEFAULT false,
+ "debug" BOOLEAN NOT NULL DEFAULT false,
+ "previews" BOOLEAN NOT NULL DEFAULT false,
+ "autodeploy" BOOLEAN NOT NULL DEFAULT true,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "ApplicationSettings_applicationId_fkey" FOREIGN KEY ("applicationId") REFERENCES "Application" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+INSERT INTO "new_ApplicationSettings" ("applicationId", "createdAt", "debug", "dualCerts", "id", "previews", "updatedAt") SELECT "applicationId", "createdAt", "debug", "dualCerts", "id", "previews", "updatedAt" FROM "ApplicationSettings";
+DROP TABLE "ApplicationSettings";
+ALTER TABLE "new_ApplicationSettings" RENAME TO "ApplicationSettings";
+CREATE UNIQUE INDEX "ApplicationSettings_applicationId_key" ON "ApplicationSettings"("applicationId");
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20220320141424_phpmodules/migration.sql b/apps/server/prisma/migrations/20220320141424_phpmodules/migration.sql
new file mode 100644
index 0000000000..6a17ff8a34
--- /dev/null
+++ b/apps/server/prisma/migrations/20220320141424_phpmodules/migration.sql
@@ -0,0 +1,2 @@
+-- AlterTable
+ALTER TABLE "Application" ADD COLUMN "phpModules" TEXT;
diff --git a/apps/server/prisma/migrations/20220322135800_persistent_storage/migration.sql b/apps/server/prisma/migrations/20220322135800_persistent_storage/migration.sql
new file mode 100644
index 0000000000..d26ae3f8be
--- /dev/null
+++ b/apps/server/prisma/migrations/20220322135800_persistent_storage/migration.sql
@@ -0,0 +1,18 @@
+-- CreateTable
+CREATE TABLE "ApplicationPersistentStorage" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "applicationId" TEXT NOT NULL,
+ "path" TEXT NOT NULL,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "ApplicationPersistentStorage_applicationId_fkey" FOREIGN KEY ("applicationId") REFERENCES "Application" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+
+-- CreateIndex
+CREATE UNIQUE INDEX "ApplicationPersistentStorage_applicationId_key" ON "ApplicationPersistentStorage"("applicationId");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "ApplicationPersistentStorage_path_key" ON "ApplicationPersistentStorage"("path");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "ApplicationPersistentStorage_applicationId_path_key" ON "ApplicationPersistentStorage"("applicationId", "path");
diff --git a/apps/server/prisma/migrations/20220327180323_ghost/migration.sql b/apps/server/prisma/migrations/20220327180323_ghost/migration.sql
new file mode 100644
index 0000000000..3c1cec36f5
--- /dev/null
+++ b/apps/server/prisma/migrations/20220327180323_ghost/migration.sql
@@ -0,0 +1,19 @@
+-- CreateTable
+CREATE TABLE "Ghost" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "defaultEmail" TEXT NOT NULL,
+ "defaultPassword" TEXT NOT NULL,
+ "mariadbUser" TEXT NOT NULL,
+ "mariadbPassword" TEXT NOT NULL,
+ "mariadbRootUser" TEXT NOT NULL,
+ "mariadbRootUserPassword" TEXT NOT NULL,
+ "mariadbDatabase" TEXT,
+ "mariadbPublicPort" INTEGER,
+ "serviceId" TEXT NOT NULL,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "Ghost_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+
+-- CreateIndex
+CREATE UNIQUE INDEX "Ghost_serviceId_key" ON "Ghost"("serviceId");
diff --git a/apps/server/prisma/migrations/20220402135305_python/migration.sql b/apps/server/prisma/migrations/20220402135305_python/migration.sql
new file mode 100644
index 0000000000..0c253d539e
--- /dev/null
+++ b/apps/server/prisma/migrations/20220402135305_python/migration.sql
@@ -0,0 +1,4 @@
+-- AlterTable
+ALTER TABLE "Application" ADD COLUMN "pythonModule" TEXT;
+ALTER TABLE "Application" ADD COLUMN "pythonVariable" TEXT;
+ALTER TABLE "Application" ADD COLUMN "pythonWSGI" TEXT;
diff --git a/apps/server/prisma/migrations/20220402210645_meilisearch/migration.sql b/apps/server/prisma/migrations/20220402210645_meilisearch/migration.sql
new file mode 100644
index 0000000000..9e832b1074
--- /dev/null
+++ b/apps/server/prisma/migrations/20220402210645_meilisearch/migration.sql
@@ -0,0 +1,12 @@
+-- CreateTable
+CREATE TABLE "MeiliSearch" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "masterKey" TEXT NOT NULL,
+ "serviceId" TEXT NOT NULL,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "MeiliSearch_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+
+-- CreateIndex
+CREATE UNIQUE INDEX "MeiliSearch_serviceId_key" ON "MeiliSearch"("serviceId");
diff --git a/apps/server/prisma/migrations/20220405151428_wordpress_sftp/migration.sql b/apps/server/prisma/migrations/20220405151428_wordpress_sftp/migration.sql
new file mode 100644
index 0000000000..6c3c4b907a
--- /dev/null
+++ b/apps/server/prisma/migrations/20220405151428_wordpress_sftp/migration.sql
@@ -0,0 +1,29 @@
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_Wordpress" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "extraConfig" TEXT,
+ "tablePrefix" TEXT,
+ "mysqlUser" TEXT NOT NULL,
+ "mysqlPassword" TEXT NOT NULL,
+ "mysqlRootUser" TEXT NOT NULL,
+ "mysqlRootUserPassword" TEXT NOT NULL,
+ "mysqlDatabase" TEXT,
+ "mysqlPublicPort" INTEGER,
+ "ftpEnabled" BOOLEAN NOT NULL DEFAULT false,
+ "ftpUser" TEXT,
+ "ftpPassword" TEXT,
+ "ftpPublicPort" INTEGER,
+ "ftpHostKey" TEXT,
+ "ftpHostKeyPrivate" TEXT,
+ "serviceId" TEXT NOT NULL,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "Wordpress_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+INSERT INTO "new_Wordpress" ("createdAt", "extraConfig", "id", "mysqlDatabase", "mysqlPassword", "mysqlPublicPort", "mysqlRootUser", "mysqlRootUserPassword", "mysqlUser", "serviceId", "tablePrefix", "updatedAt") SELECT "createdAt", "extraConfig", "id", "mysqlDatabase", "mysqlPassword", "mysqlPublicPort", "mysqlRootUser", "mysqlRootUserPassword", "mysqlUser", "serviceId", "tablePrefix", "updatedAt" FROM "Wordpress";
+DROP TABLE "Wordpress";
+ALTER TABLE "new_Wordpress" RENAME TO "Wordpress";
+CREATE UNIQUE INDEX "Wordpress_serviceId_key" ON "Wordpress"("serviceId");
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20220407220809_unique_storage_fix/migration.sql b/apps/server/prisma/migrations/20220407220809_unique_storage_fix/migration.sql
new file mode 100644
index 0000000000..9b645cc3b9
--- /dev/null
+++ b/apps/server/prisma/migrations/20220407220809_unique_storage_fix/migration.sql
@@ -0,0 +1,5 @@
+-- DropIndex
+DROP INDEX "ApplicationPersistentStorage_path_key";
+
+-- DropIndex
+DROP INDEX "ApplicationPersistentStorage_applicationId_key";
diff --git a/apps/server/prisma/migrations/20220408070805_added_expose_port/migration.sql b/apps/server/prisma/migrations/20220408070805_added_expose_port/migration.sql
new file mode 100644
index 0000000000..a23afd64ac
--- /dev/null
+++ b/apps/server/prisma/migrations/20220408070805_added_expose_port/migration.sql
@@ -0,0 +1,2 @@
+-- AlterTable
+ALTER TABLE "Application" ADD COLUMN "exposePort" INTEGER;
diff --git a/apps/server/prisma/migrations/20220418214843_persistent_storage_services/migration.sql b/apps/server/prisma/migrations/20220418214843_persistent_storage_services/migration.sql
new file mode 100644
index 0000000000..f85fd31df6
--- /dev/null
+++ b/apps/server/prisma/migrations/20220418214843_persistent_storage_services/migration.sql
@@ -0,0 +1,12 @@
+-- CreateTable
+CREATE TABLE "ServicePersistentStorage" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "serviceId" TEXT NOT NULL,
+ "path" TEXT NOT NULL,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "ServicePersistentStorage_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+
+-- CreateIndex
+CREATE UNIQUE INDEX "ServicePersistentStorage_serviceId_path_key" ON "ServicePersistentStorage"("serviceId", "path");
diff --git a/apps/server/prisma/migrations/20220419203408_multiply_dockerfile_locations/migration.sql b/apps/server/prisma/migrations/20220419203408_multiply_dockerfile_locations/migration.sql
new file mode 100644
index 0000000000..ce32f0844f
--- /dev/null
+++ b/apps/server/prisma/migrations/20220419203408_multiply_dockerfile_locations/migration.sql
@@ -0,0 +1,2 @@
+-- AlterTable
+ALTER TABLE "Application" ADD COLUMN "dockerFileLocation" TEXT;
diff --git a/apps/server/prisma/migrations/20220420202031_deno_configurations/migration.sql b/apps/server/prisma/migrations/20220420202031_deno_configurations/migration.sql
new file mode 100644
index 0000000000..9d0e832dc7
--- /dev/null
+++ b/apps/server/prisma/migrations/20220420202031_deno_configurations/migration.sql
@@ -0,0 +1,3 @@
+-- AlterTable
+ALTER TABLE "Application" ADD COLUMN "denoMainFile" TEXT;
+ALTER TABLE "Application" ADD COLUMN "denoOptions" TEXT;
diff --git a/apps/server/prisma/migrations/20220420210057_branch_for_builds/migration.sql b/apps/server/prisma/migrations/20220420210057_branch_for_builds/migration.sql
new file mode 100644
index 0000000000..8cd8e653dd
--- /dev/null
+++ b/apps/server/prisma/migrations/20220420210057_branch_for_builds/migration.sql
@@ -0,0 +1,2 @@
+-- AlterTable
+ALTER TABLE "Build" ADD COLUMN "branch" TEXT;
diff --git a/apps/server/prisma/migrations/20220425071132_umami/migration.sql b/apps/server/prisma/migrations/20220425071132_umami/migration.sql
new file mode 100644
index 0000000000..259fb76cd3
--- /dev/null
+++ b/apps/server/prisma/migrations/20220425071132_umami/migration.sql
@@ -0,0 +1,17 @@
+-- CreateTable
+CREATE TABLE "Umami" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "serviceId" TEXT NOT NULL,
+ "postgresqlUser" TEXT NOT NULL,
+ "postgresqlPassword" TEXT NOT NULL,
+ "postgresqlDatabase" TEXT NOT NULL,
+ "postgresqlPublicPort" INTEGER,
+ "umamiAdminPassword" TEXT NOT NULL,
+ "hashSalt" TEXT NOT NULL,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "Umami_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+
+-- CreateIndex
+CREATE UNIQUE INDEX "Umami_serviceId_key" ON "Umami"("serviceId");
diff --git a/apps/server/prisma/migrations/20220425075326_auto_update_coolify/migration.sql b/apps/server/prisma/migrations/20220425075326_auto_update_coolify/migration.sql
new file mode 100644
index 0000000000..a102973eef
--- /dev/null
+++ b/apps/server/prisma/migrations/20220425075326_auto_update_coolify/migration.sql
@@ -0,0 +1,22 @@
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_Setting" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "fqdn" TEXT,
+ "isRegistrationEnabled" BOOLEAN NOT NULL DEFAULT false,
+ "dualCerts" BOOLEAN NOT NULL DEFAULT false,
+ "minPort" INTEGER NOT NULL DEFAULT 9000,
+ "maxPort" INTEGER NOT NULL DEFAULT 9100,
+ "proxyPassword" TEXT NOT NULL,
+ "proxyUser" TEXT NOT NULL,
+ "proxyHash" TEXT,
+ "isAutoUpdateEnabled" BOOLEAN NOT NULL DEFAULT false,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL
+);
+INSERT INTO "new_Setting" ("createdAt", "dualCerts", "fqdn", "id", "isRegistrationEnabled", "maxPort", "minPort", "proxyHash", "proxyPassword", "proxyUser", "updatedAt") SELECT "createdAt", "dualCerts", "fqdn", "id", "isRegistrationEnabled", "maxPort", "minPort", "proxyHash", "proxyPassword", "proxyUser", "updatedAt" FROM "Setting";
+DROP TABLE "Setting";
+ALTER TABLE "new_Setting" RENAME TO "Setting";
+CREATE UNIQUE INDEX "Setting_fqdn_key" ON "Setting"("fqdn");
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20220426125053_select_base_image/migration.sql b/apps/server/prisma/migrations/20220426125053_select_base_image/migration.sql
new file mode 100644
index 0000000000..37209d82fc
--- /dev/null
+++ b/apps/server/prisma/migrations/20220426125053_select_base_image/migration.sql
@@ -0,0 +1,3 @@
+-- AlterTable
+ALTER TABLE "Application" ADD COLUMN "baseBuildImage" TEXT;
+ALTER TABLE "Application" ADD COLUMN "baseImage" TEXT;
diff --git a/apps/server/prisma/migrations/20220427133656_hasura/migration.sql b/apps/server/prisma/migrations/20220427133656_hasura/migration.sql
new file mode 100644
index 0000000000..c679ad0fb5
--- /dev/null
+++ b/apps/server/prisma/migrations/20220427133656_hasura/migration.sql
@@ -0,0 +1,16 @@
+-- CreateTable
+CREATE TABLE "Hasura" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "serviceId" TEXT NOT NULL,
+ "postgresqlUser" TEXT NOT NULL,
+ "postgresqlPassword" TEXT NOT NULL,
+ "postgresqlDatabase" TEXT NOT NULL,
+ "postgresqlPublicPort" INTEGER,
+ "graphQLAdminPassword" TEXT NOT NULL,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "Hasura_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+
+-- CreateIndex
+CREATE UNIQUE INDEX "Hasura_serviceId_key" ON "Hasura"("serviceId");
diff --git a/apps/server/prisma/migrations/20220429202516_fider/migration.sql b/apps/server/prisma/migrations/20220429202516_fider/migration.sql
new file mode 100644
index 0000000000..a6d31a24d3
--- /dev/null
+++ b/apps/server/prisma/migrations/20220429202516_fider/migration.sql
@@ -0,0 +1,25 @@
+-- CreateTable
+CREATE TABLE "Fider" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "serviceId" TEXT NOT NULL,
+ "postgresqlUser" TEXT NOT NULL,
+ "postgresqlPassword" TEXT NOT NULL,
+ "postgresqlDatabase" TEXT NOT NULL,
+ "postgresqlPublicPort" INTEGER,
+ "jwtSecret" TEXT NOT NULL,
+ "emailNoreply" TEXT,
+ "emailMailgunApiKey" TEXT,
+ "emailMailgunDomain" TEXT,
+ "emailMailgunRegion" TEXT,
+ "emailSmtpHost" TEXT,
+ "emailSmtpPort" INTEGER,
+ "emailSmtpUser" TEXT,
+ "emailSmtpPassword" TEXT,
+ "emailSmtpEnableStartTls" BOOLEAN NOT NULL DEFAULT false,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "Fider_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+
+-- CreateIndex
+CREATE UNIQUE INDEX "Fider_serviceId_key" ON "Fider"("serviceId");
diff --git a/apps/server/prisma/migrations/20220429214112_fider_correction/migration.sql b/apps/server/prisma/migrations/20220429214112_fider_correction/migration.sql
new file mode 100644
index 0000000000..429524f725
--- /dev/null
+++ b/apps/server/prisma/migrations/20220429214112_fider_correction/migration.sql
@@ -0,0 +1,29 @@
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_Fider" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "serviceId" TEXT NOT NULL,
+ "postgresqlUser" TEXT NOT NULL,
+ "postgresqlPassword" TEXT NOT NULL,
+ "postgresqlDatabase" TEXT NOT NULL,
+ "postgresqlPublicPort" INTEGER,
+ "jwtSecret" TEXT NOT NULL,
+ "emailNoreply" TEXT,
+ "emailMailgunApiKey" TEXT,
+ "emailMailgunDomain" TEXT,
+ "emailMailgunRegion" TEXT NOT NULL DEFAULT 'EU',
+ "emailSmtpHost" TEXT,
+ "emailSmtpPort" INTEGER,
+ "emailSmtpUser" TEXT,
+ "emailSmtpPassword" TEXT,
+ "emailSmtpEnableStartTls" BOOLEAN NOT NULL DEFAULT false,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "Fider_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+INSERT INTO "new_Fider" ("createdAt", "emailMailgunApiKey", "emailMailgunDomain", "emailMailgunRegion", "emailNoreply", "emailSmtpEnableStartTls", "emailSmtpHost", "emailSmtpPassword", "emailSmtpPort", "emailSmtpUser", "id", "jwtSecret", "postgresqlDatabase", "postgresqlPassword", "postgresqlPublicPort", "postgresqlUser", "serviceId", "updatedAt") SELECT "createdAt", "emailMailgunApiKey", "emailMailgunDomain", coalesce("emailMailgunRegion", 'EU') AS "emailMailgunRegion", "emailNoreply", "emailSmtpEnableStartTls", "emailSmtpHost", "emailSmtpPassword", "emailSmtpPort", "emailSmtpUser", "id", "jwtSecret", "postgresqlDatabase", "postgresqlPassword", "postgresqlPublicPort", "postgresqlUser", "serviceId", "updatedAt" FROM "Fider";
+DROP TABLE "Fider";
+ALTER TABLE "new_Fider" RENAME TO "Fider";
+CREATE UNIQUE INDEX "Fider_serviceId_key" ON "Fider"("serviceId");
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20220430111953_ssl_dns_check_settings/migration.sql b/apps/server/prisma/migrations/20220430111953_ssl_dns_check_settings/migration.sql
new file mode 100644
index 0000000000..cf57379cac
--- /dev/null
+++ b/apps/server/prisma/migrations/20220430111953_ssl_dns_check_settings/migration.sql
@@ -0,0 +1,23 @@
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_Setting" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "fqdn" TEXT,
+ "isRegistrationEnabled" BOOLEAN NOT NULL DEFAULT false,
+ "dualCerts" BOOLEAN NOT NULL DEFAULT false,
+ "minPort" INTEGER NOT NULL DEFAULT 9000,
+ "maxPort" INTEGER NOT NULL DEFAULT 9100,
+ "proxyPassword" TEXT NOT NULL,
+ "proxyUser" TEXT NOT NULL,
+ "proxyHash" TEXT,
+ "isAutoUpdateEnabled" BOOLEAN NOT NULL DEFAULT false,
+ "isDNSCheckEnabled" BOOLEAN NOT NULL DEFAULT true,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL
+);
+INSERT INTO "new_Setting" ("createdAt", "dualCerts", "fqdn", "id", "isAutoUpdateEnabled", "isRegistrationEnabled", "maxPort", "minPort", "proxyHash", "proxyPassword", "proxyUser", "updatedAt") SELECT "createdAt", "dualCerts", "fqdn", "id", "isAutoUpdateEnabled", "isRegistrationEnabled", "maxPort", "minPort", "proxyHash", "proxyPassword", "proxyUser", "updatedAt" FROM "Setting";
+DROP TABLE "Setting";
+ALTER TABLE "new_Setting" RENAME TO "Setting";
+CREATE UNIQUE INDEX "Setting_fqdn_key" ON "Setting"("fqdn");
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20220430124553_expose_port_for_services/migration.sql b/apps/server/prisma/migrations/20220430124553_expose_port_for_services/migration.sql
new file mode 100644
index 0000000000..fdbab57131
--- /dev/null
+++ b/apps/server/prisma/migrations/20220430124553_expose_port_for_services/migration.sql
@@ -0,0 +1,2 @@
+-- AlterTable
+ALTER TABLE "Service" ADD COLUMN "exposePort" INTEGER;
diff --git a/apps/server/prisma/migrations/20220509130501_custom_plausible_script/migration.sql b/apps/server/prisma/migrations/20220509130501_custom_plausible_script/migration.sql
new file mode 100644
index 0000000000..6c8c28ff4c
--- /dev/null
+++ b/apps/server/prisma/migrations/20220509130501_custom_plausible_script/migration.sql
@@ -0,0 +1,24 @@
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_PlausibleAnalytics" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "email" TEXT,
+ "username" TEXT,
+ "password" TEXT NOT NULL,
+ "postgresqlUser" TEXT NOT NULL,
+ "postgresqlPassword" TEXT NOT NULL,
+ "postgresqlDatabase" TEXT NOT NULL,
+ "postgresqlPublicPort" INTEGER,
+ "secretKeyBase" TEXT,
+ "scriptName" TEXT NOT NULL DEFAULT 'plausible.js',
+ "serviceId" TEXT NOT NULL,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "PlausibleAnalytics_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+INSERT INTO "new_PlausibleAnalytics" ("createdAt", "email", "id", "password", "postgresqlDatabase", "postgresqlPassword", "postgresqlPublicPort", "postgresqlUser", "secretKeyBase", "serviceId", "updatedAt", "username") SELECT "createdAt", "email", "id", "password", "postgresqlDatabase", "postgresqlPassword", "postgresqlPublicPort", "postgresqlUser", "secretKeyBase", "serviceId", "updatedAt", "username" FROM "PlausibleAnalytics";
+DROP TABLE "PlausibleAnalytics";
+ALTER TABLE "new_PlausibleAnalytics" RENAME TO "PlausibleAnalytics";
+CREATE UNIQUE INDEX "PlausibleAnalytics_serviceId_key" ON "PlausibleAnalytics"("serviceId");
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20220510081125_custom_wordpress_db/migration.sql b/apps/server/prisma/migrations/20220510081125_custom_wordpress_db/migration.sql
new file mode 100644
index 0000000000..5a1cd301cd
--- /dev/null
+++ b/apps/server/prisma/migrations/20220510081125_custom_wordpress_db/migration.sql
@@ -0,0 +1,32 @@
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_Wordpress" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "extraConfig" TEXT,
+ "tablePrefix" TEXT,
+ "ownMysql" BOOLEAN NOT NULL DEFAULT false,
+ "mysqlHost" TEXT,
+ "mysqlPort" INTEGER,
+ "mysqlUser" TEXT NOT NULL,
+ "mysqlPassword" TEXT NOT NULL,
+ "mysqlRootUser" TEXT NOT NULL,
+ "mysqlRootUserPassword" TEXT NOT NULL,
+ "mysqlDatabase" TEXT,
+ "mysqlPublicPort" INTEGER,
+ "ftpEnabled" BOOLEAN NOT NULL DEFAULT false,
+ "ftpUser" TEXT,
+ "ftpPassword" TEXT,
+ "ftpPublicPort" INTEGER,
+ "ftpHostKey" TEXT,
+ "ftpHostKeyPrivate" TEXT,
+ "serviceId" TEXT NOT NULL,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "Wordpress_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+INSERT INTO "new_Wordpress" ("createdAt", "extraConfig", "ftpEnabled", "ftpHostKey", "ftpHostKeyPrivate", "ftpPassword", "ftpPublicPort", "ftpUser", "id", "mysqlDatabase", "mysqlPassword", "mysqlPublicPort", "mysqlRootUser", "mysqlRootUserPassword", "mysqlUser", "serviceId", "tablePrefix", "updatedAt") SELECT "createdAt", "extraConfig", "ftpEnabled", "ftpHostKey", "ftpHostKeyPrivate", "ftpPassword", "ftpPublicPort", "ftpUser", "id", "mysqlDatabase", "mysqlPassword", "mysqlPublicPort", "mysqlRootUser", "mysqlRootUserPassword", "mysqlUser", "serviceId", "tablePrefix", "updatedAt" FROM "Wordpress";
+DROP TABLE "Wordpress";
+ALTER TABLE "new_Wordpress" RENAME TO "Wordpress";
+CREATE UNIQUE INDEX "Wordpress_serviceId_key" ON "Wordpress"("serviceId");
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20220517081328_traefik/migration.sql b/apps/server/prisma/migrations/20220517081328_traefik/migration.sql
new file mode 100644
index 0000000000..a83281fa46
--- /dev/null
+++ b/apps/server/prisma/migrations/20220517081328_traefik/migration.sql
@@ -0,0 +1,24 @@
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_Setting" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "fqdn" TEXT,
+ "isRegistrationEnabled" BOOLEAN NOT NULL DEFAULT false,
+ "dualCerts" BOOLEAN NOT NULL DEFAULT false,
+ "minPort" INTEGER NOT NULL DEFAULT 9000,
+ "maxPort" INTEGER NOT NULL DEFAULT 9100,
+ "proxyPassword" TEXT NOT NULL,
+ "proxyUser" TEXT NOT NULL,
+ "proxyHash" TEXT,
+ "isAutoUpdateEnabled" BOOLEAN NOT NULL DEFAULT false,
+ "isDNSCheckEnabled" BOOLEAN NOT NULL DEFAULT true,
+ "isTraefikUsed" BOOLEAN NOT NULL DEFAULT true,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL
+);
+INSERT INTO "new_Setting" ("createdAt", "dualCerts", "fqdn", "id", "isAutoUpdateEnabled", "isDNSCheckEnabled", "isRegistrationEnabled", "maxPort", "minPort", "proxyHash", "proxyPassword", "proxyUser", "updatedAt") SELECT "createdAt", "dualCerts", "fqdn", "id", "isAutoUpdateEnabled", "isDNSCheckEnabled", "isRegistrationEnabled", "maxPort", "minPort", "proxyHash", "proxyPassword", "proxyUser", "updatedAt" FROM "Setting";
+DROP TABLE "Setting";
+ALTER TABLE "new_Setting" RENAME TO "Setting";
+CREATE UNIQUE INDEX "Setting_fqdn_key" ON "Setting"("fqdn");
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20220519095648_minio_apifqdn/migration.sql b/apps/server/prisma/migrations/20220519095648_minio_apifqdn/migration.sql
new file mode 100644
index 0000000000..a447128648
--- /dev/null
+++ b/apps/server/prisma/migrations/20220519095648_minio_apifqdn/migration.sql
@@ -0,0 +1,2 @@
+-- AlterTable
+ALTER TABLE "Minio" ADD COLUMN "apiFqdn" TEXT;
diff --git a/apps/server/prisma/migrations/20220708132655_deployment_type_for_applications/migration.sql b/apps/server/prisma/migrations/20220708132655_deployment_type_for_applications/migration.sql
new file mode 100644
index 0000000000..2776d1b883
--- /dev/null
+++ b/apps/server/prisma/migrations/20220708132655_deployment_type_for_applications/migration.sql
@@ -0,0 +1,2 @@
+-- AlterTable
+ALTER TABLE "Application" ADD COLUMN "deploymentType" TEXT;
diff --git a/apps/server/prisma/migrations/20220712083523_custom_port_git_sources/migration.sql b/apps/server/prisma/migrations/20220712083523_custom_port_git_sources/migration.sql
new file mode 100644
index 0000000000..f702291b22
--- /dev/null
+++ b/apps/server/prisma/migrations/20220712083523_custom_port_git_sources/migration.sql
@@ -0,0 +1,24 @@
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_GitSource" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "name" TEXT NOT NULL,
+ "type" TEXT,
+ "apiUrl" TEXT,
+ "htmlUrl" TEXT,
+ "customPort" INTEGER NOT NULL DEFAULT 22,
+ "organization" TEXT,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ "githubAppId" TEXT,
+ "gitlabAppId" TEXT,
+ CONSTRAINT "GitSource_githubAppId_fkey" FOREIGN KEY ("githubAppId") REFERENCES "GithubApp" ("id") ON DELETE SET NULL ON UPDATE CASCADE,
+ CONSTRAINT "GitSource_gitlabAppId_fkey" FOREIGN KEY ("gitlabAppId") REFERENCES "GitlabApp" ("id") ON DELETE SET NULL ON UPDATE CASCADE
+);
+INSERT INTO "new_GitSource" ("apiUrl", "createdAt", "githubAppId", "gitlabAppId", "htmlUrl", "id", "name", "organization", "type", "updatedAt") SELECT "apiUrl", "createdAt", "githubAppId", "gitlabAppId", "htmlUrl", "id", "name", "organization", "type", "updatedAt" FROM "GitSource";
+DROP TABLE "GitSource";
+ALTER TABLE "new_GitSource" RENAME TO "GitSource";
+CREATE UNIQUE INDEX "GitSource_githubAppId_key" ON "GitSource"("githubAppId");
+CREATE UNIQUE INDEX "GitSource_gitlabAppId_key" ON "GitSource"("gitlabAppId");
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20220718083646_moodle/migration.sql b/apps/server/prisma/migrations/20220718083646_moodle/migration.sql
new file mode 100644
index 0000000000..eaed14a4a8
--- /dev/null
+++ b/apps/server/prisma/migrations/20220718083646_moodle/migration.sql
@@ -0,0 +1,20 @@
+-- CreateTable
+CREATE TABLE "Moodle" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "serviceId" TEXT NOT NULL,
+ "defaultUsername" TEXT NOT NULL,
+ "defaultPassword" TEXT NOT NULL,
+ "defaultEmail" TEXT NOT NULL,
+ "mariadbUser" TEXT NOT NULL,
+ "mariadbPassword" TEXT NOT NULL,
+ "mariadbRootUser" TEXT NOT NULL,
+ "mariadbRootUserPassword" TEXT NOT NULL,
+ "mariadbDatabase" TEXT NOT NULL,
+ "mariadbPublicPort" INTEGER,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "Moodle_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+
+-- CreateIndex
+CREATE UNIQUE INDEX "Moodle_serviceId_key" ON "Moodle"("serviceId");
diff --git a/apps/server/prisma/migrations/20220718114551_remote_docker_engine/migration.sql b/apps/server/prisma/migrations/20220718114551_remote_docker_engine/migration.sql
new file mode 100644
index 0000000000..e80df22f23
--- /dev/null
+++ b/apps/server/prisma/migrations/20220718114551_remote_docker_engine/migration.sql
@@ -0,0 +1,21 @@
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_DestinationDocker" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "network" TEXT NOT NULL,
+ "name" TEXT NOT NULL,
+ "engine" TEXT,
+ "remoteEngine" BOOLEAN NOT NULL DEFAULT false,
+ "remoteIpAddress" TEXT,
+ "remoteUser" TEXT,
+ "remotePort" INTEGER,
+ "isCoolifyProxyUsed" BOOLEAN DEFAULT false,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL
+);
+INSERT INTO "new_DestinationDocker" ("createdAt", "engine", "id", "isCoolifyProxyUsed", "name", "network", "remoteEngine", "updatedAt") SELECT "createdAt", "engine", "id", "isCoolifyProxyUsed", "name", "network", "remoteEngine", "updatedAt" FROM "DestinationDocker";
+DROP TABLE "DestinationDocker";
+ALTER TABLE "new_DestinationDocker" RENAME TO "DestinationDocker";
+CREATE UNIQUE INDEX "DestinationDocker_network_key" ON "DestinationDocker"("network");
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20220721084020_ssh_key/migration.sql b/apps/server/prisma/migrations/20220721084020_ssh_key/migration.sql
new file mode 100644
index 0000000000..8323af409b
--- /dev/null
+++ b/apps/server/prisma/migrations/20220721084020_ssh_key/migration.sql
@@ -0,0 +1,33 @@
+-- CreateTable
+CREATE TABLE "SshKey" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "name" TEXT NOT NULL,
+ "privateKey" TEXT NOT NULL,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL
+);
+
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_DestinationDocker" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "network" TEXT NOT NULL,
+ "name" TEXT NOT NULL,
+ "engine" TEXT,
+ "remoteEngine" BOOLEAN NOT NULL DEFAULT false,
+ "remoteIpAddress" TEXT,
+ "remoteUser" TEXT,
+ "remotePort" INTEGER,
+ "remoteVerified" BOOLEAN NOT NULL DEFAULT false,
+ "isCoolifyProxyUsed" BOOLEAN DEFAULT false,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ "sshKeyId" TEXT,
+ CONSTRAINT "DestinationDocker_sshKeyId_fkey" FOREIGN KEY ("sshKeyId") REFERENCES "SshKey" ("id") ON DELETE SET NULL ON UPDATE CASCADE
+);
+INSERT INTO "new_DestinationDocker" ("createdAt", "engine", "id", "isCoolifyProxyUsed", "name", "network", "remoteEngine", "remoteIpAddress", "remotePort", "remoteUser", "updatedAt") SELECT "createdAt", "engine", "id", "isCoolifyProxyUsed", "name", "network", "remoteEngine", "remoteIpAddress", "remotePort", "remoteUser", "updatedAt" FROM "DestinationDocker";
+DROP TABLE "DestinationDocker";
+ALTER TABLE "new_DestinationDocker" RENAME TO "DestinationDocker";
+CREATE UNIQUE INDEX "DestinationDocker_network_key" ON "DestinationDocker"("network");
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20220722203927_ipaddress/migration.sql b/apps/server/prisma/migrations/20220722203927_ipaddress/migration.sql
new file mode 100644
index 0000000000..21d45ada32
--- /dev/null
+++ b/apps/server/prisma/migrations/20220722203927_ipaddress/migration.sql
@@ -0,0 +1,3 @@
+-- AlterTable
+ALTER TABLE "Setting" ADD COLUMN "ipv4" TEXT;
+ALTER TABLE "Setting" ADD COLUMN "ipv6" TEXT;
diff --git a/apps/server/prisma/migrations/20220725191205_architecture/migration.sql b/apps/server/prisma/migrations/20220725191205_architecture/migration.sql
new file mode 100644
index 0000000000..2e0ff3e011
--- /dev/null
+++ b/apps/server/prisma/migrations/20220725191205_architecture/migration.sql
@@ -0,0 +1,2 @@
+-- AlterTable
+ALTER TABLE "Setting" ADD COLUMN "arch" TEXT;
diff --git a/apps/server/prisma/migrations/20220726121333_fix_ssh_key/migration.sql b/apps/server/prisma/migrations/20220726121333_fix_ssh_key/migration.sql
new file mode 100644
index 0000000000..e6e47b1978
--- /dev/null
+++ b/apps/server/prisma/migrations/20220726121333_fix_ssh_key/migration.sql
@@ -0,0 +1,16 @@
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_SshKey" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "name" TEXT NOT NULL,
+ "privateKey" TEXT NOT NULL,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ "teamId" TEXT,
+ CONSTRAINT "SshKey_teamId_fkey" FOREIGN KEY ("teamId") REFERENCES "Team" ("id") ON DELETE SET NULL ON UPDATE CASCADE
+);
+INSERT INTO "new_SshKey" ("createdAt", "id", "name", "privateKey", "updatedAt") SELECT "createdAt", "id", "name", "privateKey", "updatedAt" FROM "SshKey";
+DROP TABLE "SshKey";
+ALTER TABLE "new_SshKey" RENAME TO "SshKey";
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20220806090621_fqdn_not_unique_anymore/migration.sql b/apps/server/prisma/migrations/20220806090621_fqdn_not_unique_anymore/migration.sql
new file mode 100644
index 0000000000..f1eab666b4
--- /dev/null
+++ b/apps/server/prisma/migrations/20220806090621_fqdn_not_unique_anymore/migration.sql
@@ -0,0 +1,2 @@
+-- DropIndex
+DROP INDEX "Application_fqdn_key";
diff --git a/apps/server/prisma/migrations/20220806102340_rde_ssh_local_port/migration.sql b/apps/server/prisma/migrations/20220806102340_rde_ssh_local_port/migration.sql
new file mode 100644
index 0000000000..ae4c39846a
--- /dev/null
+++ b/apps/server/prisma/migrations/20220806102340_rde_ssh_local_port/migration.sql
@@ -0,0 +1,2 @@
+-- AlterTable
+ALTER TABLE "DestinationDocker" ADD COLUMN "sshLocalPort" INTEGER;
diff --git a/apps/server/prisma/migrations/20220815092230_glitchtip/migration.sql b/apps/server/prisma/migrations/20220815092230_glitchtip/migration.sql
new file mode 100644
index 0000000000..dba98ab822
--- /dev/null
+++ b/apps/server/prisma/migrations/20220815092230_glitchtip/migration.sql
@@ -0,0 +1,30 @@
+-- CreateTable
+CREATE TABLE "GlitchTip" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "postgresqlUser" TEXT NOT NULL,
+ "postgresqlPassword" TEXT NOT NULL,
+ "postgresqlDatabase" TEXT NOT NULL,
+ "postgresqlPublicPort" INTEGER,
+ "secretKeyBase" TEXT,
+ "defaultEmail" TEXT NOT NULL,
+ "defaultUsername" TEXT NOT NULL,
+ "defaultPassword" TEXT NOT NULL,
+ "defaultEmailFrom" TEXT NOT NULL DEFAULT '[email protected]',
+ "emailSmtpHost" TEXT DEFAULT 'domain.tdl',
+ "emailSmtpPort" INTEGER DEFAULT 25,
+ "emailSmtpUser" TEXT,
+ "emailSmtpPassword" TEXT,
+ "emailSmtpUseTls" BOOLEAN DEFAULT false,
+ "emailSmtpUseSsl" BOOLEAN DEFAULT false,
+ "emailBackend" TEXT,
+ "mailgunApiKey" TEXT,
+ "sendgridApiKey" TEXT,
+ "enableOpenUserRegistration" BOOLEAN NOT NULL DEFAULT true,
+ "serviceId" TEXT NOT NULL,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "GlitchTip_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+
+-- CreateIndex
+CREATE UNIQUE INDEX "GlitchTip_serviceId_key" ON "GlitchTip"("serviceId");
diff --git a/apps/server/prisma/migrations/20220815133844_appwrite/migration.sql b/apps/server/prisma/migrations/20220815133844_appwrite/migration.sql
new file mode 100644
index 0000000000..ec61dc434e
--- /dev/null
+++ b/apps/server/prisma/migrations/20220815133844_appwrite/migration.sql
@@ -0,0 +1,22 @@
+-- CreateTable
+CREATE TABLE "Appwrite" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "serviceId" TEXT NOT NULL,
+ "opensslKeyV1" TEXT NOT NULL,
+ "executorSecret" TEXT NOT NULL,
+ "redisPassword" TEXT NOT NULL,
+ "mariadbHost" TEXT,
+ "mariadbPort" INTEGER NOT NULL DEFAULT 3306,
+ "mariadbUser" TEXT NOT NULL,
+ "mariadbPassword" TEXT NOT NULL,
+ "mariadbRootUser" TEXT NOT NULL,
+ "mariadbRootUserPassword" TEXT NOT NULL,
+ "mariadbDatabase" TEXT NOT NULL,
+ "mariadbPublicPort" INTEGER,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "Appwrite_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+
+-- CreateIndex
+CREATE UNIQUE INDEX "Appwrite_serviceId_key" ON "Appwrite"("serviceId");
diff --git a/apps/server/prisma/migrations/20220816133447_bot_deployments/migration.sql b/apps/server/prisma/migrations/20220816133447_bot_deployments/migration.sql
new file mode 100644
index 0000000000..3d6d92d0e6
--- /dev/null
+++ b/apps/server/prisma/migrations/20220816133447_bot_deployments/migration.sql
@@ -0,0 +1,20 @@
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_ApplicationSettings" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "applicationId" TEXT NOT NULL,
+ "dualCerts" BOOLEAN NOT NULL DEFAULT false,
+ "debug" BOOLEAN NOT NULL DEFAULT false,
+ "previews" BOOLEAN NOT NULL DEFAULT false,
+ "autodeploy" BOOLEAN NOT NULL DEFAULT true,
+ "isBot" BOOLEAN NOT NULL DEFAULT false,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "ApplicationSettings_applicationId_fkey" FOREIGN KEY ("applicationId") REFERENCES "Application" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+INSERT INTO "new_ApplicationSettings" ("applicationId", "autodeploy", "createdAt", "debug", "dualCerts", "id", "previews", "updatedAt") SELECT "applicationId", "autodeploy", "createdAt", "debug", "dualCerts", "id", "previews", "updatedAt" FROM "ApplicationSettings";
+DROP TABLE "ApplicationSettings";
+ALTER TABLE "new_ApplicationSettings" RENAME TO "ApplicationSettings";
+CREATE UNIQUE INDEX "ApplicationSettings_applicationId_key" ON "ApplicationSettings"("applicationId");
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20220817082342_custom_dns_servers/migration.sql b/apps/server/prisma/migrations/20220817082342_custom_dns_servers/migration.sql
new file mode 100644
index 0000000000..03588b549c
--- /dev/null
+++ b/apps/server/prisma/migrations/20220817082342_custom_dns_servers/migration.sql
@@ -0,0 +1,2 @@
+-- AlterTable
+ALTER TABLE "Setting" ADD COLUMN "DNSServers" TEXT;
diff --git a/apps/server/prisma/migrations/20220818093615_public_repositories/migration.sql b/apps/server/prisma/migrations/20220818093615_public_repositories/migration.sql
new file mode 100644
index 0000000000..7f08c29fd9
--- /dev/null
+++ b/apps/server/prisma/migrations/20220818093615_public_repositories/migration.sql
@@ -0,0 +1,42 @@
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_GitSource" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "name" TEXT NOT NULL,
+ "forPublic" BOOLEAN NOT NULL DEFAULT false,
+ "type" TEXT,
+ "apiUrl" TEXT,
+ "htmlUrl" TEXT,
+ "customPort" INTEGER NOT NULL DEFAULT 22,
+ "organization" TEXT,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ "githubAppId" TEXT,
+ "gitlabAppId" TEXT,
+ CONSTRAINT "GitSource_githubAppId_fkey" FOREIGN KEY ("githubAppId") REFERENCES "GithubApp" ("id") ON DELETE SET NULL ON UPDATE CASCADE,
+ CONSTRAINT "GitSource_gitlabAppId_fkey" FOREIGN KEY ("gitlabAppId") REFERENCES "GitlabApp" ("id") ON DELETE SET NULL ON UPDATE CASCADE
+);
+INSERT INTO "new_GitSource" ("apiUrl", "createdAt", "customPort", "githubAppId", "gitlabAppId", "htmlUrl", "id", "name", "organization", "type", "updatedAt") SELECT "apiUrl", "createdAt", "customPort", "githubAppId", "gitlabAppId", "htmlUrl", "id", "name", "organization", "type", "updatedAt" FROM "GitSource";
+DROP TABLE "GitSource";
+ALTER TABLE "new_GitSource" RENAME TO "GitSource";
+CREATE UNIQUE INDEX "GitSource_githubAppId_key" ON "GitSource"("githubAppId");
+CREATE UNIQUE INDEX "GitSource_gitlabAppId_key" ON "GitSource"("gitlabAppId");
+CREATE TABLE "new_ApplicationSettings" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "applicationId" TEXT NOT NULL,
+ "dualCerts" BOOLEAN NOT NULL DEFAULT false,
+ "debug" BOOLEAN NOT NULL DEFAULT false,
+ "previews" BOOLEAN NOT NULL DEFAULT false,
+ "autodeploy" BOOLEAN NOT NULL DEFAULT true,
+ "isBot" BOOLEAN NOT NULL DEFAULT false,
+ "isPublicRepository" BOOLEAN NOT NULL DEFAULT false,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "ApplicationSettings_applicationId_fkey" FOREIGN KEY ("applicationId") REFERENCES "Application" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+INSERT INTO "new_ApplicationSettings" ("applicationId", "autodeploy", "createdAt", "debug", "dualCerts", "id", "isBot", "previews", "updatedAt") SELECT "applicationId", "autodeploy", "createdAt", "debug", "dualCerts", "id", "isBot", "previews", "updatedAt" FROM "ApplicationSettings";
+DROP TABLE "ApplicationSettings";
+ALTER TABLE "new_ApplicationSettings" RENAME TO "ApplicationSettings";
+CREATE UNIQUE INDEX "ApplicationSettings_applicationId_key" ON "ApplicationSettings"("applicationId");
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20220823070532_service_searxng/migration.sql b/apps/server/prisma/migrations/20220823070532_service_searxng/migration.sql
new file mode 100644
index 0000000000..81ecc81c83
--- /dev/null
+++ b/apps/server/prisma/migrations/20220823070532_service_searxng/migration.sql
@@ -0,0 +1,13 @@
+-- CreateTable
+CREATE TABLE "Searxng" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "secretKey" TEXT NOT NULL,
+ "redisPassword" TEXT NOT NULL,
+ "serviceId" TEXT NOT NULL,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "Searxng_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+
+-- CreateIndex
+CREATE UNIQUE INDEX "Searxng_serviceId_key" ON "Searxng"("serviceId");
diff --git a/apps/server/prisma/migrations/20220825064811_concurrent_build_settings/migration.sql b/apps/server/prisma/migrations/20220825064811_concurrent_build_settings/migration.sql
new file mode 100644
index 0000000000..1535c2bf7c
--- /dev/null
+++ b/apps/server/prisma/migrations/20220825064811_concurrent_build_settings/migration.sql
@@ -0,0 +1,29 @@
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_Setting" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "fqdn" TEXT,
+ "isRegistrationEnabled" BOOLEAN NOT NULL DEFAULT false,
+ "dualCerts" BOOLEAN NOT NULL DEFAULT false,
+ "minPort" INTEGER NOT NULL DEFAULT 9000,
+ "maxPort" INTEGER NOT NULL DEFAULT 9100,
+ "proxyPassword" TEXT NOT NULL,
+ "proxyUser" TEXT NOT NULL,
+ "proxyHash" TEXT,
+ "isAutoUpdateEnabled" BOOLEAN NOT NULL DEFAULT false,
+ "isDNSCheckEnabled" BOOLEAN NOT NULL DEFAULT true,
+ "DNSServers" TEXT,
+ "isTraefikUsed" BOOLEAN NOT NULL DEFAULT true,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ "ipv4" TEXT,
+ "ipv6" TEXT,
+ "arch" TEXT,
+ "concurrentBuilds" INTEGER NOT NULL DEFAULT 1
+);
+INSERT INTO "new_Setting" ("DNSServers", "arch", "createdAt", "dualCerts", "fqdn", "id", "ipv4", "ipv6", "isAutoUpdateEnabled", "isDNSCheckEnabled", "isRegistrationEnabled", "isTraefikUsed", "maxPort", "minPort", "proxyHash", "proxyPassword", "proxyUser", "updatedAt") SELECT "DNSServers", "arch", "createdAt", "dualCerts", "fqdn", "id", "ipv4", "ipv6", "isAutoUpdateEnabled", "isDNSCheckEnabled", "isRegistrationEnabled", "isTraefikUsed", "maxPort", "minPort", "proxyHash", "proxyPassword", "proxyUser", "updatedAt" FROM "Setting";
+DROP TABLE "Setting";
+ALTER TABLE "new_Setting" RENAME TO "Setting";
+CREATE UNIQUE INDEX "Setting_fqdn_key" ON "Setting"("fqdn");
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20220825072007_build_queue_improvements/migration.sql b/apps/server/prisma/migrations/20220825072007_build_queue_improvements/migration.sql
new file mode 100644
index 0000000000..78c51fc156
--- /dev/null
+++ b/apps/server/prisma/migrations/20220825072007_build_queue_improvements/migration.sql
@@ -0,0 +1,24 @@
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_Build" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "type" TEXT NOT NULL,
+ "applicationId" TEXT,
+ "destinationDockerId" TEXT,
+ "gitSourceId" TEXT,
+ "githubAppId" TEXT,
+ "gitlabAppId" TEXT,
+ "commit" TEXT,
+ "pullmergeRequestId" TEXT,
+ "forceRebuild" BOOLEAN NOT NULL DEFAULT false,
+ "sourceBranch" TEXT,
+ "branch" TEXT,
+ "status" TEXT DEFAULT 'queued',
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL
+);
+INSERT INTO "new_Build" ("applicationId", "branch", "commit", "createdAt", "destinationDockerId", "gitSourceId", "githubAppId", "gitlabAppId", "id", "status", "type", "updatedAt") SELECT "applicationId", "branch", "commit", "createdAt", "destinationDockerId", "gitSourceId", "githubAppId", "gitlabAppId", "id", "status", "type", "updatedAt" FROM "Build";
+DROP TABLE "Build";
+ALTER TABLE "new_Build" RENAME TO "Build";
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20220831095714_service_weblate/migration.sql b/apps/server/prisma/migrations/20220831095714_service_weblate/migration.sql
new file mode 100644
index 0000000000..c985b4ae25
--- /dev/null
+++ b/apps/server/prisma/migrations/20220831095714_service_weblate/migration.sql
@@ -0,0 +1,18 @@
+-- CreateTable
+CREATE TABLE "Weblate" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "adminPassword" TEXT NOT NULL,
+ "postgresqlHost" TEXT NOT NULL,
+ "postgresqlPort" INTEGER NOT NULL,
+ "postgresqlUser" TEXT NOT NULL,
+ "postgresqlPassword" TEXT NOT NULL,
+ "postgresqlDatabase" TEXT NOT NULL,
+ "postgresqlPublicPort" INTEGER,
+ "serviceId" TEXT NOT NULL,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "Weblate_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+
+-- CreateIndex
+CREATE UNIQUE INDEX "Weblate_serviceId_key" ON "Weblate"("serviceId");
diff --git a/apps/server/prisma/migrations/20220902115640_service_taiga/migration.sql b/apps/server/prisma/migrations/20220902115640_service_taiga/migration.sql
new file mode 100644
index 0000000000..3035dd8efe
--- /dev/null
+++ b/apps/server/prisma/migrations/20220902115640_service_taiga/migration.sql
@@ -0,0 +1,23 @@
+-- CreateTable
+CREATE TABLE "Taiga" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "secretKey" TEXT NOT NULL,
+ "erlangSecret" TEXT NOT NULL,
+ "djangoAdminPassword" TEXT NOT NULL,
+ "djangoAdminUser" TEXT NOT NULL,
+ "rabbitMQUser" TEXT NOT NULL,
+ "rabbitMQPassword" TEXT NOT NULL,
+ "postgresqlHost" TEXT NOT NULL,
+ "postgresqlPort" INTEGER NOT NULL,
+ "postgresqlUser" TEXT NOT NULL,
+ "postgresqlPassword" TEXT NOT NULL,
+ "postgresqlDatabase" TEXT NOT NULL,
+ "postgresqlPublicPort" INTEGER,
+ "serviceId" TEXT NOT NULL,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "Taiga_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+
+-- CreateIndex
+CREATE UNIQUE INDEX "Taiga_serviceId_key" ON "Taiga"("serviceId");
diff --git a/apps/server/prisma/migrations/20220905062318_database_branching/migration.sql b/apps/server/prisma/migrations/20220905062318_database_branching/migration.sql
new file mode 100644
index 0000000000..d828a4c667
--- /dev/null
+++ b/apps/server/prisma/migrations/20220905062318_database_branching/migration.sql
@@ -0,0 +1,22 @@
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_ApplicationSettings" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "applicationId" TEXT NOT NULL,
+ "dualCerts" BOOLEAN NOT NULL DEFAULT false,
+ "debug" BOOLEAN NOT NULL DEFAULT false,
+ "previews" BOOLEAN NOT NULL DEFAULT false,
+ "autodeploy" BOOLEAN NOT NULL DEFAULT true,
+ "isBot" BOOLEAN NOT NULL DEFAULT false,
+ "isPublicRepository" BOOLEAN NOT NULL DEFAULT false,
+ "isDBBranching" BOOLEAN NOT NULL DEFAULT false,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "ApplicationSettings_applicationId_fkey" FOREIGN KEY ("applicationId") REFERENCES "Application" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+INSERT INTO "new_ApplicationSettings" ("applicationId", "autodeploy", "createdAt", "debug", "dualCerts", "id", "isBot", "isPublicRepository", "previews", "updatedAt") SELECT "applicationId", "autodeploy", "createdAt", "debug", "dualCerts", "id", "isBot", "isPublicRepository", "previews", "updatedAt" FROM "ApplicationSettings";
+DROP TABLE "ApplicationSettings";
+ALTER TABLE "new_ApplicationSettings" RENAME TO "ApplicationSettings";
+CREATE UNIQUE INDEX "ApplicationSettings_applicationId_key" ON "ApplicationSettings"("applicationId");
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20220905113241_prisma_migration/migration.sql b/apps/server/prisma/migrations/20220905113241_prisma_migration/migration.sql
new file mode 100644
index 0000000000..324bcfff0c
--- /dev/null
+++ b/apps/server/prisma/migrations/20220905113241_prisma_migration/migration.sql
@@ -0,0 +1,20 @@
+/*
+ Warnings:
+
+ - You are about to alter the column `time` on the `BuildLog` table. The data in that column could be lost. The data in that column will be cast from `Int` to `BigInt`.
+
+*/
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_BuildLog" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "applicationId" TEXT,
+ "buildId" TEXT NOT NULL,
+ "line" TEXT NOT NULL,
+ "time" BIGINT NOT NULL
+);
+INSERT INTO "new_BuildLog" ("applicationId", "buildId", "id", "line", "time") SELECT "applicationId", "buildId", "id", "line", "time" FROM "BuildLog";
+DROP TABLE "BuildLog";
+ALTER TABLE "new_BuildLog" RENAME TO "BuildLog";
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20220905115321_application_connected_database/migration.sql b/apps/server/prisma/migrations/20220905115321_application_connected_database/migration.sql
new file mode 100644
index 0000000000..576c23bdf3
--- /dev/null
+++ b/apps/server/prisma/migrations/20220905115321_application_connected_database/migration.sql
@@ -0,0 +1,20 @@
+-- CreateTable
+CREATE TABLE "ApplicationConnectedDatabase" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "applicationId" TEXT NOT NULL,
+ "databaseId" TEXT,
+ "hostedDatabaseType" TEXT,
+ "hostedDatabaseHost" TEXT,
+ "hostedDatabasePort" INTEGER,
+ "hostedDatabaseName" TEXT,
+ "hostedDatabaseUser" TEXT,
+ "hostedDatabasePassword" TEXT,
+ "hostedDatabaseDBName" TEXT,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "ApplicationConnectedDatabase_databaseId_fkey" FOREIGN KEY ("databaseId") REFERENCES "Database" ("id") ON DELETE SET NULL ON UPDATE CASCADE,
+ CONSTRAINT "ApplicationConnectedDatabase_applicationId_fkey" FOREIGN KEY ("applicationId") REFERENCES "Application" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+
+-- CreateIndex
+CREATE UNIQUE INDEX "ApplicationConnectedDatabase_applicationId_key" ON "ApplicationConnectedDatabase"("applicationId");
diff --git a/apps/server/prisma/migrations/20220906120112_enable_api_debug_logging/migration.sql b/apps/server/prisma/migrations/20220906120112_enable_api_debug_logging/migration.sql
new file mode 100644
index 0000000000..05fb3e2855
--- /dev/null
+++ b/apps/server/prisma/migrations/20220906120112_enable_api_debug_logging/migration.sql
@@ -0,0 +1,2 @@
+-- AlterTable
+ALTER TABLE "Setting" ADD COLUMN "isAPIDebuggingEnabled" BOOLEAN DEFAULT false;
diff --git a/apps/server/prisma/migrations/20220907092244_database_secrets/migration.sql b/apps/server/prisma/migrations/20220907092244_database_secrets/migration.sql
new file mode 100644
index 0000000000..53ff2d19ed
--- /dev/null
+++ b/apps/server/prisma/migrations/20220907092244_database_secrets/migration.sql
@@ -0,0 +1,13 @@
+-- CreateTable
+CREATE TABLE "DatabaseSecret" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "name" TEXT NOT NULL,
+ "value" TEXT NOT NULL,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ "databaseId" TEXT NOT NULL,
+ CONSTRAINT "DatabaseSecret_databaseId_fkey" FOREIGN KEY ("databaseId") REFERENCES "Database" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+
+-- CreateIndex
+CREATE UNIQUE INDEX "DatabaseSecret_name_databaseId_key" ON "DatabaseSecret"("name", "databaseId");
diff --git a/apps/server/prisma/migrations/20220913092100_preview_applications/migration.sql b/apps/server/prisma/migrations/20220913092100_preview_applications/migration.sql
new file mode 100644
index 0000000000..0ec1aafa09
--- /dev/null
+++ b/apps/server/prisma/migrations/20220913092100_preview_applications/migration.sql
@@ -0,0 +1,18 @@
+-- AlterTable
+ALTER TABLE "Build" ADD COLUMN "previewApplicationId" TEXT;
+
+-- CreateTable
+CREATE TABLE "PreviewApplication" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "pullmergeRequestId" TEXT NOT NULL,
+ "sourceBranch" TEXT NOT NULL,
+ "isRandomDomain" BOOLEAN NOT NULL DEFAULT false,
+ "customDomain" TEXT,
+ "applicationId" TEXT NOT NULL,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "PreviewApplication_applicationId_fkey" FOREIGN KEY ("applicationId") REFERENCES "Application" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+
+-- CreateIndex
+CREATE UNIQUE INDEX "PreviewApplication_applicationId_key" ON "PreviewApplication"("applicationId");
diff --git a/apps/server/prisma/migrations/20220922064605_custom_certificates/migration.sql b/apps/server/prisma/migrations/20220922064605_custom_certificates/migration.sql
new file mode 100644
index 0000000000..8049130388
--- /dev/null
+++ b/apps/server/prisma/migrations/20220922064605_custom_certificates/migration.sql
@@ -0,0 +1,10 @@
+-- CreateTable
+CREATE TABLE "Certificate" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "key" TEXT NOT NULL,
+ "cert" TEXT NOT NULL,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ "teamId" TEXT,
+ CONSTRAINT "Certificate_teamId_fkey" FOREIGN KEY ("teamId") REFERENCES "Team" ("id") ON DELETE SET NULL ON UPDATE CASCADE
+);
diff --git a/apps/server/prisma/migrations/20220923122227_custom_ssl_for_applications/migration.sql b/apps/server/prisma/migrations/20220923122227_custom_ssl_for_applications/migration.sql
new file mode 100644
index 0000000000..b9261a955f
--- /dev/null
+++ b/apps/server/prisma/migrations/20220923122227_custom_ssl_for_applications/migration.sql
@@ -0,0 +1,23 @@
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_ApplicationSettings" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "applicationId" TEXT NOT NULL,
+ "dualCerts" BOOLEAN NOT NULL DEFAULT false,
+ "debug" BOOLEAN NOT NULL DEFAULT false,
+ "previews" BOOLEAN NOT NULL DEFAULT false,
+ "autodeploy" BOOLEAN NOT NULL DEFAULT true,
+ "isBot" BOOLEAN NOT NULL DEFAULT false,
+ "isPublicRepository" BOOLEAN NOT NULL DEFAULT false,
+ "isDBBranching" BOOLEAN NOT NULL DEFAULT false,
+ "isCustomSSL" BOOLEAN NOT NULL DEFAULT false,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "ApplicationSettings_applicationId_fkey" FOREIGN KEY ("applicationId") REFERENCES "Application" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+INSERT INTO "new_ApplicationSettings" ("applicationId", "autodeploy", "createdAt", "debug", "dualCerts", "id", "isBot", "isDBBranching", "isPublicRepository", "previews", "updatedAt") SELECT "applicationId", "autodeploy", "createdAt", "debug", "dualCerts", "id", "isBot", "isDBBranching", "isPublicRepository", "previews", "updatedAt" FROM "ApplicationSettings";
+DROP TABLE "ApplicationSettings";
+ALTER TABLE "new_ApplicationSettings" RENAME TO "ApplicationSettings";
+CREATE UNIQUE INDEX "ApplicationSettings_applicationId_key" ON "ApplicationSettings"("applicationId");
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20220928083348_system_wide_git_sources/migration.sql b/apps/server/prisma/migrations/20220928083348_system_wide_git_sources/migration.sql
new file mode 100644
index 0000000000..a3657504dc
--- /dev/null
+++ b/apps/server/prisma/migrations/20220928083348_system_wide_git_sources/migration.sql
@@ -0,0 +1,26 @@
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_GitSource" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "name" TEXT NOT NULL,
+ "forPublic" BOOLEAN NOT NULL DEFAULT false,
+ "type" TEXT,
+ "apiUrl" TEXT,
+ "htmlUrl" TEXT,
+ "customPort" INTEGER NOT NULL DEFAULT 22,
+ "organization" TEXT,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ "githubAppId" TEXT,
+ "gitlabAppId" TEXT,
+ "isSystemWide" BOOLEAN NOT NULL DEFAULT false,
+ CONSTRAINT "GitSource_gitlabAppId_fkey" FOREIGN KEY ("gitlabAppId") REFERENCES "GitlabApp" ("id") ON DELETE SET NULL ON UPDATE CASCADE,
+ CONSTRAINT "GitSource_githubAppId_fkey" FOREIGN KEY ("githubAppId") REFERENCES "GithubApp" ("id") ON DELETE SET NULL ON UPDATE CASCADE
+);
+INSERT INTO "new_GitSource" ("apiUrl", "createdAt", "customPort", "forPublic", "githubAppId", "gitlabAppId", "htmlUrl", "id", "name", "organization", "type", "updatedAt") SELECT "apiUrl", "createdAt", "customPort", "forPublic", "githubAppId", "gitlabAppId", "htmlUrl", "id", "name", "organization", "type", "updatedAt" FROM "GitSource";
+DROP TABLE "GitSource";
+ALTER TABLE "new_GitSource" RENAME TO "GitSource";
+CREATE UNIQUE INDEX "GitSource_githubAppId_key" ON "GitSource"("githubAppId");
+CREATE UNIQUE INDEX "GitSource_gitlabAppId_key" ON "GitSource"("gitlabAppId");
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20221002084246_no_unique_appid_on_previews/migration.sql b/apps/server/prisma/migrations/20221002084246_no_unique_appid_on_previews/migration.sql
new file mode 100644
index 0000000000..031f842cb2
--- /dev/null
+++ b/apps/server/prisma/migrations/20221002084246_no_unique_appid_on_previews/migration.sql
@@ -0,0 +1,2 @@
+-- DropIndex
+DROP INDEX "PreviewApplication_applicationId_key";
diff --git a/apps/server/prisma/migrations/20221002091630_forked_previews/migration.sql b/apps/server/prisma/migrations/20221002091630_forked_previews/migration.sql
new file mode 100644
index 0000000000..2312c011bb
--- /dev/null
+++ b/apps/server/prisma/migrations/20221002091630_forked_previews/migration.sql
@@ -0,0 +1,2 @@
+-- AlterTable
+ALTER TABLE "Build" ADD COLUMN "sourceRepository" TEXT;
diff --git a/apps/server/prisma/migrations/20221005120323_initial_docker_compose/migration.sql b/apps/server/prisma/migrations/20221005120323_initial_docker_compose/migration.sql
new file mode 100644
index 0000000000..bb93e1aaf2
--- /dev/null
+++ b/apps/server/prisma/migrations/20221005120323_initial_docker_compose/migration.sql
@@ -0,0 +1,3 @@
+-- AlterTable
+ALTER TABLE "Application" ADD COLUMN "dockerComposeFile" TEXT;
+ALTER TABLE "Application" ADD COLUMN "dockerComposeFileLocation" TEXT;
diff --git a/apps/server/prisma/migrations/20221005132352_docker_compose_configuration/migration.sql b/apps/server/prisma/migrations/20221005132352_docker_compose_configuration/migration.sql
new file mode 100644
index 0000000000..e7368dc1af
--- /dev/null
+++ b/apps/server/prisma/migrations/20221005132352_docker_compose_configuration/migration.sql
@@ -0,0 +1,2 @@
+-- AlterTable
+ALTER TABLE "Application" ADD COLUMN "dockerComposeConfiguration" TEXT;
diff --git a/apps/server/prisma/migrations/20221017134342_standardized_service_configs/migration.sql b/apps/server/prisma/migrations/20221017134342_standardized_service_configs/migration.sql
new file mode 100644
index 0000000000..8370174356
--- /dev/null
+++ b/apps/server/prisma/migrations/20221017134342_standardized_service_configs/migration.sql
@@ -0,0 +1,13 @@
+-- CreateTable
+CREATE TABLE "ServiceSetting" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "serviceId" TEXT NOT NULL,
+ "name" TEXT NOT NULL,
+ "value" TEXT NOT NULL,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "ServiceSetting_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+
+-- CreateIndex
+CREATE UNIQUE INDEX "ServiceSetting_serviceId_name_key" ON "ServiceSetting"("serviceId", "name");
diff --git a/apps/server/prisma/migrations/20221018090939_service_peristent_volumes_predefined/migration.sql b/apps/server/prisma/migrations/20221018090939_service_peristent_volumes_predefined/migration.sql
new file mode 100644
index 0000000000..c7b935eb74
--- /dev/null
+++ b/apps/server/prisma/migrations/20221018090939_service_peristent_volumes_predefined/migration.sql
@@ -0,0 +1,19 @@
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_ServicePersistentStorage" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "serviceId" TEXT NOT NULL,
+ "path" TEXT NOT NULL,
+ "volumeName" TEXT,
+ "predefined" BOOLEAN NOT NULL DEFAULT false,
+ "containerId" TEXT,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "ServicePersistentStorage_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+INSERT INTO "new_ServicePersistentStorage" ("createdAt", "id", "path", "serviceId", "updatedAt") SELECT "createdAt", "id", "path", "serviceId", "updatedAt" FROM "ServicePersistentStorage";
+DROP TABLE "ServicePersistentStorage";
+ALTER TABLE "new_ServicePersistentStorage" RENAME TO "ServicePersistentStorage";
+CREATE UNIQUE INDEX "ServicePersistentStorage_serviceId_path_key" ON "ServicePersistentStorage"("serviceId", "path");
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20221021112429_serivce_settings_extended/migration.sql b/apps/server/prisma/migrations/20221021112429_serivce_settings_extended/migration.sql
new file mode 100644
index 0000000000..b2eddcfd9b
--- /dev/null
+++ b/apps/server/prisma/migrations/20221021112429_serivce_settings_extended/migration.sql
@@ -0,0 +1,24 @@
+/*
+ Warnings:
+
+ - Added the required column `variableName` to the `ServiceSetting` table without a default value. This is not possible if the table is not empty.
+
+*/
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_ServiceSetting" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "serviceId" TEXT NOT NULL,
+ "name" TEXT NOT NULL,
+ "value" TEXT NOT NULL,
+ "variableName" TEXT NOT NULL,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "ServiceSetting_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+INSERT INTO "new_ServiceSetting" ("createdAt", "id", "name", "serviceId", "updatedAt", "value") SELECT "createdAt", "id", "name", "serviceId", "updatedAt", "value" FROM "ServiceSetting";
+DROP TABLE "ServiceSetting";
+ALTER TABLE "new_ServiceSetting" RENAME TO "ServiceSetting";
+CREATE UNIQUE INDEX "ServiceSetting_serviceId_name_key" ON "ServiceSetting"("serviceId", "name");
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20221021185630_service_template_version/migration.sql b/apps/server/prisma/migrations/20221021185630_service_template_version/migration.sql
new file mode 100644
index 0000000000..f716a2340e
--- /dev/null
+++ b/apps/server/prisma/migrations/20221021185630_service_template_version/migration.sql
@@ -0,0 +1,21 @@
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_Service" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "name" TEXT NOT NULL,
+ "fqdn" TEXT,
+ "exposePort" INTEGER,
+ "dualCerts" BOOLEAN NOT NULL DEFAULT false,
+ "type" TEXT,
+ "version" TEXT,
+ "templateVersion" TEXT NOT NULL DEFAULT '0.0.0',
+ "destinationDockerId" TEXT,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "Service_destinationDockerId_fkey" FOREIGN KEY ("destinationDockerId") REFERENCES "DestinationDocker" ("id") ON DELETE SET NULL ON UPDATE CASCADE
+);
+INSERT INTO "new_Service" ("createdAt", "destinationDockerId", "dualCerts", "exposePort", "fqdn", "id", "name", "type", "updatedAt", "version") SELECT "createdAt", "destinationDockerId", "dualCerts", "exposePort", "fqdn", "id", "name", "type", "updatedAt", "version" FROM "Service";
+DROP TABLE "Service";
+ALTER TABLE "new_Service" RENAME TO "Service";
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20221026115123_service_persistent_unique/migration.sql b/apps/server/prisma/migrations/20221026115123_service_persistent_unique/migration.sql
new file mode 100644
index 0000000000..dae80a76a9
--- /dev/null
+++ b/apps/server/prisma/migrations/20221026115123_service_persistent_unique/migration.sql
@@ -0,0 +1,11 @@
+/*
+ Warnings:
+
+ - A unique constraint covering the columns `[serviceId,containerId,path]` on the table `ServicePersistentStorage` will be added. If there are existing duplicate values, this will fail.
+
+*/
+-- DropIndex
+DROP INDEX "ServicePersistentStorage_serviceId_path_key";
+
+-- CreateIndex
+CREATE UNIQUE INDEX "ServicePersistentStorage_serviceId_containerId_path_key" ON "ServicePersistentStorage"("serviceId", "containerId", "path");
diff --git a/apps/server/prisma/migrations/20221028074301_wordpress_optional_fields/migration.sql b/apps/server/prisma/migrations/20221028074301_wordpress_optional_fields/migration.sql
new file mode 100644
index 0000000000..217039d97b
--- /dev/null
+++ b/apps/server/prisma/migrations/20221028074301_wordpress_optional_fields/migration.sql
@@ -0,0 +1,32 @@
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_Wordpress" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "extraConfig" TEXT,
+ "tablePrefix" TEXT,
+ "ownMysql" BOOLEAN NOT NULL DEFAULT false,
+ "mysqlHost" TEXT,
+ "mysqlPort" INTEGER,
+ "mysqlUser" TEXT,
+ "mysqlPassword" TEXT,
+ "mysqlRootUser" TEXT,
+ "mysqlRootUserPassword" TEXT,
+ "mysqlDatabase" TEXT,
+ "mysqlPublicPort" INTEGER,
+ "ftpEnabled" BOOLEAN NOT NULL DEFAULT false,
+ "ftpUser" TEXT,
+ "ftpPassword" TEXT,
+ "ftpPublicPort" INTEGER,
+ "ftpHostKey" TEXT,
+ "ftpHostKeyPrivate" TEXT,
+ "serviceId" TEXT NOT NULL,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "Wordpress_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+INSERT INTO "new_Wordpress" ("createdAt", "extraConfig", "ftpEnabled", "ftpHostKey", "ftpHostKeyPrivate", "ftpPassword", "ftpPublicPort", "ftpUser", "id", "mysqlDatabase", "mysqlHost", "mysqlPassword", "mysqlPort", "mysqlPublicPort", "mysqlRootUser", "mysqlRootUserPassword", "mysqlUser", "ownMysql", "serviceId", "tablePrefix", "updatedAt") SELECT "createdAt", "extraConfig", "ftpEnabled", "ftpHostKey", "ftpHostKeyPrivate", "ftpPassword", "ftpPublicPort", "ftpUser", "id", "mysqlDatabase", "mysqlHost", "mysqlPassword", "mysqlPort", "mysqlPublicPort", "mysqlRootUser", "mysqlRootUserPassword", "mysqlUser", "ownMysql", "serviceId", "tablePrefix", "updatedAt" FROM "Wordpress";
+DROP TABLE "Wordpress";
+ALTER TABLE "new_Wordpress" RENAME TO "Wordpress";
+CREATE UNIQUE INDEX "Wordpress_serviceId_key" ON "Wordpress"("serviceId");
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20221104092223_default_redirect_proxy/migration.sql b/apps/server/prisma/migrations/20221104092223_default_redirect_proxy/migration.sql
new file mode 100644
index 0000000000..8584fe25c7
--- /dev/null
+++ b/apps/server/prisma/migrations/20221104092223_default_redirect_proxy/migration.sql
@@ -0,0 +1,2 @@
+-- AlterTable
+ALTER TABLE "Setting" ADD COLUMN "proxyDefaultRedirect" TEXT;
diff --git a/apps/server/prisma/migrations/20221114093217_application_storage_path_migration/migration.sql b/apps/server/prisma/migrations/20221114093217_application_storage_path_migration/migration.sql
new file mode 100644
index 0000000000..6913c8b001
--- /dev/null
+++ b/apps/server/prisma/migrations/20221114093217_application_storage_path_migration/migration.sql
@@ -0,0 +1,45 @@
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_Setting" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "fqdn" TEXT,
+ "isAPIDebuggingEnabled" BOOLEAN DEFAULT false,
+ "isRegistrationEnabled" BOOLEAN NOT NULL DEFAULT false,
+ "dualCerts" BOOLEAN NOT NULL DEFAULT false,
+ "minPort" INTEGER NOT NULL DEFAULT 9000,
+ "maxPort" INTEGER NOT NULL DEFAULT 9100,
+ "proxyPassword" TEXT NOT NULL,
+ "proxyUser" TEXT NOT NULL,
+ "proxyHash" TEXT,
+ "proxyDefaultRedirect" TEXT,
+ "isAutoUpdateEnabled" BOOLEAN NOT NULL DEFAULT false,
+ "isDNSCheckEnabled" BOOLEAN NOT NULL DEFAULT true,
+ "DNSServers" TEXT,
+ "isTraefikUsed" BOOLEAN NOT NULL DEFAULT true,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ "ipv4" TEXT,
+ "ipv6" TEXT,
+ "arch" TEXT,
+ "concurrentBuilds" INTEGER NOT NULL DEFAULT 1,
+ "applicationStoragePathMigrationFinished" BOOLEAN NOT NULL DEFAULT false
+);
+INSERT INTO "new_Setting" ("DNSServers", "arch", "concurrentBuilds", "createdAt", "dualCerts", "fqdn", "id", "ipv4", "ipv6", "isAPIDebuggingEnabled", "isAutoUpdateEnabled", "isDNSCheckEnabled", "isRegistrationEnabled", "isTraefikUsed", "maxPort", "minPort", "proxyDefaultRedirect", "proxyHash", "proxyPassword", "proxyUser", "updatedAt") SELECT "DNSServers", "arch", "concurrentBuilds", "createdAt", "dualCerts", "fqdn", "id", "ipv4", "ipv6", "isAPIDebuggingEnabled", "isAutoUpdateEnabled", "isDNSCheckEnabled", "isRegistrationEnabled", "isTraefikUsed", "maxPort", "minPort", "proxyDefaultRedirect", "proxyHash", "proxyPassword", "proxyUser", "updatedAt" FROM "Setting";
+DROP TABLE "Setting";
+ALTER TABLE "new_Setting" RENAME TO "Setting";
+CREATE UNIQUE INDEX "Setting_fqdn_key" ON "Setting"("fqdn");
+CREATE TABLE "new_ApplicationPersistentStorage" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "applicationId" TEXT NOT NULL,
+ "path" TEXT NOT NULL,
+ "oldPath" BOOLEAN NOT NULL DEFAULT false,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "ApplicationPersistentStorage_applicationId_fkey" FOREIGN KEY ("applicationId") REFERENCES "Application" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+INSERT INTO "new_ApplicationPersistentStorage" ("applicationId", "createdAt", "id", "path", "updatedAt") SELECT "applicationId", "createdAt", "id", "path", "updatedAt" FROM "ApplicationPersistentStorage";
+DROP TABLE "ApplicationPersistentStorage";
+ALTER TABLE "new_ApplicationPersistentStorage" RENAME TO "ApplicationPersistentStorage";
+CREATE UNIQUE INDEX "ApplicationPersistentStorage_applicationId_path_key" ON "ApplicationPersistentStorage"("applicationId", "path");
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20221123122143_remote_haproxy_from_db/migration.sql b/apps/server/prisma/migrations/20221123122143_remote_haproxy_from_db/migration.sql
new file mode 100644
index 0000000000..1acf261a57
--- /dev/null
+++ b/apps/server/prisma/migrations/20221123122143_remote_haproxy_from_db/migration.sql
@@ -0,0 +1,37 @@
+/*
+ Warnings:
+
+ - You are about to drop the column `proxyHash` on the `Setting` table. All the data in the column will be lost.
+ - You are about to drop the column `proxyPassword` on the `Setting` table. All the data in the column will be lost.
+ - You are about to drop the column `proxyUser` on the `Setting` table. All the data in the column will be lost.
+
+*/
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_Setting" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "fqdn" TEXT,
+ "dualCerts" BOOLEAN NOT NULL DEFAULT false,
+ "minPort" INTEGER NOT NULL DEFAULT 9000,
+ "maxPort" INTEGER NOT NULL DEFAULT 9100,
+ "DNSServers" TEXT,
+ "ipv4" TEXT,
+ "ipv6" TEXT,
+ "arch" TEXT,
+ "concurrentBuilds" INTEGER NOT NULL DEFAULT 1,
+ "applicationStoragePathMigrationFinished" BOOLEAN NOT NULL DEFAULT false,
+ "proxyDefaultRedirect" TEXT,
+ "isAPIDebuggingEnabled" BOOLEAN DEFAULT false,
+ "isRegistrationEnabled" BOOLEAN NOT NULL DEFAULT false,
+ "isAutoUpdateEnabled" BOOLEAN NOT NULL DEFAULT false,
+ "isDNSCheckEnabled" BOOLEAN NOT NULL DEFAULT true,
+ "isTraefikUsed" BOOLEAN NOT NULL DEFAULT true,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL
+);
+INSERT INTO "new_Setting" ("DNSServers", "applicationStoragePathMigrationFinished", "arch", "concurrentBuilds", "createdAt", "dualCerts", "fqdn", "id", "ipv4", "ipv6", "isAPIDebuggingEnabled", "isAutoUpdateEnabled", "isDNSCheckEnabled", "isRegistrationEnabled", "isTraefikUsed", "maxPort", "minPort", "proxyDefaultRedirect", "updatedAt") SELECT "DNSServers", "applicationStoragePathMigrationFinished", "arch", "concurrentBuilds", "createdAt", "dualCerts", "fqdn", "id", "ipv4", "ipv6", "isAPIDebuggingEnabled", "isAutoUpdateEnabled", "isDNSCheckEnabled", "isRegistrationEnabled", "isTraefikUsed", "maxPort", "minPort", "proxyDefaultRedirect", "updatedAt" FROM "Setting";
+DROP TABLE "Setting";
+ALTER TABLE "new_Setting" RENAME TO "Setting";
+CREATE UNIQUE INDEX "Setting_fqdn_key" ON "Setting"("fqdn");
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20221123133429_docker_registries/migration.sql b/apps/server/prisma/migrations/20221123133429_docker_registries/migration.sql
new file mode 100644
index 0000000000..abebc55143
--- /dev/null
+++ b/apps/server/prisma/migrations/20221123133429_docker_registries/migration.sql
@@ -0,0 +1,59 @@
+-- CreateTable
+CREATE TABLE "DockerRegistry" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "name" TEXT NOT NULL,
+ "url" TEXT NOT NULL,
+ "username" TEXT,
+ "password" TEXT,
+ "isSystemWide" BOOLEAN NOT NULL DEFAULT false,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ "teamId" TEXT,
+ CONSTRAINT "DockerRegistry_teamId_fkey" FOREIGN KEY ("teamId") REFERENCES "Team" ("id") ON DELETE SET NULL ON UPDATE CASCADE
+);
+
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_Application" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "name" TEXT NOT NULL,
+ "fqdn" TEXT,
+ "repository" TEXT,
+ "configHash" TEXT,
+ "branch" TEXT,
+ "buildPack" TEXT,
+ "projectId" INTEGER,
+ "port" INTEGER,
+ "exposePort" INTEGER,
+ "installCommand" TEXT,
+ "buildCommand" TEXT,
+ "startCommand" TEXT,
+ "baseDirectory" TEXT,
+ "publishDirectory" TEXT,
+ "deploymentType" TEXT,
+ "phpModules" TEXT,
+ "pythonWSGI" TEXT,
+ "pythonModule" TEXT,
+ "pythonVariable" TEXT,
+ "dockerFileLocation" TEXT,
+ "denoMainFile" TEXT,
+ "denoOptions" TEXT,
+ "dockerComposeFile" TEXT,
+ "dockerComposeFileLocation" TEXT,
+ "dockerComposeConfiguration" TEXT,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ "destinationDockerId" TEXT,
+ "gitSourceId" TEXT,
+ "baseImage" TEXT,
+ "baseBuildImage" TEXT,
+ "dockerRegistryId" TEXT NOT NULL DEFAULT '0',
+ CONSTRAINT "Application_gitSourceId_fkey" FOREIGN KEY ("gitSourceId") REFERENCES "GitSource" ("id") ON DELETE SET NULL ON UPDATE CASCADE,
+ CONSTRAINT "Application_destinationDockerId_fkey" FOREIGN KEY ("destinationDockerId") REFERENCES "DestinationDocker" ("id") ON DELETE SET NULL ON UPDATE CASCADE,
+ CONSTRAINT "Application_dockerRegistryId_fkey" FOREIGN KEY ("dockerRegistryId") REFERENCES "DockerRegistry" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+INSERT INTO "new_Application" ("baseBuildImage", "baseDirectory", "baseImage", "branch", "buildCommand", "buildPack", "configHash", "createdAt", "denoMainFile", "denoOptions", "deploymentType", "destinationDockerId", "dockerComposeConfiguration", "dockerComposeFile", "dockerComposeFileLocation", "dockerFileLocation", "exposePort", "fqdn", "gitSourceId", "id", "installCommand", "name", "phpModules", "port", "projectId", "publishDirectory", "pythonModule", "pythonVariable", "pythonWSGI", "repository", "startCommand", "updatedAt") SELECT "baseBuildImage", "baseDirectory", "baseImage", "branch", "buildCommand", "buildPack", "configHash", "createdAt", "denoMainFile", "denoOptions", "deploymentType", "destinationDockerId", "dockerComposeConfiguration", "dockerComposeFile", "dockerComposeFileLocation", "dockerFileLocation", "exposePort", "fqdn", "gitSourceId", "id", "installCommand", "name", "phpModules", "port", "projectId", "publishDirectory", "pythonModule", "pythonVariable", "pythonWSGI", "repository", "startCommand", "updatedAt" FROM "Application";
+DROP TABLE "Application";
+ALTER TABLE "new_Application" RENAME TO "Application";
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20221128104158_do_not_track/migration.sql b/apps/server/prisma/migrations/20221128104158_do_not_track/migration.sql
new file mode 100644
index 0000000000..9cf26d8a80
--- /dev/null
+++ b/apps/server/prisma/migrations/20221128104158_do_not_track/migration.sql
@@ -0,0 +1,30 @@
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_Setting" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "fqdn" TEXT,
+ "dualCerts" BOOLEAN NOT NULL DEFAULT false,
+ "minPort" INTEGER NOT NULL DEFAULT 9000,
+ "maxPort" INTEGER NOT NULL DEFAULT 9100,
+ "DNSServers" TEXT,
+ "ipv4" TEXT,
+ "ipv6" TEXT,
+ "arch" TEXT,
+ "concurrentBuilds" INTEGER NOT NULL DEFAULT 1,
+ "applicationStoragePathMigrationFinished" BOOLEAN NOT NULL DEFAULT false,
+ "proxyDefaultRedirect" TEXT,
+ "doNotTrack" BOOLEAN NOT NULL DEFAULT false,
+ "isAPIDebuggingEnabled" BOOLEAN DEFAULT false,
+ "isRegistrationEnabled" BOOLEAN NOT NULL DEFAULT false,
+ "isAutoUpdateEnabled" BOOLEAN NOT NULL DEFAULT false,
+ "isDNSCheckEnabled" BOOLEAN NOT NULL DEFAULT true,
+ "isTraefikUsed" BOOLEAN NOT NULL DEFAULT true,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL
+);
+INSERT INTO "new_Setting" ("DNSServers", "applicationStoragePathMigrationFinished", "arch", "concurrentBuilds", "createdAt", "dualCerts", "fqdn", "id", "ipv4", "ipv6", "isAPIDebuggingEnabled", "isAutoUpdateEnabled", "isDNSCheckEnabled", "isRegistrationEnabled", "isTraefikUsed", "maxPort", "minPort", "proxyDefaultRedirect", "updatedAt") SELECT "DNSServers", "applicationStoragePathMigrationFinished", "arch", "concurrentBuilds", "createdAt", "dualCerts", "fqdn", "id", "ipv4", "ipv6", "isAPIDebuggingEnabled", "isAutoUpdateEnabled", "isDNSCheckEnabled", "isRegistrationEnabled", "isTraefikUsed", "maxPort", "minPort", "proxyDefaultRedirect", "updatedAt" FROM "Setting";
+DROP TABLE "Setting";
+ALTER TABLE "new_Setting" RENAME TO "Setting";
+CREATE UNIQUE INDEX "Setting_fqdn_key" ON "Setting"("fqdn");
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20221128104718_fix_defaults/migration.sql b/apps/server/prisma/migrations/20221128104718_fix_defaults/migration.sql
new file mode 100644
index 0000000000..c1152cdc35
--- /dev/null
+++ b/apps/server/prisma/migrations/20221128104718_fix_defaults/migration.sql
@@ -0,0 +1,60 @@
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_Setting" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "fqdn" TEXT,
+ "dualCerts" BOOLEAN NOT NULL DEFAULT false,
+ "minPort" INTEGER NOT NULL DEFAULT 9000,
+ "maxPort" INTEGER NOT NULL DEFAULT 9100,
+ "DNSServers" TEXT,
+ "ipv4" TEXT,
+ "ipv6" TEXT,
+ "arch" TEXT,
+ "concurrentBuilds" INTEGER NOT NULL DEFAULT 1,
+ "applicationStoragePathMigrationFinished" BOOLEAN NOT NULL DEFAULT false,
+ "proxyDefaultRedirect" TEXT,
+ "doNotTrack" BOOLEAN NOT NULL DEFAULT false,
+ "isAPIDebuggingEnabled" BOOLEAN NOT NULL DEFAULT false,
+ "isRegistrationEnabled" BOOLEAN NOT NULL DEFAULT false,
+ "isAutoUpdateEnabled" BOOLEAN NOT NULL DEFAULT false,
+ "isDNSCheckEnabled" BOOLEAN NOT NULL DEFAULT true,
+ "isTraefikUsed" BOOLEAN NOT NULL DEFAULT true,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL
+);
+INSERT INTO "new_Setting" ("DNSServers", "applicationStoragePathMigrationFinished", "arch", "concurrentBuilds", "createdAt", "doNotTrack", "dualCerts", "fqdn", "id", "ipv4", "ipv6", "isAPIDebuggingEnabled", "isAutoUpdateEnabled", "isDNSCheckEnabled", "isRegistrationEnabled", "isTraefikUsed", "maxPort", "minPort", "proxyDefaultRedirect", "updatedAt") SELECT "DNSServers", "applicationStoragePathMigrationFinished", "arch", "concurrentBuilds", "createdAt", "doNotTrack", "dualCerts", "fqdn", "id", "ipv4", "ipv6", coalesce("isAPIDebuggingEnabled", false) AS "isAPIDebuggingEnabled", "isAutoUpdateEnabled", "isDNSCheckEnabled", "isRegistrationEnabled", "isTraefikUsed", "maxPort", "minPort", "proxyDefaultRedirect", "updatedAt" FROM "Setting";
+DROP TABLE "Setting";
+ALTER TABLE "new_Setting" RENAME TO "Setting";
+CREATE UNIQUE INDEX "Setting_fqdn_key" ON "Setting"("fqdn");
+CREATE TABLE "new_GlitchTip" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "postgresqlUser" TEXT NOT NULL,
+ "postgresqlPassword" TEXT NOT NULL,
+ "postgresqlDatabase" TEXT NOT NULL,
+ "postgresqlPublicPort" INTEGER,
+ "secretKeyBase" TEXT,
+ "defaultEmail" TEXT NOT NULL,
+ "defaultUsername" TEXT NOT NULL,
+ "defaultPassword" TEXT NOT NULL,
+ "defaultEmailFrom" TEXT NOT NULL DEFAULT '[email protected]',
+ "emailSmtpHost" TEXT DEFAULT 'domain.tdl',
+ "emailSmtpPort" INTEGER DEFAULT 25,
+ "emailSmtpUser" TEXT,
+ "emailSmtpPassword" TEXT,
+ "emailSmtpUseTls" BOOLEAN NOT NULL DEFAULT false,
+ "emailSmtpUseSsl" BOOLEAN NOT NULL DEFAULT false,
+ "emailBackend" TEXT,
+ "mailgunApiKey" TEXT,
+ "sendgridApiKey" TEXT,
+ "enableOpenUserRegistration" BOOLEAN NOT NULL DEFAULT true,
+ "serviceId" TEXT NOT NULL,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ CONSTRAINT "GlitchTip_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
+);
+INSERT INTO "new_GlitchTip" ("createdAt", "defaultEmail", "defaultEmailFrom", "defaultPassword", "defaultUsername", "emailBackend", "emailSmtpHost", "emailSmtpPassword", "emailSmtpPort", "emailSmtpUseSsl", "emailSmtpUseTls", "emailSmtpUser", "enableOpenUserRegistration", "id", "mailgunApiKey", "postgresqlDatabase", "postgresqlPassword", "postgresqlPublicPort", "postgresqlUser", "secretKeyBase", "sendgridApiKey", "serviceId", "updatedAt") SELECT "createdAt", "defaultEmail", "defaultEmailFrom", "defaultPassword", "defaultUsername", "emailBackend", "emailSmtpHost", "emailSmtpPassword", "emailSmtpPort", coalesce("emailSmtpUseSsl", false) AS "emailSmtpUseSsl", coalesce("emailSmtpUseTls", false) AS "emailSmtpUseTls", "emailSmtpUser", "enableOpenUserRegistration", "id", "mailgunApiKey", "postgresqlDatabase", "postgresqlPassword", "postgresqlPublicPort", "postgresqlUser", "secretKeyBase", "sendgridApiKey", "serviceId", "updatedAt" FROM "GlitchTip";
+DROP TABLE "GlitchTip";
+ALTER TABLE "new_GlitchTip" RENAME TO "GlitchTip";
+CREATE UNIQUE INDEX "GlitchTip_serviceId_key" ON "GlitchTip"("serviceId");
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20221128105615_custom_sentry/migration.sql b/apps/server/prisma/migrations/20221128105615_custom_sentry/migration.sql
new file mode 100644
index 0000000000..00857eb0d5
--- /dev/null
+++ b/apps/server/prisma/migrations/20221128105615_custom_sentry/migration.sql
@@ -0,0 +1,2 @@
+-- AlterTable
+ALTER TABLE "Setting" ADD COLUMN "sentryDSN" TEXT;
diff --git a/apps/server/prisma/migrations/20221129081832_fix_defaults/migration.sql b/apps/server/prisma/migrations/20221129081832_fix_defaults/migration.sql
new file mode 100644
index 0000000000..96f6de3fb7
--- /dev/null
+++ b/apps/server/prisma/migrations/20221129081832_fix_defaults/migration.sql
@@ -0,0 +1,31 @@
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_Setting" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "fqdn" TEXT,
+ "dualCerts" BOOLEAN NOT NULL DEFAULT false,
+ "minPort" INTEGER NOT NULL DEFAULT 9000,
+ "maxPort" INTEGER NOT NULL DEFAULT 9100,
+ "DNSServers" TEXT NOT NULL DEFAULT '1.1.1.1,8.8.8.8',
+ "ipv4" TEXT,
+ "ipv6" TEXT,
+ "arch" TEXT,
+ "concurrentBuilds" INTEGER NOT NULL DEFAULT 1,
+ "applicationStoragePathMigrationFinished" BOOLEAN NOT NULL DEFAULT false,
+ "proxyDefaultRedirect" TEXT,
+ "doNotTrack" BOOLEAN NOT NULL DEFAULT false,
+ "sentryDSN" TEXT,
+ "isAPIDebuggingEnabled" BOOLEAN NOT NULL DEFAULT false,
+ "isRegistrationEnabled" BOOLEAN NOT NULL DEFAULT true,
+ "isAutoUpdateEnabled" BOOLEAN NOT NULL DEFAULT false,
+ "isDNSCheckEnabled" BOOLEAN NOT NULL DEFAULT true,
+ "isTraefikUsed" BOOLEAN NOT NULL DEFAULT true,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL
+);
+INSERT INTO "new_Setting" ("DNSServers", "applicationStoragePathMigrationFinished", "arch", "concurrentBuilds", "createdAt", "doNotTrack", "dualCerts", "fqdn", "id", "ipv4", "ipv6", "isAPIDebuggingEnabled", "isAutoUpdateEnabled", "isDNSCheckEnabled", "isRegistrationEnabled", "isTraefikUsed", "maxPort", "minPort", "proxyDefaultRedirect", "sentryDSN", "updatedAt") SELECT coalesce("DNSServers", '1.1.1.1,8.8.8.8') AS "DNSServers", "applicationStoragePathMigrationFinished", "arch", "concurrentBuilds", "createdAt", "doNotTrack", "dualCerts", "fqdn", "id", "ipv4", "ipv6", "isAPIDebuggingEnabled", "isAutoUpdateEnabled", "isDNSCheckEnabled", "isRegistrationEnabled", "isTraefikUsed", "maxPort", "minPort", "proxyDefaultRedirect", "sentryDSN", "updatedAt" FROM "Setting";
+DROP TABLE "Setting";
+ALTER TABLE "new_Setting" RENAME TO "Setting";
+CREATE UNIQUE INDEX "Setting_fqdn_key" ON "Setting"("fqdn");
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20221129121702_preview_separator/migration.sql b/apps/server/prisma/migrations/20221129121702_preview_separator/migration.sql
new file mode 100644
index 0000000000..e0d64cdc8c
--- /dev/null
+++ b/apps/server/prisma/migrations/20221129121702_preview_separator/migration.sql
@@ -0,0 +1,33 @@
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_Setting" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "fqdn" TEXT,
+ "dualCerts" BOOLEAN NOT NULL DEFAULT false,
+ "minPort" INTEGER NOT NULL DEFAULT 9000,
+ "maxPort" INTEGER NOT NULL DEFAULT 9100,
+ "DNSServers" TEXT NOT NULL DEFAULT '1.1.1.1,8.8.8.8',
+ "ipv4" TEXT,
+ "ipv6" TEXT,
+ "arch" TEXT,
+ "concurrentBuilds" INTEGER NOT NULL DEFAULT 1,
+ "applicationStoragePathMigrationFinished" BOOLEAN NOT NULL DEFAULT false,
+ "numberOfDockerImagesKeptLocally" INTEGER NOT NULL DEFAULT 3,
+ "proxyDefaultRedirect" TEXT,
+ "doNotTrack" BOOLEAN NOT NULL DEFAULT false,
+ "sentryDSN" TEXT,
+ "previewSeparator" TEXT NOT NULL DEFAULT '.',
+ "isAPIDebuggingEnabled" BOOLEAN NOT NULL DEFAULT false,
+ "isRegistrationEnabled" BOOLEAN NOT NULL DEFAULT true,
+ "isAutoUpdateEnabled" BOOLEAN NOT NULL DEFAULT false,
+ "isDNSCheckEnabled" BOOLEAN NOT NULL DEFAULT true,
+ "isTraefikUsed" BOOLEAN NOT NULL DEFAULT true,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL
+);
+INSERT INTO "new_Setting" ("DNSServers", "applicationStoragePathMigrationFinished", "arch", "concurrentBuilds", "createdAt", "doNotTrack", "dualCerts", "fqdn", "id", "ipv4", "ipv6", "isAPIDebuggingEnabled", "isAutoUpdateEnabled", "isDNSCheckEnabled", "isRegistrationEnabled", "isTraefikUsed", "maxPort", "minPort", "numberOfDockerImagesKeptLocally", "proxyDefaultRedirect", "sentryDSN", "updatedAt") SELECT "DNSServers", "applicationStoragePathMigrationFinished", "arch", "concurrentBuilds", "createdAt", "doNotTrack", "dualCerts", "fqdn", "id", "ipv4", "ipv6", "isAPIDebuggingEnabled", "isAutoUpdateEnabled", "isDNSCheckEnabled", "isRegistrationEnabled", "isTraefikUsed", "maxPort", "minPort", 3, "proxyDefaultRedirect", "sentryDSN", "updatedAt" FROM "Setting";
+DROP TABLE "Setting";
+ALTER TABLE "new_Setting" RENAME TO "Setting";
+CREATE UNIQUE INDEX "Setting_fqdn_key" ON "Setting"("fqdn");
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20221129130036_keep_local_docker_images/migration.sql b/apps/server/prisma/migrations/20221129130036_keep_local_docker_images/migration.sql
new file mode 100644
index 0000000000..aa8136ed8e
--- /dev/null
+++ b/apps/server/prisma/migrations/20221129130036_keep_local_docker_images/migration.sql
@@ -0,0 +1,2 @@
+-- AlterTable
+ALTER TABLE "Application" ADD COLUMN "gitCommitHash" TEXT;
diff --git a/apps/server/prisma/migrations/20221130142058_reconfigure_docker_registries/migration.sql b/apps/server/prisma/migrations/20221130142058_reconfigure_docker_registries/migration.sql
new file mode 100644
index 0000000000..c77afb6875
--- /dev/null
+++ b/apps/server/prisma/migrations/20221130142058_reconfigure_docker_registries/migration.sql
@@ -0,0 +1,66 @@
+/*
+ Warnings:
+
+ - You are about to drop the column `isSystemWide` on the `DockerRegistry` table. All the data in the column will be lost.
+
+*/
+-- RedefineTables
+PRAGMA foreign_keys=OFF;
+CREATE TABLE "new_DockerRegistry" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "name" TEXT NOT NULL,
+ "url" TEXT NOT NULL,
+ "username" TEXT,
+ "password" TEXT,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ "teamId" TEXT,
+ CONSTRAINT "DockerRegistry_teamId_fkey" FOREIGN KEY ("teamId") REFERENCES "Team" ("id") ON DELETE SET NULL ON UPDATE CASCADE
+);
+INSERT INTO "new_DockerRegistry" ("createdAt", "id", "name", "password", "teamId", "updatedAt", "url", "username") SELECT "createdAt", "id", "name", "password", "teamId", "updatedAt", "url", "username" FROM "DockerRegistry";
+DROP TABLE "DockerRegistry";
+ALTER TABLE "new_DockerRegistry" RENAME TO "DockerRegistry";
+CREATE TABLE "new_Application" (
+ "id" TEXT NOT NULL PRIMARY KEY,
+ "name" TEXT NOT NULL,
+ "fqdn" TEXT,
+ "repository" TEXT,
+ "configHash" TEXT,
+ "branch" TEXT,
+ "buildPack" TEXT,
+ "projectId" INTEGER,
+ "port" INTEGER,
+ "exposePort" INTEGER,
+ "installCommand" TEXT,
+ "buildCommand" TEXT,
+ "startCommand" TEXT,
+ "baseDirectory" TEXT,
+ "publishDirectory" TEXT,
+ "deploymentType" TEXT,
+ "phpModules" TEXT,
+ "pythonWSGI" TEXT,
+ "pythonModule" TEXT,
+ "pythonVariable" TEXT,
+ "dockerFileLocation" TEXT,
+ "denoMainFile" TEXT,
+ "denoOptions" TEXT,
+ "dockerComposeFile" TEXT,
+ "dockerComposeFileLocation" TEXT,
+ "dockerComposeConfiguration" TEXT,
+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" DATETIME NOT NULL,
+ "destinationDockerId" TEXT,
+ "gitSourceId" TEXT,
+ "gitCommitHash" TEXT,
+ "baseImage" TEXT,
+ "baseBuildImage" TEXT,
+ "dockerRegistryId" TEXT,
+ CONSTRAINT "Application_gitSourceId_fkey" FOREIGN KEY ("gitSourceId") REFERENCES "GitSource" ("id") ON DELETE SET NULL ON UPDATE CASCADE,
+ CONSTRAINT "Application_destinationDockerId_fkey" FOREIGN KEY ("destinationDockerId") REFERENCES "DestinationDocker" ("id") ON DELETE SET NULL ON UPDATE CASCADE,
+ CONSTRAINT "Application_dockerRegistryId_fkey" FOREIGN KEY ("dockerRegistryId") REFERENCES "DockerRegistry" ("id") ON DELETE SET NULL ON UPDATE CASCADE
+);
+INSERT INTO "new_Application" ("baseBuildImage", "baseDirectory", "baseImage", "branch", "buildCommand", "buildPack", "configHash", "createdAt", "denoMainFile", "denoOptions", "deploymentType", "destinationDockerId", "dockerComposeConfiguration", "dockerComposeFile", "dockerComposeFileLocation", "dockerFileLocation", "dockerRegistryId", "exposePort", "fqdn", "gitCommitHash", "gitSourceId", "id", "installCommand", "name", "phpModules", "port", "projectId", "publishDirectory", "pythonModule", "pythonVariable", "pythonWSGI", "repository", "startCommand", "updatedAt") SELECT "baseBuildImage", "baseDirectory", "baseImage", "branch", "buildCommand", "buildPack", "configHash", "createdAt", "denoMainFile", "denoOptions", "deploymentType", "destinationDockerId", "dockerComposeConfiguration", "dockerComposeFile", "dockerComposeFileLocation", "dockerFileLocation", "dockerRegistryId", "exposePort", "fqdn", "gitCommitHash", "gitSourceId", "id", "installCommand", "name", "phpModules", "port", "projectId", "publishDirectory", "pythonModule", "pythonVariable", "pythonWSGI", "repository", "startCommand", "updatedAt" FROM "Application";
+DROP TABLE "Application";
+ALTER TABLE "new_Application" RENAME TO "Application";
+PRAGMA foreign_key_check;
+PRAGMA foreign_keys=ON;
diff --git a/apps/server/prisma/migrations/20221201115801_simple_dockerfile_deployment/migration.sql b/apps/server/prisma/migrations/20221201115801_simple_dockerfile_deployment/migration.sql
new file mode 100644
index 0000000000..b3406e59e3
--- /dev/null
+++ b/apps/server/prisma/migrations/20221201115801_simple_dockerfile_deployment/migration.sql
@@ -0,0 +1,2 @@
+-- AlterTable
+ALTER TABLE "Application" ADD COLUMN "simpleDockerfile" TEXT;
diff --git a/apps/server/prisma/migrations/20221201133847_push_image_to_docker_registry/migration.sql b/apps/server/prisma/migrations/20221201133847_push_image_to_docker_registry/migration.sql
new file mode 100644
index 0000000000..9f85d35182
--- /dev/null
+++ b/apps/server/prisma/migrations/20221201133847_push_image_to_docker_registry/migration.sql
@@ -0,0 +1,2 @@
+-- AlterTable
+ALTER TABLE "Application" ADD COLUMN "dockerRegistryImageName" TEXT;
diff --git a/apps/server/prisma/migrations/20221206140938_init/migration.sql b/apps/server/prisma/migrations/20221206140938_init/migration.sql
deleted file mode 100644
index 462efbd298..0000000000
--- a/apps/server/prisma/migrations/20221206140938_init/migration.sql
+++ /dev/null
@@ -1,21 +0,0 @@
--- CreateTable
-CREATE TABLE "Category" (
- "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
- "name" TEXT NOT NULL,
- "budget" INTEGER NOT NULL,
- "customIcon" TEXT,
- "period" TEXT NOT NULL DEFAULT 'month',
- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
- "updatedAt" DATETIME NOT NULL
-);
-
--- CreateTable
-CREATE TABLE "Transaction" (
- "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
- "amount" INTEGER NOT NULL,
- "description" TEXT,
- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
- "updatedAt" DATETIME NOT NULL,
- "categoryId" INTEGER NOT NULL,
- CONSTRAINT "Transaction_categoryId_fkey" FOREIGN KEY ("categoryId") REFERENCES "Category" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
-);
diff --git a/apps/server/prisma/schema.prisma b/apps/server/prisma/schema.prisma
index e0020544b1..54eefc5046 100644
--- a/apps/server/prisma/schema.prisma
+++ b/apps/server/prisma/schema.prisma
@@ -1,11 +1,705 @@
-// This is your Prisma schema file,
-// learn more about it in the docs: https://pris.ly/d/prisma-schema
-
generator client {
- provider = "prisma-client-js"
+ provider = "prisma-client-js"
+ binaryTargets = ["native"]
}
datasource db {
provider = "sqlite"
- url = env("DATABASE_URL")
+ url = env("COOLIFY_DATABASE_URL")
+}
+
+model Certificate {
+ id String @id @default(cuid())
+ key String
+ cert String
+ team Team? @relation(fields: [teamId], references: [id])
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ teamId String?
+}
+
+model Setting {
+ id String @id @default(cuid())
+ fqdn String? @unique
+ dualCerts Boolean @default(false)
+ minPort Int @default(9000)
+ maxPort Int @default(9100)
+ DNSServers String @default("1.1.1.1,8.8.8.8")
+ ipv4 String?
+ ipv6 String?
+ arch String?
+ concurrentBuilds Int @default(1)
+ applicationStoragePathMigrationFinished Boolean @default(false)
+ numberOfDockerImagesKeptLocally Int @default(3)
+ proxyDefaultRedirect String?
+ doNotTrack Boolean @default(false)
+ sentryDSN String?
+ previewSeparator String @default(".")
+ isAPIDebuggingEnabled Boolean @default(false)
+ isRegistrationEnabled Boolean @default(true)
+ isAutoUpdateEnabled Boolean @default(false)
+ isDNSCheckEnabled Boolean @default(true)
+ isTraefikUsed Boolean @default(true)
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+}
+
+model User {
+ id String @id @unique @default(cuid())
+ email String @unique
+ type String
+ password String?
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ permission Permission[]
+ teams Team[]
+}
+
+model Permission {
+ id String @id @default(cuid())
+ userId String
+ teamId String
+ permission String
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ team Team @relation(fields: [teamId], references: [id])
+ user User @relation(fields: [userId], references: [id])
+}
+
+model Team {
+ id String @id @default(cuid())
+ name String?
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ databaseId String?
+ serviceId String?
+ permissions Permission[]
+ sshKey SshKey[]
+ applications Application[]
+ database Database[]
+ destinationDocker DestinationDocker[]
+ gitSources GitSource[]
+ gitHubApps GithubApp[]
+ gitLabApps GitlabApp[]
+ service Service[]
+ users User[]
+ certificate Certificate[]
+ dockerRegistry DockerRegistry[]
+}
+
+model TeamInvitation {
+ id String @id @default(cuid())
+ uid String
+ email String
+ teamId String
+ teamName String
+ permission String
+ createdAt DateTime @default(now())
+}
+
+model Application {
+ id String @id @default(cuid())
+ name String
+ fqdn String?
+ repository String?
+ configHash String?
+ branch String?
+ buildPack String?
+ projectId Int?
+ port Int?
+ exposePort Int?
+ installCommand String?
+ buildCommand String?
+ startCommand String?
+ baseDirectory String?
+ publishDirectory String?
+ deploymentType String?
+ phpModules String?
+ pythonWSGI String?
+ pythonModule String?
+ pythonVariable String?
+ dockerFileLocation String?
+ denoMainFile String?
+ denoOptions String?
+ dockerComposeFile String?
+ dockerComposeFileLocation String?
+ dockerComposeConfiguration String?
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ destinationDockerId String?
+ gitSourceId String?
+ gitCommitHash String?
+ baseImage String?
+ baseBuildImage String?
+ settings ApplicationSettings?
+ dockerRegistryId String?
+ dockerRegistryImageName String?
+ simpleDockerfile String?
+
+ persistentStorage ApplicationPersistentStorage[]
+ secrets Secret[]
+ teams Team[]
+ connectedDatabase ApplicationConnectedDatabase?
+ previewApplication PreviewApplication[]
+ gitSource GitSource? @relation(fields: [gitSourceId], references: [id])
+ destinationDocker DestinationDocker? @relation(fields: [destinationDockerId], references: [id])
+ dockerRegistry DockerRegistry? @relation(fields: [dockerRegistryId], references: [id])
+}
+
+model PreviewApplication {
+ id String @id @default(cuid())
+ pullmergeRequestId String
+ sourceBranch String
+ isRandomDomain Boolean @default(false)
+ customDomain String?
+ applicationId String
+ application Application @relation(fields: [applicationId], references: [id])
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+}
+
+model ApplicationConnectedDatabase {
+ id String @id @default(cuid())
+ applicationId String @unique
+ databaseId String?
+ hostedDatabaseType String?
+ hostedDatabaseHost String?
+ hostedDatabasePort Int?
+ hostedDatabaseName String?
+ hostedDatabaseUser String?
+ hostedDatabasePassword String?
+ hostedDatabaseDBName String?
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ database Database? @relation(fields: [databaseId], references: [id])
+ application Application @relation(fields: [applicationId], references: [id])
+}
+
+model ApplicationSettings {
+ id String @id @default(cuid())
+ applicationId String @unique
+ dualCerts Boolean @default(false)
+ debug Boolean @default(false)
+ previews Boolean @default(false)
+ autodeploy Boolean @default(true)
+ isBot Boolean @default(false)
+ isPublicRepository Boolean @default(false)
+ isDBBranching Boolean @default(false)
+ isCustomSSL Boolean @default(false)
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ application Application @relation(fields: [applicationId], references: [id])
+}
+
+model ApplicationPersistentStorage {
+ id String @id @default(cuid())
+ applicationId String
+ path String
+ oldPath Boolean @default(false)
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ application Application @relation(fields: [applicationId], references: [id])
+
+ @@unique([applicationId, path])
+}
+
+model ServicePersistentStorage {
+ id String @id @default(cuid())
+ serviceId String
+ path String
+ volumeName String?
+ predefined Boolean @default(false)
+ containerId String?
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ service Service @relation(fields: [serviceId], references: [id])
+
+ @@unique([serviceId, containerId, path])
+}
+
+model Secret {
+ id String @id @default(cuid())
+ name String
+ value String
+ isPRMRSecret Boolean @default(false)
+ isBuildSecret Boolean @default(false)
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ applicationId String
+ application Application @relation(fields: [applicationId], references: [id])
+
+ @@unique([name, applicationId, isPRMRSecret])
+}
+
+model ServiceSecret {
+ id String @id @default(cuid())
+ name String
+ value String
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ serviceId String
+ service Service @relation(fields: [serviceId], references: [id])
+
+ @@unique([name, serviceId])
+}
+
+model BuildLog {
+ id String @id @default(cuid())
+ applicationId String?
+ buildId String
+ line String
+ time BigInt
+}
+
+model Build {
+ id String @id @default(cuid())
+ type String
+ applicationId String?
+ destinationDockerId String?
+ gitSourceId String?
+ githubAppId String?
+ gitlabAppId String?
+ commit String?
+ pullmergeRequestId String?
+ previewApplicationId String?
+ forceRebuild Boolean @default(false)
+ sourceBranch String?
+ sourceRepository String?
+ branch String?
+ status String? @default("queued")
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+}
+
+model DestinationDocker {
+ id String @id @default(cuid())
+ network String @unique
+ name String
+ engine String?
+ remoteEngine Boolean @default(false)
+ remoteIpAddress String?
+ remoteUser String?
+ remotePort Int?
+ remoteVerified Boolean @default(false)
+ isCoolifyProxyUsed Boolean? @default(false)
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ sshKeyId String?
+ sshKey SshKey? @relation(fields: [sshKeyId], references: [id])
+ sshLocalPort Int?
+ application Application[]
+ database Database[]
+ service Service[]
+ teams Team[]
+}
+
+model SshKey {
+ id String @id @default(cuid())
+ name String
+ privateKey String
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ teamId String?
+ team Team? @relation(fields: [teamId], references: [id])
+ destinationDocker DestinationDocker[]
+}
+
+model DockerRegistry {
+ id String @id @default(cuid())
+ name String
+ url String
+ username String?
+ password String?
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ teamId String?
+ team Team? @relation(fields: [teamId], references: [id])
+ application Application[]
+}
+
+model GitSource {
+ id String @id @default(cuid())
+ name String
+ forPublic Boolean @default(false)
+ type String?
+ apiUrl String?
+ htmlUrl String?
+ customPort Int @default(22)
+ organization String?
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ githubAppId String? @unique
+ gitlabAppId String? @unique
+ isSystemWide Boolean @default(false)
+ gitlabApp GitlabApp? @relation(fields: [gitlabAppId], references: [id])
+ githubApp GithubApp? @relation(fields: [githubAppId], references: [id])
+ application Application[]
+ teams Team[]
+}
+
+model GithubApp {
+ id String @id @default(cuid())
+ name String? @unique
+ appId Int?
+ installationId Int?
+ clientId String?
+ clientSecret String?
+ webhookSecret String?
+ privateKey String?
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ gitSource GitSource?
+ teams Team[]
+}
+
+model GitlabApp {
+ id String @id @default(cuid())
+ oauthId Int @unique
+ groupName String? @unique
+ deployKeyId Int?
+ privateSshKey String?
+ publicSshKey String?
+ webhookToken String?
+ appId String?
+ appSecret String?
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ gitSource GitSource?
+ teams Team[]
+}
+
+model Database {
+ id String @id @default(cuid())
+ name String
+ publicPort Int?
+ defaultDatabase String?
+ type String?
+ version String?
+ dbUser String?
+ dbUserPassword String?
+ rootUser String?
+ rootUserPassword String?
+ destinationDockerId String?
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ destinationDocker DestinationDocker? @relation(fields: [destinationDockerId], references: [id])
+ settings DatabaseSettings?
+ teams Team[]
+ applicationConnectedDatabase ApplicationConnectedDatabase[]
+ databaseSecret DatabaseSecret[]
+}
+
+model DatabaseSecret {
+ id String @id @default(cuid())
+ name String
+ value String
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ databaseId String
+ database Database @relation(fields: [databaseId], references: [id])
+
+ @@unique([name, databaseId])
+}
+
+model DatabaseSettings {
+ id String @id @default(cuid())
+ databaseId String @unique
+ isPublic Boolean @default(false)
+ appendOnly Boolean @default(true)
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ database Database @relation(fields: [databaseId], references: [id])
+}
+
+model Service {
+ id String @id @default(cuid())
+ name String
+ fqdn String?
+ exposePort Int?
+ dualCerts Boolean @default(false)
+ type String?
+ version String?
+ templateVersion String @default("0.0.0")
+ destinationDockerId String?
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ destinationDocker DestinationDocker? @relation(fields: [destinationDockerId], references: [id])
+ persistentStorage ServicePersistentStorage[]
+ serviceSecret ServiceSecret[]
+ serviceSetting ServiceSetting[]
+ teams Team[]
+
+ fider Fider?
+ ghost Ghost?
+ glitchTip GlitchTip?
+ hasura Hasura?
+ meiliSearch MeiliSearch?
+ minio Minio?
+ moodle Moodle?
+ plausibleAnalytics PlausibleAnalytics?
+ umami Umami?
+ vscodeserver Vscodeserver?
+ wordpress Wordpress?
+ appwrite Appwrite?
+ searxng Searxng?
+ weblate Weblate?
+ taiga Taiga?
+}
+
+model ServiceSetting {
+ id String @id @default(cuid())
+ serviceId String
+ name String
+ value String
+ variableName String
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ service Service @relation(fields: [serviceId], references: [id])
+
+ @@unique([serviceId, name])
+}
+
+model PlausibleAnalytics {
+ id String @id @default(cuid())
+ email String?
+ username String?
+ password String
+ postgresqlUser String
+ postgresqlPassword String
+ postgresqlDatabase String
+ postgresqlPublicPort Int?
+ secretKeyBase String?
+ scriptName String @default("plausible.js")
+ serviceId String @unique
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ service Service @relation(fields: [serviceId], references: [id])
+}
+
+model Minio {
+ id String @id @default(cuid())
+ rootUser String
+ rootUserPassword String
+ publicPort Int?
+ apiFqdn String?
+ serviceId String @unique
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ service Service @relation(fields: [serviceId], references: [id])
+}
+
+model Vscodeserver {
+ id String @id @default(cuid())
+ password String
+ serviceId String @unique
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ service Service @relation(fields: [serviceId], references: [id])
+}
+
+model Wordpress {
+ id String @id @default(cuid())
+ extraConfig String?
+ tablePrefix String?
+ ownMysql Boolean @default(false)
+ mysqlHost String?
+ mysqlPort Int?
+ mysqlUser String?
+ mysqlPassword String?
+ mysqlRootUser String?
+ mysqlRootUserPassword String?
+ mysqlDatabase String?
+ mysqlPublicPort Int?
+ ftpEnabled Boolean @default(false)
+ ftpUser String?
+ ftpPassword String?
+ ftpPublicPort Int?
+ ftpHostKey String?
+ ftpHostKeyPrivate String?
+ serviceId String @unique
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ service Service @relation(fields: [serviceId], references: [id])
+}
+
+model Ghost {
+ id String @id @default(cuid())
+ defaultEmail String
+ defaultPassword String
+ mariadbUser String
+ mariadbPassword String
+ mariadbRootUser String
+ mariadbRootUserPassword String
+ mariadbDatabase String?
+ mariadbPublicPort Int?
+ serviceId String @unique
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ service Service @relation(fields: [serviceId], references: [id])
+}
+
+model MeiliSearch {
+ id String @id @default(cuid())
+ masterKey String
+ serviceId String @unique
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ service Service @relation(fields: [serviceId], references: [id])
+}
+
+model Umami {
+ id String @id @default(cuid())
+ serviceId String @unique
+ postgresqlUser String
+ postgresqlPassword String
+ postgresqlDatabase String
+ postgresqlPublicPort Int?
+ umamiAdminPassword String
+ hashSalt String
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ service Service @relation(fields: [serviceId], references: [id])
+}
+
+model Hasura {
+ id String @id @default(cuid())
+ serviceId String @unique
+ postgresqlUser String
+ postgresqlPassword String
+ postgresqlDatabase String
+ postgresqlPublicPort Int?
+ graphQLAdminPassword String
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ service Service @relation(fields: [serviceId], references: [id])
+}
+
+model Fider {
+ id String @id @default(cuid())
+ serviceId String @unique
+ postgresqlUser String
+ postgresqlPassword String
+ postgresqlDatabase String
+ postgresqlPublicPort Int?
+ jwtSecret String
+ emailNoreply String?
+ emailMailgunApiKey String?
+ emailMailgunDomain String?
+ emailMailgunRegion String @default("EU")
+ emailSmtpHost String?
+ emailSmtpPort Int?
+ emailSmtpUser String?
+ emailSmtpPassword String?
+ emailSmtpEnableStartTls Boolean @default(false)
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ service Service @relation(fields: [serviceId], references: [id])
+}
+
+model Moodle {
+ id String @id @default(cuid())
+ serviceId String @unique
+ defaultUsername String
+ defaultPassword String
+ defaultEmail String
+ mariadbUser String
+ mariadbPassword String
+ mariadbRootUser String
+ mariadbRootUserPassword String
+ mariadbDatabase String
+ mariadbPublicPort Int?
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ service Service @relation(fields: [serviceId], references: [id])
+}
+
+model Appwrite {
+ id String @id @default(cuid())
+ serviceId String @unique
+ opensslKeyV1 String
+ executorSecret String
+ redisPassword String
+ mariadbHost String?
+ mariadbPort Int @default(3306)
+ mariadbUser String
+ mariadbPassword String
+ mariadbRootUser String
+ mariadbRootUserPassword String
+ mariadbDatabase String
+ mariadbPublicPort Int?
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ service Service @relation(fields: [serviceId], references: [id])
+}
+
+model GlitchTip {
+ id String @id @default(cuid())
+ postgresqlUser String
+ postgresqlPassword String
+ postgresqlDatabase String
+ postgresqlPublicPort Int?
+ secretKeyBase String?
+ defaultEmail String
+ defaultUsername String
+ defaultPassword String
+ defaultEmailFrom String @default("[email protected]")
+ emailSmtpHost String? @default("domain.tdl")
+ emailSmtpPort Int? @default(25)
+ emailSmtpUser String?
+ emailSmtpPassword String?
+ emailSmtpUseTls Boolean @default(false)
+ emailSmtpUseSsl Boolean @default(false)
+ emailBackend String?
+ mailgunApiKey String?
+ sendgridApiKey String?
+ enableOpenUserRegistration Boolean @default(true)
+ serviceId String @unique
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ service Service @relation(fields: [serviceId], references: [id])
+}
+
+model Searxng {
+ id String @id @default(cuid())
+ secretKey String
+ redisPassword String
+ serviceId String @unique
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ service Service @relation(fields: [serviceId], references: [id])
+}
+
+model Weblate {
+ id String @id @default(cuid())
+ adminPassword String
+ postgresqlHost String
+ postgresqlPort Int
+ postgresqlUser String
+ postgresqlPassword String
+ postgresqlDatabase String
+ postgresqlPublicPort Int?
+ serviceId String @unique
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ service Service @relation(fields: [serviceId], references: [id])
+}
+
+model Taiga {
+ id String @id @default(cuid())
+ secretKey String
+ erlangSecret String
+ djangoAdminPassword String
+ djangoAdminUser String
+ rabbitMQUser String
+ rabbitMQPassword String
+ postgresqlHost String
+ postgresqlPort Int
+ postgresqlUser String
+ postgresqlPassword String
+ postgresqlDatabase String
+ postgresqlPublicPort Int?
+ serviceId String @unique
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ service Service @relation(fields: [serviceId], references: [id])
}
diff --git a/apps/server/prisma/seed.js b/apps/server/prisma/seed.js
new file mode 100644
index 0000000000..3d4b16a288
--- /dev/null
+++ b/apps/server/prisma/seed.js
@@ -0,0 +1,113 @@
+const dotEnvExtended = require('dotenv-extended');
+dotEnvExtended.load();
+const crypto = require('crypto');
+const { PrismaClient } = require('@prisma/client');
+const prisma = new PrismaClient();
+const algorithm = 'aes-256-ctr';
+
+async function main() {
+ // Enable registration for the first user
+ const settingsFound = await prisma.setting.findFirst({});
+ if (!settingsFound) {
+ await prisma.setting.create({
+ data: {
+ id: '0',
+ arch: process.arch,
+ }
+ });
+ } else {
+ await prisma.setting.update({
+ where: {
+ id: settingsFound.id
+ },
+ data: {
+ id: '0'
+ }
+ });
+ }
+ // Create local docker engine
+ const localDocker = await prisma.destinationDocker.findFirst({
+ where: { engine: '/var/run/docker.sock' }
+ });
+ if (!localDocker) {
+ await prisma.destinationDocker.create({
+ data: {
+ engine: '/var/run/docker.sock',
+ name: 'Local Docker',
+ isCoolifyProxyUsed: true,
+ network: 'coolify'
+ }
+ });
+ }
+
+ // Set auto-update based on env variable
+ const isAutoUpdateEnabled = process.env['COOLIFY_AUTO_UPDATE'] === 'true';
+ await prisma.setting.update({
+ where: {
+ id: '0'
+ },
+ data: {
+ isAutoUpdateEnabled
+ }
+ });
+ // Create public github source
+ const github = await prisma.gitSource.findFirst({
+ where: { htmlUrl: 'https://github.com', forPublic: true }
+ });
+ if (!github) {
+ await prisma.gitSource.create({
+ data: {
+ apiUrl: 'https://api.github.com',
+ htmlUrl: 'https://github.com',
+ forPublic: true,
+ name: 'Github Public',
+ type: 'github'
+ }
+ });
+ }
+ // Create public gitlab source
+ const gitlab = await prisma.gitSource.findFirst({
+ where: { htmlUrl: 'https://gitlab.com', forPublic: true }
+ });
+ if (!gitlab) {
+ await prisma.gitSource.create({
+ data: {
+ apiUrl: 'https://gitlab.com/api/v4',
+ htmlUrl: 'https://gitlab.com',
+ forPublic: true,
+ name: 'Gitlab Public',
+ type: 'gitlab'
+ }
+ });
+ }
+ // Set new preview secrets
+ const secrets = await prisma.secret.findMany({ where: { isPRMRSecret: false } })
+ if (secrets.length > 0) {
+ for (const secret of secrets) {
+ const previewSecrets = await prisma.secret.findMany({ where: { applicationId: secret.applicationId, name: secret.name, isPRMRSecret: true } })
+ if (previewSecrets.length === 0) {
+ await prisma.secret.create({ data: { ...secret, id: undefined, isPRMRSecret: true } })
+ }
+ }
+ }
+}
+main()
+ .catch((e) => {
+ console.error(e);
+ process.exit(1);
+ })
+ .finally(async () => {
+ await prisma.$disconnect();
+ });
+
+const encrypt = (text) => {
+ if (text) {
+ const iv = crypto.randomBytes(16);
+ const cipher = crypto.createCipheriv(algorithm, process.env['COOLIFY_SECRET_KEY'], iv);
+ const encrypted = Buffer.concat([cipher.update(text), cipher.final()]);
+ return JSON.stringify({
+ iv: iv.toString('hex'),
+ content: encrypted.toString('hex')
+ });
+ }
+};
\ No newline at end of file
diff --git a/apps/server/src/api/index.ts b/apps/server/src/api/index.ts
new file mode 100644
index 0000000000..b47d8358ce
--- /dev/null
+++ b/apps/server/src/api/index.ts
@@ -0,0 +1,8 @@
+import type { FastifyPluginAsync } from 'fastify';
+
+const root: FastifyPluginAsync = async (fastify): Promise<void> => {
+ fastify.get('/', async function (_request, _reply) {
+ return { status: 'ok' };
+ });
+};
+export default root;
diff --git a/apps/server/src/config/index.ts b/apps/server/src/config.ts
similarity index 65%
rename from apps/server/src/config/index.ts
rename to apps/server/src/config.ts
index 9b139c5bd2..e45c2a4bde 100644
--- a/apps/server/src/config/index.ts
+++ b/apps/server/src/config.ts
@@ -1,4 +1,4 @@
-import type { ServerOptions } from '../server';
+import type { ServerOptions } from './server';
export const serverConfig: ServerOptions = {
dev: false,
diff --git a/apps/server/src/env.js b/apps/server/src/env.js
index cbe1c25db8..f697541108 100644
--- a/apps/server/src/env.js
+++ b/apps/server/src/env.js
@@ -1,9 +1,17 @@
+const dotenv = require('dotenv');
+const isDev = process.env.NODE_ENV === 'development';
+// dotenv.config({ path: isDev ? '../../.env' : '.env' });
+dotenv.config();
const { z } = require('zod');
/*eslint sort-keys: "error"*/
const envSchema = z.object({
+ CODESANDBOX_HOST: z.string().optional(),
NODE_ENV: z.enum(['development', 'test', 'production']),
- COOLIFY_SECRET_KEY: z.string()
+ COOLIFY_DATABASE_URL: z.string(),
+ COOLIFY_SECRET_KEY: z.string().length(32),
+ COOLIFY_WHITE_LABELED: z.string().optional(),
+ COOLIFY_WHITE_LABELED_ICON: z.string().optional()
});
const env = envSchema.safeParse(process.env);
diff --git a/apps/server/src/lib/common.ts b/apps/server/src/lib/common.ts
new file mode 100644
index 0000000000..77b73b2841
--- /dev/null
+++ b/apps/server/src/lib/common.ts
@@ -0,0 +1,111 @@
+import type { Permission, Setting, Team, TeamInvitation, User } from '@prisma/client';
+import { prisma } from '../prisma';
+import bcrypt from 'bcryptjs';
+import crypto from 'crypto';
+import fs from 'fs/promises';
+import { uniqueNamesGenerator, adjectives, colors, animals } from 'unique-names-generator';
+import type { Config } from 'unique-names-generator';
+import { env } from '../env';
+import { day } from './dayjs';
+
+const customConfig: Config = {
+ dictionaries: [adjectives, colors, animals],
+ style: 'capital',
+ separator: ' ',
+ length: 3
+};
+const algorithm = 'aes-256-ctr';
+export const isDev = env.NODE_ENV === 'development';
+export const version = '3.13.0';
+export const sentryDSN =
+ 'https://[email protected]/4504236622217216';
+
+export async function listSettings(): Promise<Setting | null> {
+ return await prisma.setting.findUnique({ where: { id: '0' } });
+}
+export async function getCurrentUser(
+ userId: string
+): Promise<(User & { permission: Permission[]; teams: Team[] }) | null> {
+ return await prisma.user.findUnique({
+ where: { id: userId },
+ include: { teams: true, permission: true }
+ });
+}
+export async function getTeamInvitation(userId: string): Promise<TeamInvitation[]> {
+ return await prisma.teamInvitation.findMany({ where: { uid: userId } });
+}
+
+export async function hashPassword(password: string): Promise<string> {
+ const saltRounds = 15;
+ return bcrypt.hash(password, saltRounds);
+}
+export async function comparePassword(password: string, hashedPassword: string): Promise<boolean> {
+ return bcrypt.compare(password, hashedPassword);
+}
+export const uniqueName = (): string => uniqueNamesGenerator(customConfig);
+
+export const decrypt = (hashString: string) => {
+ if (hashString) {
+ try {
+ const hash = JSON.parse(hashString);
+ const decipher = crypto.createDecipheriv(
+ algorithm,
+ env.COOLIFY_SECRET_KEY,
+ Buffer.from(hash.iv, 'hex')
+ );
+ const decrpyted = Buffer.concat([
+ decipher.update(Buffer.from(hash.content, 'hex')),
+ decipher.final()
+ ]);
+ return decrpyted.toString();
+ } catch (error) {
+ if (error instanceof Error) {
+ console.log({ decryptionError: error.message });
+ }
+ return hashString;
+ }
+ }
+ return false;
+};
+
+export function generateRangeArray(start, end) {
+ return Array.from({ length: end - start }, (v, k) => k + start);
+}
+export function generateTimestamp(): string {
+ return `${day().format('HH:mm:ss.SSS')}`;
+}
+export const encrypt = (text: string) => {
+ if (text) {
+ const iv = crypto.randomBytes(16);
+ const cipher = crypto.createCipheriv(algorithm, env.COOLIFY_SECRET_KEY, iv);
+ const encrypted = Buffer.concat([cipher.update(text.trim()), cipher.final()]);
+ return JSON.stringify({
+ iv: iv.toString('hex'),
+ content: encrypted.toString('hex')
+ });
+ }
+ return false;
+};
+
+export async function getTemplates() {
+ const templatePath = isDev ? './templates.json' : '/app/templates.json';
+ const open = await fs.open(templatePath, 'r');
+ try {
+ let data = await open.readFile({ encoding: 'utf-8' });
+ let jsonData = JSON.parse(data);
+ if (isARM(process.arch)) {
+ jsonData = jsonData.filter((d) => d.arch !== 'amd64');
+ }
+ return jsonData;
+ } catch (error) {
+ return [];
+ } finally {
+ await open?.close();
+ }
+}
+export function isARM(arch: string) {
+ if (arch === 'arm' || arch === 'arm64' || arch === 'aarch' || arch === 'aarch64') {
+ return true;
+ }
+ return false;
+}
diff --git a/apps/server/src/lib/dayjs.ts b/apps/server/src/lib/dayjs.ts
new file mode 100644
index 0000000000..9ff5b0a1a0
--- /dev/null
+++ b/apps/server/src/lib/dayjs.ts
@@ -0,0 +1,7 @@
+import dayjs from 'dayjs';
+import utc from 'dayjs/plugin/utc.js';
+import relativeTime from 'dayjs/plugin/relativeTime.js';
+dayjs.extend(utc);
+dayjs.extend(relativeTime);
+
+export { dayjs as day };
diff --git a/apps/server/src/lib/docker.ts b/apps/server/src/lib/docker.ts
new file mode 100644
index 0000000000..27bf380a3d
--- /dev/null
+++ b/apps/server/src/lib/docker.ts
@@ -0,0 +1,47 @@
+import { executeCommand } from "./executeCommand";
+
+export async function checkContainer({ dockerId, container, remove = false }: { dockerId: string, container: string, remove?: boolean }): Promise<{ found: boolean, status?: { isExited: boolean, isRunning: boolean, isRestarting: boolean } }> {
+ let containerFound = false;
+ try {
+ const { stdout } = await executeCommand({
+ dockerId,
+ command:
+ `docker inspect --format '{{json .State}}' ${container}`
+ });
+ containerFound = true
+ const parsedStdout = JSON.parse(stdout);
+ const status = parsedStdout.Status;
+ const isRunning = status === 'running';
+ const isRestarting = status === 'restarting'
+ const isExited = status === 'exited'
+ if (status === 'created') {
+ await executeCommand({
+ dockerId,
+ command:
+ `docker rm ${container}`
+ });
+ }
+ if (remove && status === 'exited') {
+ await executeCommand({
+ dockerId,
+ command:
+ `docker rm ${container}`
+ });
+ }
+
+ return {
+ found: containerFound,
+ status: {
+ isRunning,
+ isRestarting,
+ isExited
+ }
+ };
+ } catch (err) {
+ // Container not found
+ }
+ return {
+ found: false
+ };
+
+}
\ No newline at end of file
diff --git a/apps/server/src/lib/executeCommand.ts b/apps/server/src/lib/executeCommand.ts
new file mode 100644
index 0000000000..198c4046cc
--- /dev/null
+++ b/apps/server/src/lib/executeCommand.ts
@@ -0,0 +1,188 @@
+import { prisma } from '../prisma';
+import os from 'os';
+import fs from 'fs/promises';
+import type { ExecaChildProcess } from 'execa';
+import sshConfig from 'ssh-config';
+
+import { getFreeSSHLocalPort } from './ssh';
+import { env } from '../env';
+import { saveBuildLog } from './logging';
+import { decrypt } from './common';
+
+export async function executeCommand({
+ command,
+ dockerId = null,
+ sshCommand = false,
+ shell = false,
+ stream = false,
+ buildId,
+ applicationId,
+ debug
+}: {
+ command: string;
+ sshCommand?: boolean;
+ shell?: boolean;
+ stream?: boolean;
+ dockerId?: string;
+ buildId?: string;
+ applicationId?: string;
+ debug?: boolean;
+}): Promise<ExecaChildProcess<string>> {
+ const { execa, execaCommand } = await import('execa');
+ const { parse } = await import('shell-quote');
+ const parsedCommand = parse(command);
+ const dockerCommand = parsedCommand[0];
+ const dockerArgs = parsedCommand.slice(1);
+
+ if (dockerId) {
+ const destinationDocker = await prisma.destinationDocker.findUnique({
+ where: { id: dockerId }
+ });
+ if (!destinationDocker) {
+ throw new Error('Destination docker not found');
+ }
+ let { remoteEngine, remoteIpAddress, engine } = destinationDocker;
+ if (remoteEngine) {
+ await createRemoteEngineConfiguration(dockerId);
+ engine = `ssh://${remoteIpAddress}-remote`;
+ } else {
+ engine = 'unix:///var/run/docker.sock';
+ }
+ if (env.CODESANDBOX_HOST) {
+ if (command.startsWith('docker compose')) {
+ command = command.replace(/docker compose/gi, 'docker-compose');
+ }
+ }
+ if (sshCommand) {
+ if (shell) {
+ return execaCommand(`ssh ${remoteIpAddress}-remote ${command}`);
+ }
+ return await execa('ssh', [`${remoteIpAddress}-remote`, dockerCommand, ...dockerArgs]);
+ }
+ if (stream) {
+ return await new Promise(async (resolve, reject) => {
+ let subprocess = null;
+ if (shell) {
+ subprocess = execaCommand(command, {
+ env: { DOCKER_BUILDKIT: '1', DOCKER_HOST: engine }
+ });
+ } else {
+ subprocess = execa(dockerCommand, dockerArgs, {
+ env: { DOCKER_BUILDKIT: '1', DOCKER_HOST: engine }
+ });
+ }
+ const logs: any[] = [];
+ if (subprocess && subprocess.stdout && subprocess.stderr) {
+ subprocess.stdout.on('data', async (data) => {
+ const stdout = data.toString();
+ const array = stdout.split('\n');
+ for (const line of array) {
+ if (line !== '\n' && line !== '') {
+ const log = {
+ line: `${line.replace('\n', '')}`,
+ buildId,
+ applicationId
+ };
+ logs.push(log);
+ if (debug) {
+ await saveBuildLog(log);
+ }
+ }
+ }
+ });
+ subprocess.stderr.on('data', async (data) => {
+ const stderr = data.toString();
+ const array = stderr.split('\n');
+ for (const line of array) {
+ if (line !== '\n' && line !== '') {
+ const log = {
+ line: `${line.replace('\n', '')}`,
+ buildId,
+ applicationId
+ };
+ logs.push(log);
+ if (debug) {
+ await saveBuildLog(log);
+ }
+ }
+ }
+ });
+ subprocess.on('exit', async (code) => {
+ if (code === 0) {
+ resolve('success');
+ } else {
+ if (!debug) {
+ for (const log of logs) {
+ await saveBuildLog(log);
+ }
+ }
+ reject(code);
+ }
+ });
+ }
+ });
+ } else {
+ if (shell) {
+ return await execaCommand(command, {
+ env: { DOCKER_BUILDKIT: '1', DOCKER_HOST: engine }
+ });
+ } else {
+ return await execa(dockerCommand, dockerArgs, {
+ env: { DOCKER_BUILDKIT: '1', DOCKER_HOST: engine }
+ });
+ }
+ }
+ } else {
+ if (shell) {
+ return execaCommand(command, { shell: true });
+ }
+ return await execa(dockerCommand, dockerArgs);
+ }
+}
+
+export async function createRemoteEngineConfiguration(id: string) {
+ const homedir = os.homedir();
+ const sshKeyFile = `/tmp/id_rsa-${id}`;
+ const localPort = await getFreeSSHLocalPort(id);
+ const {
+ sshKey: { privateKey },
+ network,
+ remoteIpAddress,
+ remotePort,
+ remoteUser
+ } = await prisma.destinationDocker.findFirst({ where: { id }, include: { sshKey: true } });
+ await fs.writeFile(sshKeyFile, decrypt(privateKey) + '\n', { encoding: 'utf8', mode: 400 });
+ const config = sshConfig.parse('');
+ const Host = `${remoteIpAddress}-remote`;
+
+ try {
+ await executeCommand({ command: `ssh-keygen -R ${Host}` });
+ await executeCommand({ command: `ssh-keygen -R ${remoteIpAddress}` });
+ await executeCommand({ command: `ssh-keygen -R localhost:${localPort}` });
+ } catch (error) {}
+
+ const found = config.find({ Host });
+ const foundIp = config.find({ Host: remoteIpAddress });
+
+ if (found) config.remove({ Host });
+ if (foundIp) config.remove({ Host: remoteIpAddress });
+
+ config.append({
+ Host,
+ Hostname: remoteIpAddress,
+ Port: remotePort.toString(),
+ User: remoteUser,
+ StrictHostKeyChecking: 'no',
+ IdentityFile: sshKeyFile,
+ ControlMaster: 'auto',
+ ControlPath: `${homedir}/.ssh/coolify-${remoteIpAddress}-%r@%h:%p`,
+ ControlPersist: '10m'
+ });
+
+ try {
+ await fs.stat(`${homedir}/.ssh/`);
+ } catch (error) {
+ await fs.mkdir(`${homedir}/.ssh/`);
+ }
+ return await fs.writeFile(`${homedir}/.ssh/config`, sshConfig.stringify(config));
+}
diff --git a/apps/server/src/lib/logging.ts b/apps/server/src/lib/logging.ts
new file mode 100644
index 0000000000..c8f4604027
--- /dev/null
+++ b/apps/server/src/lib/logging.ts
@@ -0,0 +1,50 @@
+import { prisma } from '../prisma';
+import { encrypt, generateTimestamp, isDev } from './common';
+import { day } from './dayjs';
+
+export const saveBuildLog = async ({
+ line,
+ buildId,
+ applicationId
+}: {
+ line: string;
+ buildId: string;
+ applicationId: string;
+}): Promise<any> => {
+ if (buildId === 'undefined' || buildId === 'null' || !buildId) return;
+ if (applicationId === 'undefined' || applicationId === 'null' || !applicationId) return;
+ const { default: got } = await import('got');
+ if (typeof line === 'object' && line) {
+ if (line.shortMessage) {
+ line = line.shortMessage + '\n' + line.stderr;
+ } else {
+ line = JSON.stringify(line);
+ }
+ }
+ if (line && typeof line === 'string' && line.includes('ghs_')) {
+ const regex = /ghs_.*@/g;
+ line = line.replace(regex, '<SENSITIVE_DATA_DELETED>@');
+ }
+ const addTimestamp = `[${generateTimestamp()}] ${line}`;
+ const fluentBitUrl = isDev ? 'http://localhost:24224' : 'http://coolify-fluentbit:24224';
+
+ if (isDev) {
+ console.debug(`[${applicationId}] ${addTimestamp}`);
+ }
+ try {
+ return await got.post(`${fluentBitUrl}/${applicationId}_buildlog_${buildId}.csv`, {
+ json: {
+ line: encrypt(line)
+ }
+ });
+ } catch (error) {
+ return await prisma.buildLog.create({
+ data: {
+ line: addTimestamp,
+ buildId,
+ time: Number(day().valueOf()),
+ applicationId
+ }
+ });
+ }
+};
diff --git a/apps/server/src/lib/ssh.ts b/apps/server/src/lib/ssh.ts
new file mode 100644
index 0000000000..77cbf73071
--- /dev/null
+++ b/apps/server/src/lib/ssh.ts
@@ -0,0 +1,47 @@
+import { prisma } from '../prisma';
+import { generateRangeArray } from './common';
+
+export async function getFreeSSHLocalPort(id: string): Promise<number | boolean> {
+ const { default: isReachable } = await import('is-port-reachable');
+ const { remoteIpAddress, sshLocalPort } = await prisma.destinationDocker.findUnique({
+ where: { id }
+ });
+ if (sshLocalPort) {
+ return Number(sshLocalPort);
+ }
+
+ const data = await prisma.setting.findFirst();
+ const { minPort, maxPort } = data;
+
+ const ports = await prisma.destinationDocker.findMany({
+ where: { sshLocalPort: { not: null }, remoteIpAddress: { not: remoteIpAddress } }
+ });
+
+ const alreadyConfigured = await prisma.destinationDocker.findFirst({
+ where: {
+ remoteIpAddress,
+ id: { not: id },
+ sshLocalPort: { not: null }
+ }
+ });
+ if (alreadyConfigured?.sshLocalPort) {
+ await prisma.destinationDocker.update({
+ where: { id },
+ data: { sshLocalPort: alreadyConfigured.sshLocalPort }
+ });
+ return Number(alreadyConfigured.sshLocalPort);
+ }
+ const range = generateRangeArray(minPort, maxPort);
+ const availablePorts = range.filter((port) => !ports.map((p) => p.sshLocalPort).includes(port));
+ for (const port of availablePorts) {
+ const found = await isReachable(port, { host: 'localhost' });
+ if (!found) {
+ await prisma.destinationDocker.update({
+ where: { id },
+ data: { sshLocalPort: Number(port) }
+ });
+ return Number(port);
+ }
+ }
+ return false;
+}
diff --git a/apps/server/src/prisma.ts b/apps/server/src/prisma.ts
index a384c202c5..e315eae42b 100644
--- a/apps/server/src/prisma.ts
+++ b/apps/server/src/prisma.ts
@@ -6,16 +6,15 @@ import { env } from './env';
import { PrismaClient } from '@prisma/client';
const prismaGlobal = global as typeof global & {
- prisma?: PrismaClient;
+ prisma?: PrismaClient;
};
export const prisma: PrismaClient =
- prismaGlobal.prisma ||
- new PrismaClient({
- log:
- env.NODE_ENV === 'development' ? ['query', 'error', 'warn'] : ['error'],
- });
+ prismaGlobal.prisma ||
+ new PrismaClient({
+ log: env.NODE_ENV === 'developments' ? ['query', 'error', 'warn'] : ['error']
+ });
if (env.NODE_ENV !== 'production') {
- prismaGlobal.prisma = prisma;
-}
\ No newline at end of file
+ prismaGlobal.prisma = prisma;
+}
diff --git a/apps/server/src/router/index.ts b/apps/server/src/router/index.ts
deleted file mode 100644
index cf362f41d0..0000000000
--- a/apps/server/src/router/index.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-import { apiRouter } from './routers/api';
-import { router } from './trpc';
-
-export const appRouter = router({
- api: apiRouter,
-});
-
-export type AppRouter = typeof appRouter;
diff --git a/apps/server/src/router/routers/api.ts b/apps/server/src/router/routers/api.ts
deleted file mode 100644
index 685e0339ab..0000000000
--- a/apps/server/src/router/routers/api.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-// import { z } from 'zod';
-import { publicProcedure, router } from '../trpc';
-// import { prisma } from '../../prisma';
-import { TRPCError } from '@trpc/server';
-
-export const apiRouter = router({
- getConnection: publicProcedure.query(async () => {
- try {
- return { success: true };
- } catch (error) {
- throw new TRPCError({
- code: 'INTERNAL_SERVER_ERROR',
- message: 'An unexpected error occurred, please try again later.',
- cause: error
- });
- }
- })
-});
diff --git a/apps/server/src/router/trpc.ts b/apps/server/src/router/trpc.ts
deleted file mode 100644
index 5b71870bc6..0000000000
--- a/apps/server/src/router/trpc.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-import { initTRPC } from '@trpc/server';
-import superjson from 'superjson';
-import { Context } from './context';
-
-const t = initTRPC.context<Context>().create({
- transformer: superjson,
- errorFormatter({ shape }) {
- return shape;
- },
-});
-
-export const router = t.router;
-export const publicProcedure = t.procedure;
diff --git a/apps/server/src/server.ts b/apps/server/src/server.ts
index 02a80dba87..9a8748fe34 100644
--- a/apps/server/src/server.ts
+++ b/apps/server/src/server.ts
@@ -1,10 +1,11 @@
import { fastifyTRPCPlugin } from '@trpc/server/adapters/fastify';
import fastify from 'fastify';
-import { appRouter } from './router';
-import { createContext } from './router/context';
+import { appRouter } from './trpc';
+import { createContext } from './trpc/context';
import cors from '@fastify/cors';
import * as path from 'node:path';
import serve from '@fastify/static';
+import autoLoad from '@fastify/autoload';
// import { prisma } from './prisma';
const isDev = process.env['NODE_ENV'] === 'development';
@@ -23,7 +24,16 @@ export function createServer(opts: ServerOptions) {
server.register(cors);
server.register(fastifyTRPCPlugin, {
prefix,
- trpcOptions: { router: appRouter, createContext }
+ trpcOptions: {
+ router: appRouter,
+ createContext,
+ onError({ error, type, path, input, ctx, req }) {
+ console.error('Error:', error);
+ if (error.code === 'INTERNAL_SERVER_ERROR') {
+ // send to bug reporting
+ }
+ }
+ }
});
// Serve static files in production. Static files are generated by `yarn build` in the client folder by SvelteKit.
if (!isDev) {
@@ -40,14 +50,16 @@ export function createServer(opts: ServerOptions) {
return reply.status(200).sendFile('index.html');
});
}
- server.get('/api', async () => {
- return { status: 'ok' };
+ server.register(autoLoad, {
+ dir: path.join(__dirname, 'api'),
+ options: { prefix: '/api' }
});
+
const stop = () => server.close();
const start = async () => {
try {
await server.listen({ host: '0.0.0.0', port });
- console.log('Server is listening on port', port);
+ console.log('Coolify server is listening on port', port, 'at 0.0.0.0 🚀');
} catch (err) {
server.log.error(err);
process.exit(1);
diff --git a/apps/server/src/router/context.ts b/apps/server/src/trpc/context.ts
similarity index 56%
rename from apps/server/src/router/context.ts
rename to apps/server/src/trpc/context.ts
index bba7c2749a..8c7631f8d4 100644
--- a/apps/server/src/router/context.ts
+++ b/apps/server/src/trpc/context.ts
@@ -3,17 +3,20 @@ import { CreateFastifyContextOptions } from '@trpc/server/adapters/fastify';
import jwt from 'jsonwebtoken';
import { env } from '../env';
export interface User {
- name: string | string[];
+ userId: string;
+ teamId: string;
+ permission: string;
+ isAdmin: boolean;
+ iat: number;
}
-export function createContext({ req, res }: CreateFastifyContextOptions) {
+export function createContext({ req }: CreateFastifyContextOptions) {
const token = req.headers.authorization;
+ let user: User | null = null;
if (token) {
- const user = jwt.verify(token, env.COOLIFY_SECRET_KEY);
-
- console.log(user);
+ user = jwt.verify(token, env.COOLIFY_SECRET_KEY) as User;
}
- return { req, res };
+ return { user };
}
export type Context = inferAsyncReturnType<typeof createContext>;
diff --git a/apps/server/src/trpc/index.ts b/apps/server/src/trpc/index.ts
new file mode 100644
index 0000000000..4eddbb7850
--- /dev/null
+++ b/apps/server/src/trpc/index.ts
@@ -0,0 +1,21 @@
+import { router } from './trpc';
+import type { Permission } from '@prisma/client';
+
+import {
+ settingsRouter,
+ authRouter,
+ dashboardRouter,
+ applicationsRouter,
+ servicesRouter
+} from './routers';
+
+export const appRouter = router({
+ settings: settingsRouter,
+ auth: authRouter,
+ dashboard: dashboardRouter,
+ applications: applicationsRouter,
+ services: servicesRouter
+});
+
+export type AppRouter = typeof appRouter;
+export type PrismaPermission = Permission;
diff --git a/apps/server/src/trpc/routers/applications.ts b/apps/server/src/trpc/routers/applications.ts
new file mode 100644
index 0000000000..3a37d70e86
--- /dev/null
+++ b/apps/server/src/trpc/routers/applications.ts
@@ -0,0 +1,525 @@
+import { z } from 'zod';
+import { privateProcedure, router } from '../trpc';
+import { decrypt, isARM, listSettings } from '../../lib/common';
+import { prisma } from '../../prisma';
+import { executeCommand } from '../../lib/executeCommand';
+import { checkContainer } from '../../lib/docker';
+
+export const applicationsRouter = router({
+ status: privateProcedure
+ .input(
+ z.object({
+ id: z.string()
+ })
+ )
+ .query(async ({ ctx, input }) => {
+ const id = input.id;
+ const teamId = ctx.user?.teamId;
+ if (!teamId) {
+ throw { status: 400, message: 'Team not found.' };
+ }
+ let payload = [];
+ const application: any = await getApplicationFromDB(id, teamId);
+ if (application?.destinationDockerId) {
+ if (application.buildPack === 'compose') {
+ const { stdout: containers } = await executeCommand({
+ dockerId: application.destinationDocker.id,
+ command: `docker ps -a --filter "label=coolify.applicationId=${id}" --format '{{json .}}'`
+ });
+ const containersArray = containers.trim().split('\n');
+ if (containersArray.length > 0 && containersArray[0] !== '') {
+ for (const container of containersArray) {
+ let isRunning = false;
+ let isExited = false;
+ let isRestarting = false;
+ const containerObj = JSON.parse(container);
+ const status = containerObj.State;
+ if (status === 'running') {
+ isRunning = true;
+ }
+ if (status === 'exited') {
+ isExited = true;
+ }
+ if (status === 'restarting') {
+ isRestarting = true;
+ }
+ payload.push({
+ name: containerObj.Names,
+ status: {
+ isRunning,
+ isExited,
+ isRestarting
+ }
+ });
+ }
+ }
+ } else {
+ let isRunning = false;
+ let isExited = false;
+ let isRestarting = false;
+ const status = await checkContainer({
+ dockerId: application.destinationDocker.id,
+ container: id
+ });
+ if (status?.found) {
+ isRunning = status.status.isRunning;
+ isExited = status.status.isExited;
+ isRestarting = status.status.isRestarting;
+ payload.push({
+ name: id,
+ status: {
+ isRunning,
+ isExited,
+ isRestarting
+ }
+ });
+ }
+ }
+ }
+ return payload;
+ })
+});
+
+export async function getApplicationFromDB(id: string, teamId: string) {
+ let application = await prisma.application.findFirst({
+ where: { id, teams: { some: { id: teamId === '0' ? undefined : teamId } } },
+ include: {
+ destinationDocker: true,
+ settings: true,
+ gitSource: { include: { githubApp: true, gitlabApp: true } },
+ secrets: true,
+ persistentStorage: true,
+ connectedDatabase: true,
+ previewApplication: true,
+ dockerRegistry: true
+ }
+ });
+ if (!application) {
+ throw { status: 404, message: 'Application not found.' };
+ }
+ application = decryptApplication(application);
+ const buildPack = application?.buildPack || null;
+ const { baseImage, baseBuildImage, baseBuildImages, baseImages } = setDefaultBaseImage(buildPack);
+
+ // Set default build images
+ if (application && !application.baseImage) {
+ application.baseImage = baseImage;
+ }
+ if (application && !application.baseBuildImage) {
+ application.baseBuildImage = baseBuildImage;
+ }
+ return { ...application, baseBuildImages, baseImages };
+}
+function decryptApplication(application: any) {
+ if (application) {
+ if (application?.gitSource?.githubApp?.clientSecret) {
+ application.gitSource.githubApp.clientSecret =
+ decrypt(application.gitSource.githubApp.clientSecret) || null;
+ }
+ if (application?.gitSource?.githubApp?.webhookSecret) {
+ application.gitSource.githubApp.webhookSecret =
+ decrypt(application.gitSource.githubApp.webhookSecret) || null;
+ }
+ if (application?.gitSource?.githubApp?.privateKey) {
+ application.gitSource.githubApp.privateKey =
+ decrypt(application.gitSource.githubApp.privateKey) || null;
+ }
+ if (application?.gitSource?.gitlabApp?.appSecret) {
+ application.gitSource.gitlabApp.appSecret =
+ decrypt(application.gitSource.gitlabApp.appSecret) || null;
+ }
+ if (application?.secrets.length > 0) {
+ application.secrets = application.secrets.map((s: any) => {
+ s.value = decrypt(s.value) || null;
+ return s;
+ });
+ }
+
+ return application;
+ }
+}
+
+const staticApps = ['static', 'react', 'vuejs', 'svelte', 'gatsby', 'astro', 'eleventy'];
+const nodeBased = [
+ 'react',
+ 'preact',
+ 'vuejs',
+ 'svelte',
+ 'gatsby',
+ 'astro',
+ 'eleventy',
+ 'node',
+ 'nestjs',
+ 'nuxtjs',
+ 'nextjs'
+];
+export function setDefaultBaseImage(
+ buildPack: string | null,
+ deploymentType: string | null = null
+) {
+ const nodeVersions = [
+ {
+ value: 'node:lts',
+ label: 'node:lts'
+ },
+ {
+ value: 'node:18',
+ label: 'node:18'
+ },
+ {
+ value: 'node:17',
+ label: 'node:17'
+ },
+ {
+ value: 'node:16',
+ label: 'node:16'
+ },
+ {
+ value: 'node:14',
+ label: 'node:14'
+ },
+ {
+ value: 'node:12',
+ label: 'node:12'
+ }
+ ];
+ const staticVersions = [
+ {
+ value: 'webdevops/nginx:alpine',
+ label: 'webdevops/nginx:alpine'
+ },
+ {
+ value: 'webdevops/apache:alpine',
+ label: 'webdevops/apache:alpine'
+ },
+ {
+ value: 'nginx:alpine',
+ label: 'nginx:alpine'
+ },
+ {
+ value: 'httpd:alpine',
+ label: 'httpd:alpine (Apache)'
+ }
+ ];
+ const rustVersions = [
+ {
+ value: 'rust:latest',
+ label: 'rust:latest'
+ },
+ {
+ value: 'rust:1.60',
+ label: 'rust:1.60'
+ },
+ {
+ value: 'rust:1.60-buster',
+ label: 'rust:1.60-buster'
+ },
+ {
+ value: 'rust:1.60-bullseye',
+ label: 'rust:1.60-bullseye'
+ },
+ {
+ value: 'rust:1.60-slim-buster',
+ label: 'rust:1.60-slim-buster'
+ },
+ {
+ value: 'rust:1.60-slim-bullseye',
+ label: 'rust:1.60-slim-bullseye'
+ },
+ {
+ value: 'rust:1.60-alpine3.14',
+ label: 'rust:1.60-alpine3.14'
+ },
+ {
+ value: 'rust:1.60-alpine3.15',
+ label: 'rust:1.60-alpine3.15'
+ }
+ ];
+ const phpVersions = [
+ {
+ value: 'webdevops/php-apache:8.2',
+ label: 'webdevops/php-apache:8.2'
+ },
+ {
+ value: 'webdevops/php-nginx:8.2',
+ label: 'webdevops/php-nginx:8.2'
+ },
+ {
+ value: 'webdevops/php-apache:8.1',
+ label: 'webdevops/php-apache:8.1'
+ },
+ {
+ value: 'webdevops/php-nginx:8.1',
+ label: 'webdevops/php-nginx:8.1'
+ },
+ {
+ value: 'webdevops/php-apache:8.0',
+ label: 'webdevops/php-apache:8.0'
+ },
+ {
+ value: 'webdevops/php-nginx:8.0',
+ label: 'webdevops/php-nginx:8.0'
+ },
+ {
+ value: 'webdevops/php-apache:7.4',
+ label: 'webdevops/php-apache:7.4'
+ },
+ {
+ value: 'webdevops/php-nginx:7.4',
+ label: 'webdevops/php-nginx:7.4'
+ },
+ {
+ value: 'webdevops/php-apache:7.3',
+ label: 'webdevops/php-apache:7.3'
+ },
+ {
+ value: 'webdevops/php-nginx:7.3',
+ label: 'webdevops/php-nginx:7.3'
+ },
+ {
+ value: 'webdevops/php-apache:7.2',
+ label: 'webdevops/php-apache:7.2'
+ },
+ {
+ value: 'webdevops/php-nginx:7.2',
+ label: 'webdevops/php-nginx:7.2'
+ },
+ {
+ value: 'webdevops/php-apache:7.1',
+ label: 'webdevops/php-apache:7.1'
+ },
+ {
+ value: 'webdevops/php-nginx:7.1',
+ label: 'webdevops/php-nginx:7.1'
+ },
+ {
+ value: 'webdevops/php-apache:7.0',
+ label: 'webdevops/php-apache:7.0'
+ },
+ {
+ value: 'webdevops/php-nginx:7.0',
+ label: 'webdevops/php-nginx:7.0'
+ },
+ {
+ value: 'webdevops/php-apache:5.6',
+ label: 'webdevops/php-apache:5.6'
+ },
+ {
+ value: 'webdevops/php-nginx:5.6',
+ label: 'webdevops/php-nginx:5.6'
+ },
+ {
+ value: 'webdevops/php-apache:8.2-alpine',
+ label: 'webdevops/php-apache:8.2-alpine'
+ },
+ {
+ value: 'webdevops/php-nginx:8.2-alpine',
+ label: 'webdevops/php-nginx:8.2-alpine'
+ },
+ {
+ value: 'webdevops/php-apache:8.1-alpine',
+ label: 'webdevops/php-apache:8.1-alpine'
+ },
+ {
+ value: 'webdevops/php-nginx:8.1-alpine',
+ label: 'webdevops/php-nginx:8.1-alpine'
+ },
+ {
+ value: 'webdevops/php-apache:8.0-alpine',
+ label: 'webdevops/php-apache:8.0-alpine'
+ },
+ {
+ value: 'webdevops/php-nginx:8.0-alpine',
+ label: 'webdevops/php-nginx:8.0-alpine'
+ },
+ {
+ value: 'webdevops/php-apache:7.4-alpine',
+ label: 'webdevops/php-apache:7.4-alpine'
+ },
+ {
+ value: 'webdevops/php-nginx:7.4-alpine',
+ label: 'webdevops/php-nginx:7.4-alpine'
+ },
+ {
+ value: 'webdevops/php-apache:7.3-alpine',
+ label: 'webdevops/php-apache:7.3-alpine'
+ },
+ {
+ value: 'webdevops/php-nginx:7.3-alpine',
+ label: 'webdevops/php-nginx:7.3-alpine'
+ },
+ {
+ value: 'webdevops/php-apache:7.2-alpine',
+ label: 'webdevops/php-apache:7.2-alpine'
+ },
+ {
+ value: 'webdevops/php-nginx:7.2-alpine',
+ label: 'webdevops/php-nginx:7.2-alpine'
+ },
+ {
+ value: 'webdevops/php-apache:7.1-alpine',
+ label: 'webdevops/php-apache:7.1-alpine'
+ },
+ {
+ value: 'php:8.1-fpm',
+ label: 'php:8.1-fpm'
+ },
+ {
+ value: 'php:8.0-fpm',
+ label: 'php:8.0-fpm'
+ },
+ {
+ value: 'php:8.1-fpm-alpine',
+ label: 'php:8.1-fpm-alpine'
+ },
+ {
+ value: 'php:8.0-fpm-alpine',
+ label: 'php:8.0-fpm-alpine'
+ }
+ ];
+ const pythonVersions = [
+ {
+ value: 'python:3.10-alpine',
+ label: 'python:3.10-alpine'
+ },
+ {
+ value: 'python:3.10-buster',
+ label: 'python:3.10-buster'
+ },
+ {
+ value: 'python:3.10-bullseye',
+ label: 'python:3.10-bullseye'
+ },
+ {
+ value: 'python:3.10-slim-bullseye',
+ label: 'python:3.10-slim-bullseye'
+ },
+ {
+ value: 'python:3.9-alpine',
+ label: 'python:3.9-alpine'
+ },
+ {
+ value: 'python:3.9-buster',
+ label: 'python:3.9-buster'
+ },
+ {
+ value: 'python:3.9-bullseye',
+ label: 'python:3.9-bullseye'
+ },
+ {
+ value: 'python:3.9-slim-bullseye',
+ label: 'python:3.9-slim-bullseye'
+ },
+ {
+ value: 'python:3.8-alpine',
+ label: 'python:3.8-alpine'
+ },
+ {
+ value: 'python:3.8-buster',
+ label: 'python:3.8-buster'
+ },
+ {
+ value: 'python:3.8-bullseye',
+ label: 'python:3.8-bullseye'
+ },
+ {
+ value: 'python:3.8-slim-bullseye',
+ label: 'python:3.8-slim-bullseye'
+ },
+ {
+ value: 'python:3.7-alpine',
+ label: 'python:3.7-alpine'
+ },
+ {
+ value: 'python:3.7-buster',
+ label: 'python:3.7-buster'
+ },
+ {
+ value: 'python:3.7-bullseye',
+ label: 'python:3.7-bullseye'
+ },
+ {
+ value: 'python:3.7-slim-bullseye',
+ label: 'python:3.7-slim-bullseye'
+ }
+ ];
+ const herokuVersions = [
+ {
+ value: 'heroku/builder:22',
+ label: 'heroku/builder:22'
+ },
+ {
+ value: 'heroku/buildpacks:20',
+ label: 'heroku/buildpacks:20'
+ },
+ {
+ value: 'heroku/builder-classic:22',
+ label: 'heroku/builder-classic:22'
+ }
+ ];
+ let payload: any = {
+ baseImage: null,
+ baseBuildImage: null,
+ baseImages: [],
+ baseBuildImages: []
+ };
+ if (nodeBased.includes(buildPack)) {
+ if (deploymentType === 'static') {
+ payload.baseImage = isARM(process.arch) ? 'nginx:alpine' : 'webdevops/nginx:alpine';
+ payload.baseImages = isARM(process.arch)
+ ? staticVersions.filter((version) => !version.value.includes('webdevops'))
+ : staticVersions;
+ payload.baseBuildImage = 'node:lts';
+ payload.baseBuildImages = nodeVersions;
+ } else {
+ payload.baseImage = 'node:lts';
+ payload.baseImages = nodeVersions;
+ payload.baseBuildImage = 'node:lts';
+ payload.baseBuildImages = nodeVersions;
+ }
+ }
+ if (staticApps.includes(buildPack)) {
+ payload.baseImage = isARM(process.arch) ? 'nginx:alpine' : 'webdevops/nginx:alpine';
+ payload.baseImages = isARM(process.arch)
+ ? staticVersions.filter((version) => !version.value.includes('webdevops'))
+ : staticVersions;
+ payload.baseBuildImage = 'node:lts';
+ payload.baseBuildImages = nodeVersions;
+ }
+ if (buildPack === 'python') {
+ payload.baseImage = 'python:3.10-alpine';
+ payload.baseImages = pythonVersions;
+ }
+ if (buildPack === 'rust') {
+ payload.baseImage = 'rust:latest';
+ payload.baseBuildImage = 'rust:latest';
+ payload.baseImages = rustVersions;
+ payload.baseBuildImages = rustVersions;
+ }
+ if (buildPack === 'deno') {
+ payload.baseImage = 'denoland/deno:latest';
+ }
+ if (buildPack === 'php') {
+ payload.baseImage = isARM(process.arch)
+ ? 'php:8.1-fpm-alpine'
+ : 'webdevops/php-apache:8.2-alpine';
+ payload.baseImages = isARM(process.arch)
+ ? phpVersions.filter((version) => !version.value.includes('webdevops'))
+ : phpVersions;
+ }
+ if (buildPack === 'laravel') {
+ payload.baseImage = isARM(process.arch)
+ ? 'php:8.1-fpm-alpine'
+ : 'webdevops/php-apache:8.2-alpine';
+ payload.baseImages = isARM(process.arch)
+ ? phpVersions.filter((version) => !version.value.includes('webdevops'))
+ : phpVersions;
+ payload.baseBuildImage = 'node:18';
+ payload.baseBuildImages = nodeVersions;
+ }
+ if (buildPack === 'heroku') {
+ payload.baseImage = 'heroku/buildpacks:20';
+ payload.baseImages = herokuVersions;
+ }
+ return payload;
+}
diff --git a/apps/server/src/trpc/routers/auth.ts b/apps/server/src/trpc/routers/auth.ts
new file mode 100644
index 0000000000..1c431995cb
--- /dev/null
+++ b/apps/server/src/trpc/routers/auth.ts
@@ -0,0 +1,178 @@
+import { z } from 'zod';
+import { publicProcedure, router } from '../trpc';
+import { TRPCError } from '@trpc/server';
+import { comparePassword, hashPassword, listSettings, uniqueName } from '../../lib/common';
+import { env } from '../../env';
+import jsonwebtoken from 'jsonwebtoken';
+import { prisma } from '../../prisma';
+import cuid from 'cuid';
+
+export const authRouter = router({
+ register: publicProcedure
+ .input(
+ z.object({
+ email: z.string(),
+ password: z.string()
+ })
+ )
+ .mutation(async ({ input }) => {
+ const { email, password } = input;
+ const userFound = await prisma.user.findUnique({
+ where: { email },
+ include: { teams: true, permission: true }
+ });
+
+ if (userFound) {
+ throw new TRPCError({
+ code: 'BAD_REQUEST',
+ message: 'User already exists.'
+ });
+ }
+ const settings = await listSettings();
+ if (!settings?.isRegistrationEnabled) {
+ throw new TRPCError({
+ code: 'FORBIDDEN',
+ message: 'Registration is disabled.'
+ });
+ }
+ const usersCount = await prisma.user.count();
+ const uid = usersCount === 0 ? '0' : cuid();
+ const permission = 'owner';
+ const isAdmin = true;
+ const hashedPassword = await hashPassword(password);
+
+ // Create the first user as the owner
+ if (usersCount === 0) {
+ await prisma.user.create({
+ data: {
+ id: uid,
+ email,
+ password: hashedPassword,
+ type: 'email',
+ teams: {
+ create: {
+ id: uid,
+ name: uniqueName(),
+ destinationDocker: { connect: { network: 'coolify' } }
+ }
+ },
+ permission: { create: { teamId: uid, permission } }
+ },
+ include: { teams: true }
+ });
+ await prisma.setting.update({
+ where: { id: '0' },
+ data: { isRegistrationEnabled: false }
+ });
+ } else {
+ // Create a new user and team
+ await prisma.user.create({
+ data: {
+ id: uid,
+ email,
+ password: hashedPassword,
+ type: 'email',
+ teams: {
+ create: {
+ id: uid,
+ name: uniqueName()
+ }
+ },
+ permission: { create: { teamId: uid, permission } }
+ },
+ include: { teams: true }
+ });
+ }
+ const payload = {
+ userId: uid,
+ teamId: uid,
+ permission,
+ isAdmin
+ };
+ return {
+ ...payload,
+ token: jsonwebtoken.sign(payload, env.COOLIFY_SECRET_KEY)
+ };
+ }),
+ login: publicProcedure
+ .input(
+ z.object({
+ email: z.string(),
+ password: z.string()
+ })
+ )
+ .mutation(async ({ input }) => {
+ const { email, password } = input;
+ const userFound = await prisma.user.findUnique({
+ where: { email },
+ include: { teams: true, permission: true }
+ });
+
+ if (!userFound) {
+ throw new TRPCError({
+ code: 'BAD_REQUEST',
+ message: 'User already exists.'
+ });
+ }
+ if (userFound.type === 'email') {
+ if (userFound.password === 'RESETME') {
+ const hashedPassword = await hashPassword(password);
+ if (userFound.updatedAt < new Date(Date.now() - 1000 * 60 * 10)) {
+ if (userFound.id === '0') {
+ await prisma.user.update({
+ where: { email: userFound.email },
+ data: { password: 'RESETME' }
+ });
+ } else {
+ await prisma.user.update({
+ where: { email: userFound.email },
+ data: { password: 'RESETTIMEOUT' }
+ });
+ }
+ } else {
+ await prisma.user.update({
+ where: { email: userFound.email },
+ data: { password: hashedPassword }
+ });
+ const payload = {
+ userId: userFound.id,
+ teamId: userFound.id,
+ permission: userFound.permission,
+ isAdmin: true
+ };
+ return {
+ ...payload,
+ token: jsonwebtoken.sign(payload, env.COOLIFY_SECRET_KEY)
+ };
+ }
+ }
+ if (!userFound.password) {
+ throw new TRPCError({
+ code: 'BAD_REQUEST',
+ message: 'Something went wrong. Please try again later.'
+ });
+ }
+ const passwordMatch = comparePassword(password, userFound.password);
+ if (!passwordMatch) {
+ throw new TRPCError({
+ code: 'BAD_REQUEST',
+ message: 'Incorrect password.'
+ });
+ }
+ const payload = {
+ userId: userFound.id,
+ teamId: userFound.id,
+ permission: userFound.permission,
+ isAdmin: true
+ };
+ return {
+ ...payload,
+ token: jsonwebtoken.sign(payload, env.COOLIFY_SECRET_KEY)
+ };
+ }
+ throw new TRPCError({
+ code: 'BAD_REQUEST',
+ message: 'Not implemented yet.'
+ });
+ })
+});
diff --git a/apps/server/src/trpc/routers/dashboard.ts b/apps/server/src/trpc/routers/dashboard.ts
new file mode 100644
index 0000000000..273018dc1a
--- /dev/null
+++ b/apps/server/src/trpc/routers/dashboard.ts
@@ -0,0 +1,65 @@
+import { privateProcedure, router } from '../trpc';
+import { listSettings } from '../../lib/common';
+import { prisma } from '../../prisma';
+
+export const dashboardRouter = router({
+ resources: privateProcedure.query(async ({ ctx }) => {
+ const id = ctx.user?.teamId === '0' ? undefined : ctx.user?.teamId;
+ let applications = await prisma.application.findMany({
+ where: { teams: { some: { id } } },
+ include: { settings: true, destinationDocker: true, teams: true }
+ });
+ const databases = await prisma.database.findMany({
+ where: { teams: { some: { id } } },
+ include: { settings: true, destinationDocker: true, teams: true }
+ });
+ const services = await prisma.service.findMany({
+ where: { teams: { some: { id } } },
+ include: { destinationDocker: true, teams: true }
+ });
+ const gitSources = await prisma.gitSource.findMany({
+ where: {
+ OR: [{ teams: { some: { id } } }, { isSystemWide: true }]
+ },
+ include: { teams: true }
+ });
+ const destinations = await prisma.destinationDocker.findMany({
+ where: { teams: { some: { id } } },
+ include: { teams: true }
+ });
+ const settings = await listSettings();
+ let foundUnconfiguredApplication = false;
+ for (const application of applications) {
+ if (
+ ((!application.buildPack || !application.branch) && !application.simpleDockerfile) ||
+ !application.destinationDockerId ||
+ (!application.settings?.isBot && !application?.fqdn && application.buildPack !== 'compose')
+ ) {
+ foundUnconfiguredApplication = true;
+ }
+ }
+ let foundUnconfiguredService = false;
+ for (const service of services) {
+ if (!service.fqdn) {
+ foundUnconfiguredService = true;
+ }
+ }
+ let foundUnconfiguredDatabase = false;
+ for (const database of databases) {
+ if (!database.version) {
+ foundUnconfiguredDatabase = true;
+ }
+ }
+ return {
+ foundUnconfiguredApplication,
+ foundUnconfiguredDatabase,
+ foundUnconfiguredService,
+ applications,
+ databases,
+ services,
+ gitSources,
+ destinations,
+ settings
+ };
+ })
+});
diff --git a/apps/server/src/trpc/routers/index.ts b/apps/server/src/trpc/routers/index.ts
new file mode 100644
index 0000000000..3dea86e156
--- /dev/null
+++ b/apps/server/src/trpc/routers/index.ts
@@ -0,0 +1,5 @@
+export * from './auth';
+export * from './dashboard';
+export * from './settings';
+export * from './applications';
+export * from './services';
diff --git a/apps/server/src/trpc/routers/services.ts b/apps/server/src/trpc/routers/services.ts
new file mode 100644
index 0000000000..1e5a805ed6
--- /dev/null
+++ b/apps/server/src/trpc/routers/services.ts
@@ -0,0 +1,118 @@
+import { z } from 'zod';
+import { privateProcedure, router } from '../trpc';
+import { decrypt, getTemplates, listSettings } from '../../lib/common';
+import { prisma } from '../../prisma';
+import { executeCommand } from '../../lib/executeCommand';
+import { checkContainer } from '../../lib/docker';
+
+export const servicesRouter = router({
+ status: privateProcedure
+ .input(
+ z.object({
+ id: z.string()
+ })
+ )
+ .query(async ({ ctx, input }) => {
+ const id = input.id;
+ const teamId = ctx.user?.teamId;
+ if (!teamId) {
+ throw { status: 400, message: 'Team not found.' };
+ }
+ const service = await getServiceFromDB({ id, teamId });
+ const { destinationDockerId } = service;
+ let payload = {};
+ if (destinationDockerId) {
+ const { stdout: containers } = await executeCommand({
+ dockerId: service.destinationDocker.id,
+ command: `docker ps -a --filter "label=com.docker.compose.project=${id}" --format '{{json .}}'`
+ });
+ if (containers) {
+ const containersArray = containers.trim().split('\n');
+ if (containersArray.length > 0 && containersArray[0] !== '') {
+ const templates = await getTemplates();
+ let template = templates.find((t) => t.type === service.type);
+ const templateStr = JSON.stringify(template);
+ if (templateStr) {
+ template = JSON.parse(templateStr.replaceAll('$$id', service.id));
+ }
+ for (const container of containersArray) {
+ let isRunning = false;
+ let isExited = false;
+ let isRestarting = false;
+ let isExcluded = false;
+ const containerObj = JSON.parse(container);
+ const exclude = template?.services[containerObj.Names]?.exclude;
+ if (exclude) {
+ payload[containerObj.Names] = {
+ status: {
+ isExcluded: true,
+ isRunning: false,
+ isExited: false,
+ isRestarting: false
+ }
+ };
+ continue;
+ }
+
+ const status = containerObj.State;
+ if (status === 'running') {
+ isRunning = true;
+ }
+ if (status === 'exited') {
+ isExited = true;
+ }
+ if (status === 'restarting') {
+ isRestarting = true;
+ }
+ payload[containerObj.Names] = {
+ status: {
+ isExcluded,
+ isRunning,
+ isExited,
+ isRestarting
+ }
+ };
+ }
+ }
+ }
+ }
+ return payload;
+ })
+});
+
+export async function getServiceFromDB({
+ id,
+ teamId
+}: {
+ id: string;
+ teamId: string;
+}): Promise<any> {
+ const settings = await prisma.setting.findFirst();
+ const body = await prisma.service.findFirst({
+ where: { id, teams: { some: { id: teamId === '0' ? undefined : teamId } } },
+ include: {
+ destinationDocker: true,
+ persistentStorage: true,
+ serviceSecret: true,
+ serviceSetting: true,
+ wordpress: true,
+ plausibleAnalytics: true
+ }
+ });
+ if (!body) {
+ return null;
+ }
+ // body.type = fixType(body.type);
+
+ if (body?.serviceSecret.length > 0) {
+ body.serviceSecret = body.serviceSecret.map((s) => {
+ s.value = decrypt(s.value);
+ return s;
+ });
+ }
+ if (body.wordpress) {
+ body.wordpress.ftpPassword = decrypt(body.wordpress.ftpPassword);
+ }
+
+ return { ...body, settings };
+}
diff --git a/apps/server/src/trpc/routers/settings.ts b/apps/server/src/trpc/routers/settings.ts
new file mode 100644
index 0000000000..e06de54a96
--- /dev/null
+++ b/apps/server/src/trpc/routers/settings.ts
@@ -0,0 +1,80 @@
+// import { z } from 'zod';
+import { publicProcedure, privateProcedure, router } from '../trpc';
+import { TRPCError } from '@trpc/server';
+import { getCurrentUser, getTeamInvitation, listSettings, version } from '../../lib/common';
+import { env } from '../../env';
+import type { Permission, TeamInvitation } from '@prisma/client';
+import jsonwebtoken from 'jsonwebtoken';
+
+export const settingsRouter = router({
+ getBaseSettings: publicProcedure.query(async () => {
+ const settings = await listSettings();
+ return {
+ success: true,
+ data: {
+ isRegistrationEnabled: settings?.isRegistrationEnabled
+ }
+ };
+ }),
+ getInstanceSettings: privateProcedure.query(async ({ ctx }) => {
+ try {
+ const settings = await listSettings();
+
+ let isAdmin = false;
+ let permission = null;
+ let token = null;
+ let pendingInvitations: TeamInvitation[] = [];
+
+ if (!settings) {
+ throw new TRPCError({
+ code: 'INTERNAL_SERVER_ERROR',
+ message: 'An unexpected error occurred, please try again later.'
+ });
+ }
+ if (ctx.user) {
+ const currentUser = await getCurrentUser(ctx.user.userId);
+ if (currentUser) {
+ const foundPermission = currentUser.permission.find(
+ (p: Permission) => p.teamId === ctx.user?.teamId
+ )?.permission;
+ if (foundPermission) {
+ permission = foundPermission;
+ isAdmin = foundPermission === 'owner' || foundPermission === 'admin';
+ }
+ const payload = {
+ userId: ctx.user?.userId,
+ teamId: ctx.user?.teamId,
+ permission,
+ isAdmin,
+ iat: Math.floor(Date.now() / 1000)
+ };
+ token = jsonwebtoken.sign(payload, env.COOLIFY_SECRET_KEY);
+ }
+ pendingInvitations = await getTeamInvitation(ctx.user.userId);
+ }
+ return {
+ success: true,
+ data: {
+ token,
+ userId: ctx.user?.userId,
+ teamId: ctx.user?.teamId,
+ permission,
+ isAdmin,
+ ipv4: ctx.user?.teamId ? settings.ipv4 : null,
+ ipv6: ctx.user?.teamId ? settings.ipv6 : null,
+ version,
+ whiteLabeled: env.COOLIFY_WHITE_LABELED === 'true',
+ whiteLabeledIcon: env.COOLIFY_WHITE_LABELED_ICON,
+ isRegistrationEnabled: settings.isRegistrationEnabled,
+ pendingInvitations
+ }
+ };
+ } catch (error) {
+ throw new TRPCError({
+ code: 'INTERNAL_SERVER_ERROR',
+ message: 'An unexpected error occurred, please try again later.',
+ cause: error
+ });
+ }
+ })
+});
diff --git a/apps/server/src/trpc/trpc.ts b/apps/server/src/trpc/trpc.ts
new file mode 100644
index 0000000000..503bd522e5
--- /dev/null
+++ b/apps/server/src/trpc/trpc.ts
@@ -0,0 +1,33 @@
+import { initTRPC, TRPCError } from '@trpc/server';
+import superjson from 'superjson';
+import type { Context } from './context';
+
+const t = initTRPC.context<Context>().create({
+ transformer: superjson,
+ errorFormatter({ shape }) {
+ return shape;
+ }
+});
+const logger = t.middleware(async ({ path, type, next }) => {
+ const start = Date.now();
+ const result = await next();
+ const durationMs = Date.now() - start;
+ result.ok
+ ? console.log('OK request timing:', { path, type, durationMs })
+ : console.log('Non-OK request timing', { path, type, durationMs });
+ return result;
+});
+
+const isAdmin = t.middleware(async ({ ctx, next }) => {
+ if (!ctx.user) {
+ throw new TRPCError({ code: 'UNAUTHORIZED' });
+ }
+ return next({
+ ctx: {
+ user: ctx.user
+ }
+ });
+});
+export const router = t.router;
+export const privateProcedure = t.procedure.use(isAdmin).use(logger);
+export const publicProcedure = t.procedure.use(logger);
diff --git a/apps/server/tags.json b/apps/server/tags.json
new file mode 100644
index 0000000000..0d84f6caa0
--- /dev/null
+++ b/apps/server/tags.json
@@ -0,0 +1 @@
+[{"name":"appsmith","image":"appsmith/appsmith-ce","tags":["v1.8.8","v1.8.6","v1.8.4","v1.8.2","v1.8.10","v1.8.0","v1.7.8","v1.7.6","v1.7.4","v1.7.2","v1.7.13","v1.7.11","v1.7.1","v1.6.9","v1.6.7","v1.6.5","v1.6.3","v1.6.22","v1.6.20","v1.6.19","v1.6.17","v1.6.15","v1.6.13","v1.6.11","v1.6.1","v1.5.30","v1.5.28","v1.5.26","v1.5.24","v1.5.22"]},{"name":"appwrite","image":"appwrite/appwrite","tags":["1.1.2","1.1.0","1.0.3","1.0.1","1.0.0","0.9.3","0.9.1","0.8.0","0.7.1","0.6.2","0.6.0","0.5.2","0.5.0","0.3.1","0.2.0","0.15.2","0.15.0","0.14.2","0.14.0","0.13.4","0.13.2","0.13.0","0.12.3","0.12.1","0.12.0","0.11.2","0.11.0","0.10.4","0.10.2","0.10.0"]},{"name":"fider","image":"getfider/fider","tags":["stable","master","main","dev","SHA_ee6e83cfaadadaa56ab76e089e01f5631af3506f","SHA_deb4f9b4f561d890d8a80e6872fea9a98a265cc6","SHA_d5cc307909d43447200483d76b5db74d8ed8349e","SHA_d1674476577a7fd3c88fc29f91c3f35f5bd6a260","SHA_d107cbb157abca6576110080736213efe0955cff","SHA_c9c55b2f5b33a76015241b97e03cfac1254b42a7","SHA_bcf451a3cb02d5c8a489fd30309249296057b084","SHA_bbfe419639514f949a042807addf0fde7d4de225","SHA_adc3afc4c7bcf96931a5f90cab65c282d860dbfd","SHA_ab5283ae95334f10b5041402dce79e333c472015","SHA_a3f4cb5ed0a4ee2d726705fc426636364aac17a1","SHA_a18224142bf51bc6463c3d22f45f62287902e9a6","SHA_8e5cff30d95963eaee2587488d351e0d658c8195","SHA_8cabe2817ce7ccaf2f0a9fdbb1b5d3411de87f81","SHA_7851f9da566132d87fa2a63004e78c3bc9c09c6c","SHA_6c0f2bed1754e9d579eb9575129a6e3dbc529c32","SHA_603508c8790d6a6fb1e852df1a58ead8e5b3ea6c","SHA_55efacf164a4749b50ee68ae8925e7dc9dfa3a0c","SHA_4bdd291ce61e5f5dfc063fa1b2d9be8c9ff1d4c4","SHA_3fba9cb6a9ceab0c78c6cff3220610f591f657cb","SHA_3d635b57606a9885babe91fe975b11429e0f2c38","SHA_3b794edbd9789a8aa38ecd3714bc536a675d3058","SHA_3570c454ad3252b690608f7bf8051737d8519f8a","SHA_263e2709fd145f3ea511e5557e170102899995b0","SHA_255c30ed012fc4c39ffc97efc1d3b00425b17c72","SHA_17f92b16ef790003338f0926fc8d791a9a61333c"]},{"name":"ghost-mariadb","image":"bitnami/ghost","tags":["5.7.1","5.7.0","5.5.0","5.4.1","5.4.0","5.3.1","5.3.0","5.24.2","5.24.1","5.24.0","5.23.0","5.22.9","5.22.8","5.22.7","5.22.6","5.22.5","5.22.4","5.22.3","5.22.2","5.22.11","5.22.10","5.22.1","5.22.0","5.21.0","5.20.0","5.2.4","5.2.3","5.2.2","5.2.1","5.19.3","4.48.8"]},{"name":"ghost-mysql","image":"library/ghost","tags":["5.9.4","5.8.3","5.8.2","5.7.1","5.7.0","5.5.0","5.4.1","5.3.1","5.3.0","5.24.2","5.24.1","5.23.0","5.22.9","5.22.8","5.22.4","5.22.11","5.22.10","5.22.1","5.20.0","5.2.4","5.2.3","5.2.2","5.2.1","5.19.3","5.19.0","5.18.0","5.17.2","5.17.1","5.17.0","5.16.2"]},{"name":"ghost-only","image":"library/ghost","tags":["5.9.4","5.8.3","5.8.2","5.7.1","5.7.0","5.5.0","5.4.1","5.3.1","5.3.0","5.24.2","5.24.1","5.23.0","5.22.9","5.22.8","5.22.4","5.22.11","5.22.10","5.22.1","5.20.0","5.2.4","5.2.3","5.2.2","5.2.1","5.19.3","5.19.0","5.18.0","5.17.2","5.17.1","5.17.0","5.16.2"]},{"name":"gitea","image":"gitea/gitea","tags":["1.9.6","1.9.5","1.9.4","1.9.3","1.9.2","1.9.0","1.8.3","1.8.1","1.8.0","1.7.5","1.7.3","1.7.1","1.7.0","1.6.3","1.6.1","1.6.0","1.5.3","1.5.1","1.5.0","1.4.3","1.4.1","1.4.0","1.3.3","1.3.1","1.3.0","1.2.3","1.2.1","1.2.0","1.17.3","1.17.2"]},{"name":"glitchtip","image":"glitchtip/glitchtip","tags":["v2.0.7","v2.0.5","v2.0.2","v2.0.0","v1.9.2","v1.9.0","v1.8.4","v1.8.2","v1.8.0","v1.7.1","v1.6.4","v1.6.2","v1.6.0","v1.5.3","v1.5.1","v1.4.1","v1.3.3","v1.3.1","v1.2.6","v1.2.4","v1.2.2","v1.2.0","v1.12.4","v1.12.2","v1.12.0","v1.10.3","v1.10.1","v1.1.2","v1.1.0","v1.0.8"]},{"name":"grafana","image":"grafana/grafana","tags":["9.3.1","9.3.0","9.2.7","9.2.6","9.2.5","9.2.4","9.2.3","9.2.2","9.2.1","9.2.0","9.1.8","9.1.7","9.1.6","9.1.5","9.1.4","9.1.3","9.1.2","9.1.1","9.1.0","9.0.9","9.0.8","9.0.7","9.0.6","9.0.5","9.0.4","9.0.3","9.0.2","9.0.1","9.0.0","8.5.9"]},{"name":"hasura","image":"hasura/graphql-engine","tags":["v2.9.0","v2.8.4","v2.8.3","v2.8.2","v2.8.1","v2.8.0","v2.7.0","v2.6.2","v2.6.1","v2.6.0","v2.5.2","v2.5.1","v2.5.0","v2.4.0","v2.3.1","v2.3.0","v2.2.2","v2.2.1","v2.2.0","v2.15.2","v2.15.1","v2.15.0","v2.14.1","v2.14.0","v2.13.2","v2.13.1","v2.13.0","v2.12.1","v2.12.0","v2.11.3"]},{"name":"keycloak","image":"quay.io/keycloak/keycloak","tags":["9.0.3","9.0.0","8.0.1","7.0.0","6.0.1","6.0.0","20.0.1","20.0.0","19.0.3","19.0.1","19.0.0","18.0.1","18.0.0","17.0.1","17.0.0","16.1.0","15.1.1","15.0.2","15.0.0","13.0.1","12.0.4","12.0.2","12.0.0","11.0.2","11.0.0","10.0.1"]},{"name":"languagetool","image":"silviof/docker-languagetool","tags":["latest","5.8","5.7","5.6","5.5","5.4","5.3"]},{"name":"lavalink","image":"fredboat/lavalink","tags":["v3.7","v3.6","v3-vda0b3a4b3916a7b1a2b79702de1143c3a6939810-SNAPSHOT","v3-vc92690c425390bd20f6c51643c67ba79ab85b7e0-SNAPSHOT","v3-vab81dcd46adf3e8a961dd57eacd2a1bde1233e6c-SNAPSHOT","v3-v9c9432704d6a4badfcbd06a57597c54bed8f4326-SNAPSHOT","v3-v3.0","v3-v3","v3-v124f8fae7dab299f9cdf1cb4c1715be455497286-SNAPSHOT","v3-","v3","v2.0.1","v2.0","v2","update-udpqueue-vb4a439d6147dbd8641ea4f265e8efc9f1e16e2d3-SNAPSHOT","update-udpqueue-","update-udpqueue","revert-713-fix-error-for-loading-jda-nas","refactor-github-actions","patch-update-github-actions","patch-more-configurable-github-actions","patch-lavaplayer-update","patch-lavaplayer-bump","patch-build-number","next-api-vd4db194cac7a839a3899857f1f6d7b910369309d-SNAPSHOT","next-api-vc2e018d5ffef54b2d17244b3d213e31723a084d6-SNAPSHOT","next-api-v42cb5f7c58e98d1911e87bffb35aee0a235b85f8-SNAPSHOT","next-api-v31a243bda80badbd7d643f68fc1f87e99639060f-SNAPSHOT","next-api-v17f6884434c2d70d1704b2322a951d9f07af8865-SNAPSHOT","next-api-"]},{"name":"meilisearch","image":"getmeili/meilisearch","tags":["v0.9.0","v0.8.3","v0.8.1","v0.30.0","v0.29.1","v0.29.0","v0.28.1","v0.28.0","v0.27.1","v0.27.0","v0.26.1","v0.26.0","v0.25.1","v0.25.0","v0.23.1","v0.23.0","v0.21.1","v0.21.0","v0.20.0","v0.19.0","v0.18.1","v0.18.0","v0.17.0","v0.16.0","v0.14.1","v0.14.0","v0.12.0","v0.11.0","v0.10.0","0.14.1"]},{"name":"minio","image":"minio/minio","tags":["RELEASE.2022-11-29T23-40-49Z.fips","RELEASE.2022-11-26T22-43-32Z.fips","RELEASE.2022-11-17T23-20-09Z.fips","RELEASE.2022-11-11T03-44-20Z.fips","RELEASE.2022-11-10T18-20-21Z.fips","RELEASE.2022-11-08T05-27-07Z.fips","RELEASE.2022-10-29T06-21-33Z.fips","RELEASE.2022-10-24T18-35-07Z.hotfix.ce525fdaf","RELEASE.2022-10-24T18-35-07Z.fips","RELEASE.2022-10-21T22-37-48Z.fips","RELEASE.2022-10-20T00-55-09Z.fips","RELEASE.2022-10-15T19-57-03Z.fips","RELEASE.2022-10-08T20-11-00Z.fips","RELEASE.2022-10-05T14-58-27Z.fips","RELEASE.2022-10-02T19-29-29Z.fips","RELEASE.2022-09-25T15-44-53Z.fips","RELEASE.2022-09-22T18-57-27Z.fips","RELEASE.2022-09-17T00-09-45Z.hotfix.fc6d6fdbd","RELEASE.2022-09-17T00-09-45Z.hotfix.4bb22d5cd","RELEASE.2022-09-17T00-09-45Z","RELEASE.2022-09-07T22-25-02Z","RELEASE.2022-09-01T23-53-36Z","RELEASE.2022-08-26T19-53-15Z","RELEASE.2022-08-25T07-17-05Z","RELEASE.2022-08-22T23-53-06Z.fips","RELEASE.2022-08-13T21-54-44Z.fips","RELEASE.2022-08-11T04-37-28Z.fips","RELEASE.2022-08-08T18-34-09Z.fips","RELEASE.2022-08-05T23-27-09Z.fips","RELEASE.2022-08-02T23-59-16Z.fips"]},{"name":"n8n","image":"n8nio/n8n","tags":["0.99.1","0.99.0","0.98.0","0.97.0","0.96.0","0.95.1","0.95.0","0.94.1","0.94.0","0.93.0","0.92.0","0.91.0","0.9.0","0.89.2","0.88.1","0.88.0","0.87.2","0.87.1","0.87.0","0.86.1","0.86.0","0.85.0","0.84.4","0.84.3","0.84.1","0.84.0","0.83.0","0.82.1","0.82.0","0.81.0"]},{"name":"nocodb","image":"nocodb/nocodb","tags":["0.99.2","0.99.0","0.98.3","0.98.1","0.97.0","0.96.3","0.96.1","0.92.4","0.92.0","0.91.8","0.91.6","0.91.1","0.90.8","0.90.5","0.90.3","0.90.11","0.90.1","0.9.9","0.9.7","0.9.43","0.9.41","0.9.39","0.9.37","0.9.35","0.9.33","0.9.31","0.9.29","0.9.27","0.9.25","0.9.22"]},{"name":"plausibleanalytics-arm","image":"plausible/analytics","tags":["v1.5.0-rc.2","v1.5.0-rc.1","v1.4.4","v1.4.3","v1.4.2","v1.4.1","v1.4.0.rc.0","v1.4.0-rc.0","v1.4.0","v1.4","v1.3.0-rc.1","v1.3.0-rc.0","v1.3.0","v1.3","v1.2.1","v1.2.0","v1.2-rc.1","v1.2-rc.0","v1.2","v1.1.1","v1.1.0","v1.1","v1.0.0","v1.0","v1","stable","master","loadtest","latest","1.5.0-rc.0"]},{"name":"plausibleanalytics","image":"plausible/analytics","tags":["v1.5.0-rc.2","v1.5.0-rc.1","v1.4.4","v1.4.3","v1.4.2","v1.4.1","v1.4.0.rc.0","v1.4.0-rc.0","v1.4.0","v1.4","v1.3.0-rc.1","v1.3.0-rc.0","v1.3.0","v1.3","v1.2.1","v1.2.0","v1.2-rc.1","v1.2-rc.0","v1.2","v1.1.1","v1.1.0","v1.1","v1.0.0","v1.0","v1","stable","master","loadtest","latest","1.5.0-rc.0"]},{"name":"pocketbase","image":"coollabsio/pocketbase","tags":["0.8.0-arm64","0.8.0-amd64","0.8.0-aarch64","0.8.0"]},{"name":"searxng","image":"searxng/searxng","tags":["2022.12.02-ffb72dfd","2022.12.02-890d63b9","2022.12.02-4970db05","2022.12.02-317fe0a2","2022.11.30-f19837cf","2022.11.30-44d4a171","2022.11.30-0361f836","2022.11.29-a8359dd4","2022.11.29-82af2f44","2022.11.29-768659f2","2022.11.29-5b19f892","2022.11.29-3579a38a","2022.11.29-1b2f1c17","2022.11.25-5ca6868c","2022.11.25-28ae469f","2022.11.25-1314c1c5","2022.11.19-b5371b7a","2022.11.18-fe8b0472","2022.11.18-1cdadf4b","2022.11.11-e6345758","2022.11.11-3a765113","2022.11.10-117f69fa","2022.11.09-ee4475ff","2022.11.07-d3949269","2022.11.07-8f19bdaf","2022.11.06-ae54c7d5","2022.11.06-2dc5c0e1","2022.11.05-e9f42e1c","2022.11.05-d764d94a","2022.11.05-d3a7399e"]},{"name":"trilium","image":"zadam/trilium","tags":["0.57.2","0.56.1","0.55.1","0.54.2","0.53.2","0.52.4","0.52.2","0.51.2","0.50.3","0.50.1","0.49.5","0.49.3","0.48.9","0.48.7","0.48.4","0.48.2","0.47.8","0.47.6","0.47.4","0.47.2","0.46.7","0.46.5","0.45.9","0.45.7","0.45.5","0.45.3","0.45.10","0.44.8","0.44.6","0.44.4"]},{"name":"umami-postgresql","image":"ghcr.io/umami-software/umami","tags":["postgresql-v1.39.5","postgresql-v1.39.4","postgresql-v1.39.3","postgresql-v1.39.2","postgresql-v1.39.1","postgresql-v1.39.0","postgresql-v1.38.0","postgresql-v1.37.0","postgresql-v1.36.1","postgresql-v1.36.0","postgresql-v1.35.0","postgresql-v1.34.0","postgresql-v1.33.3","postgresql-latest","mysql-v1.39.5","mysql-v1.39.4","mysql-v1.39.3","mysql-v1.39.2","mysql-v1.39.1","mysql-v1.39.0","mysql-v1.38.0","mysql-v1.37.0","mysql-v1.36.1","mysql-v1.36.0","mysql-v1.35.0","mysql-v1.34.0","mysql-v1.33.3","mysql-latest"]},{"name":"umami","image":"ghcr.io/umami-software/umami","tags":["postgresql-v1.39.5","postgresql-v1.39.4","postgresql-v1.39.3","postgresql-v1.39.2","postgresql-v1.39.1","postgresql-v1.39.0","postgresql-v1.38.0","postgresql-v1.37.0","postgresql-v1.36.1","postgresql-v1.36.0","postgresql-v1.35.0","postgresql-v1.34.0","postgresql-v1.33.3","postgresql-latest","mysql-v1.39.5","mysql-v1.39.4","mysql-v1.39.3","mysql-v1.39.2","mysql-v1.39.1","mysql-v1.39.0","mysql-v1.38.0","mysql-v1.37.0","mysql-v1.36.1","mysql-v1.36.0","mysql-v1.35.0","mysql-v1.34.0","mysql-v1.33.3","mysql-latest"]},{"name":"uptimekuma","image":"louislam/uptime-kuma","tags":["1.9.2","1.9.1","1.9.0","1.8.0","1.7.3","1.7.1","1.7.0","1.6.3","1.6.2","1.6.1","1.6.0","1.5.3","1.5.2","1.5.0","1.3.1","1.2.0","1.18.5","1.18.4","1.18.3","1.18.2","1.18.1","1.18.0","1.17.1","1.17.0","1.16.1","1.16.0","1.15.1","1.15.0","1.14.1","1.14.0"]},{"name":"vaultwarden","image":"vaultwarden/server","tags":["1.26.0","1.25.2","1.25.1","1.25.0","1.24.0","1.23.1","1.23.0","1.22.2","1.22.1","1.22.0","1.21.0"]},{"name":"vscodeserver","image":"codercom/code-server","tags":["4.8.3","4.8.2","4.8.1","4.8.0","4.7.0","4.6.0","4.5.1","4.4.0","4.2.0","4.0.2","3.9.3","3.9.1","3.8.1","3.7.4","3.7.2","3.7.0","3.6.1","3.5.0","3.4.0","3.3.0","3.2.0","3.11.1","3.10.2","3.10.0","3.1.1","3.1.0","3.0.2","3.0.0"]},{"name":"weblate","image":"weblate/weblate","tags":["latest","edge-2022-12-01-0295bd44d4d9da0e0836b9152319fba173a0825e","edge-2022-11-28-f28431a1e78f88bf49ccf539fbc00afe0925542d","edge-2022-11-26-558811de16025b83de43d2747f1fe209a5b829f1","edge-2022-11-23-4a1fe25c7b70e49156e02183a8deec3b357b9030","edge-2022-11-22-9a178e7f5c2e387329592a1dd7700671f64f6682","edge-2022-11-21-eb741ebad70211ecb1babdfd23e4f43c5a59fc7b","edge-2022-11-21-4580d37f616650cf5b0851fee051651f785e8852","edge-2022-11-21-0f74d6c4d3777dbf28affd09b45c69c85ed01d84","edge-2022-11-15-cad0a043b32c1ee61611ab258db0f01c5e6d718f","edge-2022-11-10-bf41db3afbab22384e103718094738dcfdc1a270","edge-2022-11-09-9bc90ce8b873778d2f486eccd0163bb1bb65ca6e","edge-2022-11-08-36e221037ff7097f8cd2c88d779135b6c7d3f363","edge-2022-11-08-3568e3c6759a9e9b779d98cb98393526d451466a","edge-2022-11-08-261d197970ca0679514d32ff783467972e807061","edge-2022-11-05-fa5cb203d854a11cc7850868a2890168afa3e7da","edge-2022-11-05-d93ae789eef8f065240f9fb6feb3edb236a7e6f8","edge-2022-11-05-8fc2be8e9d22e5ca2da2773488da7f72c5927ec3","edge-2022-11-05-85da67e88a113bed65530f0695ad4cddec0ed05a","edge-2022-11-05-3f4d77b6f2cb16bf008a4ef587e843ccb9c0c5d0","edge-2022-11-05-226eed520a2b32c3583c6e3247109ec8950764e7","edge-2022-11-03-487f3255cb89415fbe0769fa4b7bd2a9209deca6","edge-2022-11-02-e4171e0c5657ca38341cce8ac31f5cbdf25389eb","edge-2022-11-02-6d886c40cd62eb23d21f7c0a1840b4a7a4c51ad0","edge-2022-11-01-608df4dd95a2d1f76c15cddd9e116bb4c3229168","edge-2022-11-01-54957be78eb76f602ceae50c0b01b64b20402b2a","edge-2022-10-31-c55c7302a6c82a160ee9d711893c12d67ecd3b27","edge-2022-10-26-c69cfdd83ed1fad4a4d57398552b8c70894a6586","edge-2022-10-26-410b3aff37de5bbfacbc47642ce28b2518bee506","edge-2022-10-25-e09e2c29ed3748eb0fa248453635dd27768e8dd9"]},{"name":"wordpress-only","image":"library/wordpress","tags":["php8.1-fpm-alpine","php8.1-fpm","php8.1-apache","php8.1","php8.0-fpm-alpine","php8.0-fpm","php8.0-apache","php8.0","php7.4-fpm-alpine","php7.4-fpm","php7.4-apache","php7.4","php7.3-fpm-alpine","php7.3-fpm","php7.3-apache","php7.3","php7.2-fpm-alpine","php7.2-fpm","php7.2-apache","php7.2","php7.1-fpm-alpine","php7.1-fpm","php7.1-apache","php7.1","php7.0-fpm-alpine","php7.0-fpm","php7.0-apache","php7.0","php5.6-fpm-alpine","php5.6-fpm"]},{"name":"wordpress","image":"library/wordpress","tags":["php8.1-fpm-alpine","php8.1-fpm","php8.1-apache","php8.1","php8.0-fpm-alpine","php8.0-fpm","php8.0-apache","php8.0","php7.4-fpm-alpine","php7.4-fpm","php7.4-apache","php7.4","php7.3-fpm-alpine","php7.3-fpm","php7.3-apache","php7.3","php7.2-fpm-alpine","php7.2-fpm","php7.2-apache","php7.2","php7.1-fpm-alpine","php7.1-fpm","php7.1-apache","php7.1","php7.0-fpm-alpine","php7.0-fpm","php7.0-apache","php7.0","php5.6-fpm-alpine","php5.6-fpm"]}]
\ No newline at end of file
diff --git a/apps/server/templates.json b/apps/server/templates.json
new file mode 100644
index 0000000000..256cca6091
--- /dev/null
+++ b/apps/server/templates.json
@@ -0,0 +1 @@
+[{"templateVersion":"1.0.0","defaultVersion":"0.8.0","documentation":"https://pocketbase.io/docs/","type":"pocketbase","name":"Pocketbase","description":"Open Source realtime backend in 1 file","services":{"$$id":{"image":"coollabsio/pocketbase:$$core_version","volumes":["$$id-data:/app/pb_data"],"ports":["8080"]}}},{"templateVersion":"1.0.0","defaultVersion":"1.5.0-rc.0","documentation":"https://plausible.io/doc/","type":"plausibleanalytics-arm","name":"Plausible Analytics (ARM)","description":"A lightweight and open-source website analytics tool.","labels":["analytics","statistics","plausible","gdpr","no-cookie","google analytics"],"services":{"$$id":{"name":"Plausible Analytics","command":"sh -c \"sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh db init-admin && /entrypoint.sh run\"","depends_on":["$$id-postgresql","$$id-clickhouse"],"image":"plausible/analytics:$$core_version","environment":["ADMIN_USER_EMAIL=$$config_admin_user_email","ADMIN_USER_NAME=$$config_admin_user_name","ADMIN_USER_PWD=$$secret_admin_user_pwd","BASE_URL=$$config_base_url","SECRET_KEY_BASE=$$secret_secret_key_base","DISABLE_AUTH=$$config_disable_auth","DISABLE_REGISTRATION=$$config_disable_registration","DATABASE_URL=$$secret_database_url","CLICKHOUSE_DATABASE_URL=$$secret_clickhouse_database_url"],"ports":["8000"]},"$$id-postgresql":{"name":"PostgreSQL","image":"postgres:14-alpine","volumes":["$$id-postgresql-data:/var/lib/postgresql/data"],"environment":["POSTGRES_PASSWORD=$$secret_postgres_password","POSTGRES_USER=$$config_postgres_user","POSTGRES_DB=$$config_postgres_db"]},"$$id-clickhouse":{"name":"Clickhouse","volumes":["$$id-clickhouse-data:/var/lib/clickhouse"],"image":"clickhouse/clickhouse-server:22.6-alpine","ulimits":{"nofile":{"soft":262144,"hard":262144}},"files":[{"location":"/etc/clickhouse-server/users.d/logging.xml","content":"<yandex><logger><level>warning</level><console>true</console></logger><query_thread_log remove=\"remove\"/><query_log remove=\"remove\"/><text_log remove=\"remove\"/><trace_log remove=\"remove\"/><metric_log remove=\"remove\"/><asynchronous_metric_log remove=\"remove\"/><session_log remove=\"remove\"/><part_log remove=\"remove\"/></yandex>"},{"location":"/etc/clickhouse-server/config.d/logging.xml","content":"<yandex><profiles><default><log_queries>0</log_queries><log_query_threads>0</log_query_threads></default></profiles></yandex>"},{"location":"/docker-entrypoint-initdb.d/init.query","content":"CREATE DATABASE IF NOT EXISTS plausible;"},{"location":"/docker-entrypoint-initdb.d/init-db.sh","content":"clickhouse client --queries-file /docker-entrypoint-initdb.d/init.query"}]}},"variables":[{"id":"$$config_base_url","name":"BASE_URL","label":"Base URL","defaultValue":"$$generate_fqdn","description":"You must set this to the FQDN of the Plausible Analytics instance. This is used to generate the links to the Plausible Analytics instance."},{"id":"$$secret_database_url","name":"DATABASE_URL","label":"Database URL for PostgreSQL","defaultValue":"postgresql://$$config_postgres_user:$$secret_postgres_password@$$id-postgresql:5432/$$config_postgres_db","description":""},{"id":"$$secret_clickhouse_database_url","name":"CLICKHOUSE_DATABASE_URL","label":"Database URL for Clickhouse","defaultValue":"http://$$id-clickhouse:8123/plausible","description":""},{"id":"$$config_admin_user_email","name":"ADMIN_USER_EMAIL","label":"Admin Email Address","defaultValue":"[email protected]","description":"This is the admin email. Please change it."},{"id":"$$config_admin_user_name","name":"ADMIN_USER_NAME","label":"Admin User Name","defaultValue":"$$generate_username","description":"This is the admin username. Please change it."},{"id":"$$secret_admin_user_pwd","name":"ADMIN_USER_PWD","label":"Admin User Password","defaultValue":"$$generate_password","description":"This is the admin password. Please change it.","showOnConfiguration":true},{"id":"$$secret_secret_key_base","name":"SECRET_KEY_BASE","label":"Secret Key Base","defaultValue":"$$generate_hex(64)","description":""},{"id":"$$config_disable_auth","name":"DISABLE_AUTH","label":"Disable Authentication","defaultValue":"false","description":""},{"id":"$$config_disable_registration","name":"DISABLE_REGISTRATION","label":"Disable Registration","defaultValue":"true","description":""},{"id":"$$config_postgres_user","main":"$$id-postgresql","name":"POSTGRES_USER","label":"PostgreSQL Username","defaultValue":"postgresql","description":""},{"id":"$$secret_postgres_password","main":"$$id-postgresql","name":"POSTGRES_PASSWORD","label":"PostgreSQL Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true},{"id":"$$config_postgres_db","main":"$$id-postgresql","name":"POSTGRES_DB","label":"PostgreSQL Database","defaultValue":"plausible","description":""},{"id":"$$config_scriptName","name":"SCRIPT_NAME","label":"Custom Script Name","defaultValue":"plausible.js","description":"This is the default script name."}]},{"templateVersion":"1.0.0","defaultVersion":"1.17","documentation":"https://docs.gitea.io","type":"gitea","name":"Gitea","description":"Gitea is a community managed lightweight code hosting solution written in Go.","labels":["storage","git"],"services":{"$$id":{"name":"Gitea","documentation":"https://docs.gitea.io","image":"gitea/gitea:$$core_version","volumes":["$$id-data:/data","/etc/timezone:/etc/timezone:ro","/etc/localtime:/etc/localtime:ro"],"environment":["USER_UID=1000","USER_GID=1000","DOMAIN=$$config_domain","SSH_DOMAIN=$$config_ssh_domain","ROOT_URL=$$config_root_url","SECRET_KEY=$$secret_secret_key","INTERNAL_TOKEN=$$secret_internal_token","SSH_PORT=22","START_SSH_SERVER=$$config_start_ssh_server"],"ports":["3000","22"],"proxy":[{"port":"22","hostPort":"$$config_hostport_ssh"}]}},"variables":[{"id":"$$config_hostport_ssh","name":"SSH_PORT","label":"SSH Port","defaultValue":"8022","description":"","required":true},{"id":"$$config_domain","name":"DOMAIN","label":"Domain","defaultValue":"$$generate_domain","description":""},{"id":"$$config_ssh_domain","name":"SSH_DOMAIN","label":"SSH Domain","defaultValue":"$$generate_domain","description":""},{"id":"$$config_start_ssh_server","name":"START_SSH_SERVER","label":"Start SSH Server","defaultValue":"true","description":""},{"id":"$$config_root_url","name":"ROOT_URL","label":"Root URL of Gitea","defaultValue":"$$generate_fqdn_slash","description":""},{"id":"$$secret_secret_key","name":"SECRET_KEY","label":"Secret Key","defaultValue":"$$generate_hex(32)","description":""},{"id":"$$secret_internal_token","name":"INTERNAL_TOKEN","label":"Internal JWT Token","defaultValue":"$$generate_token","description":""}]},{"templateVersion":"1.0.0","defaultVersion":"20.0","documentation":"https://www.keycloak.org/documentation","type":"keycloak","name":"Keycloak","description":"Keycloak provides user federation, strong authentication, user management, fine-grained authorization, and more.","labels":["authentication","authorization","oidconnect","saml2"],"services":{"$$id":{"name":"Keycloak","command":"start --db=postgres --features=token-exchange --import-realm","depends_on":["$$id-postgresql"],"image":"quay.io/keycloak/keycloak:$$core_version","volumes":["$$id-import:/opt/keycloak/data/import"],"environment":["KC_HEALTH_ENABLED=true","KC_PROXY=edge","KC_DB=postgres","KC_HOSTNAME=$$config_keycloak_domain","KEYCLOAK_ADMIN=$$config_admin_user","KEYCLOAK_ADMIN_PASSWORD=$$secret_keycloak_admin_password","KC_DB_PASSWORD=$$secret_postgres_password","KC_DB_USERNAME=$$config_postgres_user","KC_DB_URL=$$secret_keycloak_database_url"],"ports":["8080"]},"$$id-postgresql":{"name":"PostgreSQL","depends_on":[],"image":"postgres:14-alpine","volumes":["$$id-postgresql-data:/var/lib/postgresql/data"],"environment":["POSTGRES_USER=$$config_postgres_user","POSTGRES_PASSWORD=$$secret_postgres_password","POSTGRES_DB=$$config_postgres_db"],"ports":[]}},"variables":[{"id":"$$config_keycloak_domain","name":"KEYCLOAK_DOMAIN","label":"Keycloak Domain","defaultValue":"$$generate_domain","description":""},{"id":"$$secret_keycloak_database_url","name":"KEYCLOAK_DATABASE_URL","label":"Keycloak Database Url","defaultValue":"jdbc:postgresql://$$id-postgresql:5432/$$config_postgres_db","description":""},{"id":"$$config_admin_user","name":"KEYCLOAK_ADMIN","label":"Keycloak Admin User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_keycloak_admin_password","name":"KEYCLOAK_ADMIN_PASSWORD","label":"Keycloak Admin Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true},{"id":"$$config_postgres_user","main":"$$id-postgresql","name":"POSTGRES_USER","label":"PostgreSQL User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_postgres_password","main":"$$id-postgresql","name":"POSTGRES_PASSWORD","label":"PostgreSQL Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true},{"id":"$$config_postgres_db","main":"$$id-postgresql","name":"POSTGRES_DB","label":"PostgreSQL Database","defaultValue":"keycloak","description":""}]},{"templateVersion":"1.0.0","defaultVersion":"v3.6","documentation":"https://github.com/freyacodes/Lavalink","description":"Standalone audio sending node based on Lavaplayer.","type":"lavalink","name":"Lavalink","labels":["discord","discord bot","audio","lavalink","jda"],"services":{"$$id":{"name":"Lavalink","image":"fredboat/lavalink:$$core_version","environment":[],"volumes":["$$id-lavalink:/lavalink"],"ports":["2333"],"files":[{"location":"/opt/Lavalink/application.yml","content":"server:\n port: $$config_port\n address: 0.0.0.0\nlavalink:\n server:\n password: \"$$secret_password\"\n sources:\n youtube: true\n bandcamp: true\n soundcloud: true\n twitch: true\n vimeo: true\n http: true\n local: false\n\nlogging:\n file:\n path: ./logs/\n\n level:\n root: INFO\n lavalink: INFO\n\n logback:\n rollingpolicy:\n max-file-size: 1GB\n max-history: 30"}]}},"variables":[{"id":"$$config_port","name":"PORT","label":"Port","defaultValue":"2333","required":true},{"id":"$$secret_password","name":"PASSWORD","label":"Password","defaultValue":"$$generate_password","required":true}]},{"templateVersion":"1.0.0","defaultVersion":"v1.8.6","documentation":"https://docs.appsmith.com/getting-started/setup/instance-configuration/","type":"appsmith","name":"Appsmith","description":"Fastest way to build internal apps over any database or API.","services":{"$$id":{"image":"appsmith/appsmith-ce:$$core_version","environment":["APPSMITH_MAIL_ENABLED=$$config_appsmith_mail_enabled","APPSMITH_DISABLE_TELEMETRY=$$config_appsmith_disable_telemetry","APPSMITH_DISABLE_INTERCOM=$$config_appsmith_disable_intercom"],"volumes":["$$id-stacks-data:/appsmith-stacks"],"ports":["80"]}},"variables":[{"id":"$$config_appsmith_mail_enabled","name":"APPSMITH_MAIL_ENABLED","label":"Enable Mail","defaultValue":"false","description":""},{"id":"$$config_appsmith_disable_telemetry","name":"APPSMITH_DISABLE_TELEMETRY","label":"Disable Telemetry","defaultValue":"true","description":""},{"id":"$$config_appsmith_disable_intercom","name":"APPSMITH_DISABLE_INTERCOM","label":"Disable Intercom","defaultValue":"true","description":""}]},{"templateVersion":"1.0.0","defaultVersion":"0.56.2","documentation":"https://hub.docker.com/r/zadam/trilium","description":"A hierarchical note taking application with focus on building large personal knowledge bases.","labels":["personal","knowledge","notes","wiki"],"type":"trilium","name":"Trilium Notes","services":{"$$id":{"image":"zadam/trilium:$$core_version","environment":[],"volumes":["$$id-trilium:/home/node/trilium-data"],"ports":["8080"]}},"variables":[]},{"templateVersion":"1.0.0","defaultVersion":"1.9.2","documentation":"https://hub.docker.com/r/louislam/uptime-kuma","description":"A free & fancy self-hosted monitoring tool.","labels":["uptime"],"type":"uptimekuma","name":"UptimeKuma","services":{"$$id":{"image":"louislam/uptime-kuma:$$core_version","environment":[],"volumes":["$$id-uptimekuma:/app/data"],"ports":["3001"]}},"variables":[]},{"templateVersion":"1.0.0","defaultVersion":"5.8","documentation":"https://hub.docker.com/r/silviof/docker-languagetool","description":"A multilingual grammar, style and spell checker.","type":"languagetool","name":"LanguageTool","services":{"$$id":{"image":"silviof/docker-languagetool:$$core_version","environment":[],"volumes":["$$id-ngrams:/ngrams"],"ports":["8010"]}},"variables":[]},{"templateVersion":"1.0.0","defaultVersion":"1.26.0","documentation":"https://hub.docker.com/r/vaultwarden/server","description":"Bitwarden compatible server written in Rust.","type":"vaultwarden","name":"VaultWarden","labels":["bitwarden","password manager"],"services":{"$$id":{"image":"vaultwarden/server:$$core_version","environment":[],"volumes":["$$id-data:/data"],"ports":["80"]}},"variables":[]},{"templateVersion":"1.0.0","defaultVersion":"9.2.3","documentation":"https://hub.docker.com/r/grafana/grafana","type":"grafana","name":"Grafana","description":"Grafana allows you to query, visualize, alert on and understand your metrics.","labels":["monitoring","metrics","dashboard"],"services":{"$$id":{"image":"grafana/grafana:$$core_version","environment":[],"volumes":["$$id-config:/etc/grafana","$$id-grafana:/var/lib/grafana"],"ports":["3000"]}},"variables":[]},{"templateVersion":"1.0.0","defaultVersion":"1.0.3","documentation":"https://appwrite.io/docs","type":"appwrite","name":"Appwrite","description":"Secure Backend Server for Web, Mobile & Flutter Developers.","labels":["serverless","backend","storage","api"],"services":{"$$id":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_WORKER_PER_CORE=$$config__app_worker_per_core","_APP_LOCALE=$$config__app_locale","_APP_CONSOLE_WHITELIST_ROOT=$$config__app_console_whitelist_root","_APP_CONSOLE_WHITELIST_EMAILS=$$config__app_console_whitelist_emails","_APP_CONSOLE_WHITELIST_IPS=$$config__app_console_whitelist_ips","_APP_SYSTEM_EMAIL_NAME=$$config__app_system_email_name","_APP_SYSTEM_EMAIL_ADDRESS=$$config__app_system_email_address","_APP_SYSTEM_SECURITY_EMAIL_ADDRESS=$$config__app_system_security_email_address","_APP_SYSTEM_RESPONSE_FORMAT=$$config__app_system_response_format","_APP_OPTIONS_ABUSE=$$config__app_options_abuse","_APP_OPTIONS_FORCE_HTTPS=$$config__app_options_force_https","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_DOMAIN=$$config__app_domain","_APP_DOMAIN_TARGET=$$config__app_domain_target","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_DB_HOST=$$config__app_db_host","_APP_DB_PORT=$$config__app_db_port","_APP_DB_SCHEMA=$$config__app_db_schema","_APP_DB_USER=$$config__app_db_user","_APP_DB_PASS=$$secret__app_db_pass","_APP_SMTP_HOST=$$config__app_smtp_host","_APP_SMTP_PORT=$$config__app_smtp_port","_APP_SMTP_SECURE=$$config__app_smtp_secure","_APP_SMTP_USERNAME=$$config__app_smtp_username","_APP_SMTP_PASSWORD=$$secret__app_smtp_password","_APP_USAGE_STATS=$$config__app_usage_stats","_APP_INFLUXDB_HOST=$$config__app_influxdb_host","_APP_INFLUXDB_PORT=$$config__app_influxdb_port","_APP_STORAGE_LIMIT=$$config__app_storage_limit","_APP_STORAGE_PREVIEW_LIMIT=$$config__app_storage_preview_limit","_APP_STORAGE_ANTIVIRUS=$$config__app_storage_antivirus_enabled","_APP_STORAGE_ANTIVIRUS_HOST=$$config__app_storage_antivirus_host","_APP_STORAGE_ANTIVIRUS_PORT=$$config__app_storage_antivirus_port","_APP_STORAGE_DEVICE=$$config__app_storage_device","_APP_STORAGE_S3_ACCESS_KEY=$$secret__app_storage_s3_access_key","_APP_STORAGE_S3_SECRET=$$secret__app_storage_s3_secret","_APP_STORAGE_S3_REGION=$$config__app_storage_s3_region","_APP_STORAGE_S3_BUCKET=$$config__app_storage_s3_bucket","_APP_STORAGE_DO_SPACES_ACCESS_KEY=$$secret__app_storage_do_spaces_access_key","_APP_STORAGE_DO_SPACES_SECRET=$$secret__app_storage_do_spaces_secret","_APP_STORAGE_DO_SPACES_REGION=$$config__app_storage_do_spaces_region","_APP_STORAGE_DO_SPACES_BUCKET=$$config__app_storage_do_spaces_bucket","_APP_STORAGE_BACKBLAZE_ACCESS_KEY=$$secret__app_storage_backblaze_access_key","_APP_STORAGE_BACKBLAZE_SECRET=$$secret__app_storage_backblaze_secret","_APP_STORAGE_BACKBLAZE_REGION=$$config__app_storage_backblaze_region","_APP_STORAGE_BACKBLAZE_BUCKET=$$config__app_storage_backblaze_bucket","_APP_STORAGE_LINODE_ACCESS_KEY=$$secret__app_storage_linode_access_key","_APP_STORAGE_LINODE_SECRET=$$secret__app_storage_linode_secret","_APP_STORAGE_LINODE_REGION=$$config__app_storage_linode_region","_APP_STORAGE_LINODE_BUCKET=$$config__app_storage_linode_bucket","_APP_STORAGE_WASABI_ACCESS_KEY=$$secret__app_storage_wasabi_access_key","_APP_STORAGE_WASABI_SECRET=$$secret__app_storage_wasabi_secret","_APP_STORAGE_WASABI_REGION=$$config__app_storage_wasabi_region","_APP_STORAGE_WASABI_BUCKET=$$config__app_storage_wasabi_bucket","_APP_FUNCTIONS_SIZE_LIMIT=$$config__app_functions_size_limit","_APP_FUNCTIONS_TIMEOUT=$$config__app_functions_timeout","_APP_FUNCTIONS_BUILD_TIMEOUT=$$config__app_functions_build_timeout","_APP_FUNCTIONS_CONTAINERS=$$config__app_functions_containers","_APP_FUNCTIONS_CPUS=$$config__app_functions_cpus","_APP_FUNCTIONS_MEMORY=$$config__app_functions_memory_allocated","_APP_FUNCTIONS_MEMORY_SWAP=$$config__app_functions_memory_swap","_APP_FUNCTIONS_RUNTIMES=$$config__app_functions_runtimes","_APP_EXECUTOR_SECRET=$$secret__app_executor_secret","_APP_EXECUTOR_HOST=$$config__app_executor_host","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","_APP_STATSD_HOST=$$config__app_statsd_host","_APP_STATSD_PORT=$$config__app_statsd_port","_APP_MAINTENANCE_INTERVAL=$$config__app_maintenance_interval","_APP_MAINTENANCE_RETENTION_EXECUTION=$$config__app_maintenance_retention_execution","_APP_MAINTENANCE_RETENTION_CACHE=$$config__app_maintenance_retention_cache","_APP_MAINTENANCE_RETENTION_ABUSE=$$config__app_maintenance_retention_abuse","_APP_MAINTENANCE_RETENTION_AUDIT=$$config__app_maintenance_retention_audit","_APP_SMS_PROVIDER=$$config__app_sms_provider","_APP_SMS_FROM=$$config__app_sms_from","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":["$$id-uploads:/storage/uploads","$$id-cache:/storage/cache","$$id-config:/storage/config","$$id-certificates:/storage/certificates","$$id-functions:/storage/functions"],"ports":["80"],"proxy":[{"port":"80"}]},"$$id-executor":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_FUNCTIONS_TIMEOUT=$$config__app_functions_timeout","_APP_FUNCTIONS_BUILD_TIMEOUT=$$config__app_functions_build_timeout","_APP_FUNCTIONS_CONTAINERS=$$config__app_functions_containers","_APP_FUNCTIONS_RUNTIMES=$$config__app_functions_runtimes","_APP_FUNCTIONS_CPUS=$$config__app_functions_cpus","_APP_FUNCTIONS_MEMORY=$$config__app_functions_memory_allocated","_APP_FUNCTIONS_MEMORY_SWAP=$$config__app_functions_memory_swap","_APP_FUNCTIONS_INACTIVE_THRESHOLD=$$config__app_functions_inactive_threshold","_APP_EXECUTOR_SECRET=$$secret__app_executor_secret","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","_APP_STORAGE_DEVICE=$$config__app_storage_device","_APP_STORAGE_S3_ACCESS_KEY=$$secret__app_storage_s3_access_key","_APP_STORAGE_S3_SECRET=$$secret__app_storage_s3_secret","_APP_STORAGE_S3_REGION=$$config__app_storage_s3_region","_APP_STORAGE_S3_BUCKET=$$config__app_storage_s3_bucket","_APP_STORAGE_DO_SPACES_ACCESS_KEY=$$secret__app_storage_do_spaces_access_key","_APP_STORAGE_DO_SPACES_SECRET=$$secret__app_storage_do_spaces_secret","_APP_STORAGE_DO_SPACES_REGION=$$config__app_storage_do_spaces_region","_APP_STORAGE_DO_SPACES_BUCKET=$$config__app_storage_do_spaces_bucket","_APP_STORAGE_BACKBLAZE_ACCESS_KEY=$$secret__app_storage_backblaze_access_key","_APP_STORAGE_BACKBLAZE_SECRET=$$secret__app_storage_backblaze_secret","_APP_STORAGE_BACKBLAZE_REGION=$$config__app_storage_backblaze_region","_APP_STORAGE_BACKBLAZE_BUCKET=$$config__app_storage_backblaze_bucket","_APP_STORAGE_LINODE_ACCESS_KEY=$$secret__app_storage_linode_access_key","_APP_STORAGE_LINODE_SECRET=$$secret__app_storage_linode_secret","_APP_STORAGE_LINODE_REGION=$$config__app_storage_linode_region","_APP_STORAGE_LINODE_BUCKET=$$config__app_storage_linode_bucket","_APP_STORAGE_WASABI_ACCESS_KEY=$$secret__app_storage_wasabi_access_key","_APP_STORAGE_WASABI_SECRET=$$secret__app_storage_wasabi_secret","_APP_STORAGE_WASABI_REGION=$$config__app_storage_wasabi_region","_APP_STORAGE_WASABI_BUCKET=$$config__app_storage_wasabi_bucket","DOCKERHUB_PULL_USERNAME=$$config_dockerhub_pull_username","DOCKERHUB_PULL_PASSWORD=$$secret_dockerhub_pull_password","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":["$$id-functions:/storage/functions","$$id-builds:/storage/builds","/var/run/docker.sock:/var/run/docker.sock"],"entrypoint":"executor"},"$$id-influxdb":{"image":"appwrite/influxdb:1.5.0","environment":[],"volumes":["$$id-influxdb:/var/lib/influxdb"]},"$$id-maintenance":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_DOMAIN=$$config__app_domain","_APP_DOMAIN_TARGET=$$config__app_domain_target","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_DB_HOST=$$config__app_db_host","_APP_DB_PORT=$$config__app_db_port","_APP_DB_SCHEMA=$$config__app_db_schema","_APP_DB_USER=$$config__app_db_user","_APP_DB_PASS=$$secret__app_db_pass","_APP_MAINTENANCE_INTERVAL=$$config__app_maintenance_interval","_APP_MAINTENANCE_RETENTION_EXECUTION=$$config__app_maintenance_retention_execution","_APP_MAINTENANCE_RETENTION_CACHE=$$config__app_maintenance_retention_cache","_APP_MAINTENANCE_RETENTION_ABUSE=$$config__app_maintenance_retention_abuse","_APP_MAINTENANCE_RETENTION_AUDIT=$$config__app_maintenance_retention_audit","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"maintenance"},"$$id-mariadb":{"image":"mariadb:10.7","command":"--innodb-flush-method fsync","environment":["MARIADB_ROOT_PASSWORD=$$secret__app_db_root_pass","MARIADB_DATABASE=$$config__app_db_schema","MARIADB_USER=$$config__app_db_user","MARIADB_PASSWORD=$$secret__app_db_pass","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":["$$id-mariadb:/var/lib/mysql"]},"$$id-realtime":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_WORKER_PER_CORE=$$config__app_worker_per_core","_APP_OPTIONS_ABUSE=$$config__app_options_abuse","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_DB_HOST=$$config__app_db_host","_APP_DB_PORT=$$config__app_db_port","_APP_DB_SCHEMA=$$config__app_db_schema","_APP_DB_USER=$$config__app_db_user","_APP_DB_PASS=$$secret__app_db_pass","_APP_USAGE_STATS=$$config__app_usage_stats","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"realtime","proxy":[{"port":"80","pathPrefix":"/v1/realtime"}]},"$$id-redis":{"image":"redis:7.0.4-alpine","command":"--maxmemory 512mb --maxmemory-policy allkeys-lru --maxmemory-samples 5","environment":[],"volumes":["$$id-redis:/data"]},"$$id-schedule":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"schedule"},"$$id-telegraf":{"image":"appwrite/telegraf:1.4.0","environment":["_APP_INFLUXDB_HOST=$$config__app_influxdb_host","_APP_INFLUXDB_PORT=$$config__app_influxdb_port","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":["$$id-influxdb:/var/lib/influxdb"]},"$$id-usage-database":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_DB_HOST=$$config__app_db_host","_APP_DB_PORT=$$config__app_db_port","_APP_DB_SCHEMA=$$config__app_db_schema","_APP_DB_USER=$$config__app_db_user","_APP_DB_PASS=$$secret__app_db_pass","_APP_INFLUXDB_HOST=$$config__app_influxdb_host","_APP_INFLUXDB_PORT=$$config__app_influxdb_port","_APP_USAGE_TIMESERIES_INTERVAL=$$config__app_usage_timeseries_interval","_APP_USAGE_DATABASE_INTERVAL=$$config__app_usage_database_interval","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"usage --type database"},"$$id-usage":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_DB_HOST=$$config__app_db_host","_APP_DB_PORT=$$config__app_db_port","_APP_DB_SCHEMA=$$config__app_db_schema","_APP_DB_USER=$$config__app_db_user","_APP_DB_PASS=$$secret__app_db_pass","_APP_INFLUXDB_HOST=$$config__app_influxdb_host","_APP_INFLUXDB_PORT=$$config__app_influxdb_port","_APP_USAGE_TIMESERIES_INTERVAL=$$config__app_usage_timeseries_interval","_APP_USAGE_DATABASE_INTERVAL=$$config__app_usage_database_interval","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"usage --type timeseries"},"$$id-worker-audits":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_DB_HOST=$$config__app_db_host","_APP_DB_PORT=$$config__app_db_port","_APP_DB_SCHEMA=$$config__app_db_schema","_APP_DB_USER=$$config__app_db_user","_APP_DB_PASS=$$secret__app_db_pass","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"worker-audits"},"$$id-worker-builds":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_EXECUTOR_SECRET=$$secret__app_executor_secret","_APP_EXECUTOR_HOST=$$config__app_executor_host","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_DB_HOST=$$config__app_db_host","_APP_DB_PORT=$$config__app_db_port","_APP_DB_SCHEMA=$$config__app_db_schema","_APP_DB_USER=$$config__app_db_user","_APP_DB_PASS=$$secret__app_db_pass","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"worker-builds"},"$$id-worker-certificates":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_DOMAIN=$$config__app_domain","_APP_DOMAIN_TARGET=$$config__app_domain_target","_APP_SYSTEM_SECURITY_EMAIL_ADDRESS=$$config__app_system_security_email_address","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_DB_HOST=$$config__app_db_host","_APP_DB_PORT=$$config__app_db_port","_APP_DB_SCHEMA=$$config__app_db_schema","_APP_DB_USER=$$config__app_db_user","_APP_DB_PASS=$$secret__app_db_pass","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":["$$id-config:/storage/config","$$id-certificates:/storage/certificates"],"entrypoint":"worker-certificates"},"$$id-worker-databases":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_DB_HOST=$$config__app_db_host","_APP_DB_PORT=$$config__app_db_port","_APP_DB_SCHEMA=$$config__app_db_schema","_APP_DB_USER=$$config__app_db_user","_APP_DB_PASS=$$secret__app_db_pass","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"worker-databases"},"$$id-worker-deletes":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_DB_HOST=$$config__app_db_host","_APP_DB_PORT=$$config__app_db_port","_APP_DB_SCHEMA=$$config__app_db_schema","_APP_DB_USER=$$config__app_db_user","_APP_DB_PASS=$$secret__app_db_pass","_APP_STORAGE_DEVICE=$$config__app_storage_device","_APP_STORAGE_S3_ACCESS_KEY=$$secret__app_storage_s3_access_key","_APP_STORAGE_S3_SECRET=$$secret__app_storage_s3_secret","_APP_STORAGE_S3_REGION=$$config__app_storage_s3_region","_APP_STORAGE_S3_BUCKET=$$config__app_storage_s3_bucket","_APP_STORAGE_DO_SPACES_ACCESS_KEY=$$secret__app_storage_do_spaces_access_key","_APP_STORAGE_DO_SPACES_SECRET=$$secret__app_storage_do_spaces_secret","_APP_STORAGE_DO_SPACES_REGION=$$config__app_storage_do_spaces_region","_APP_STORAGE_DO_SPACES_BUCKET=$$config__app_storage_do_spaces_bucket","_APP_STORAGE_BACKBLAZE_ACCESS_KEY=$$secret__app_storage_backblaze_access_key","_APP_STORAGE_BACKBLAZE_SECRET=$$secret__app_storage_backblaze_secret","_APP_STORAGE_BACKBLAZE_REGION=$$config__app_storage_backblaze_region","_APP_STORAGE_BACKBLAZE_BUCKET=$$config__app_storage_backblaze_bucket","_APP_STORAGE_LINODE_ACCESS_KEY=$$secret__app_storage_linode_access_key","_APP_STORAGE_LINODE_SECRET=$$secret__app_storage_linode_secret","_APP_STORAGE_LINODE_REGION=$$config__app_storage_linode_region","_APP_STORAGE_LINODE_BUCKET=$$config__app_storage_linode_bucket","_APP_STORAGE_WASABI_ACCESS_KEY=$$secret__app_storage_wasabi_access_key","_APP_STORAGE_WASABI_SECRET=$$secret__app_storage_wasabi_secret","_APP_STORAGE_WASABI_REGION=$$config__app_storage_wasabi_region","_APP_STORAGE_WASABI_BUCKET=$$config__app_storage_wasabi_bucket","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","_APP_EXECUTOR_SECRET=$$secret__app_executor_secret","_APP_EXECUTOR_HOST=$$config__app_executor_host","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":["$$id-uploads:/storage/uploads","$$id-cache:/storage/cache","$$id-functions:/storage/functions","$$id-builds:/storage/builds","$$id-certificates:/storage/certificates"],"entrypoint":"worker-deletes"},"$$id-worker-functions":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_DB_HOST=$$config__app_db_host","_APP_DB_PORT=$$config__app_db_port","_APP_DB_SCHEMA=$$config__app_db_schema","_APP_DB_USER=$$config__app_db_user","_APP_DB_PASS=$$secret__app_db_pass","_APP_FUNCTIONS_TIMEOUT=$$config__app_functions_timeout","_APP_EXECUTOR_SECRET=$$secret__app_executor_secret","_APP_EXECUTOR_HOST=$$config__app_executor_host","_APP_USAGE_STATS=$$config__app_usage_stats","DOCKERHUB_PULL_USERNAME=$$config_dockerhub_pull_username","DOCKERHUB_PULL_PASSWORD=$$secret_dockerhub_pull_password","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"worker-functions"},"$$id-worker-mails":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_SYSTEM_EMAIL_NAME=$$config__app_system_email_name","_APP_SYSTEM_EMAIL_ADDRESS=$$config__app_system_email_address","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_SMTP_HOST=$$config__app_smtp_host","_APP_SMTP_PORT=$$config__app_smtp_port","_APP_SMTP_SECURE=$$config__app_smtp_secure","_APP_SMTP_USERNAME=$$config__app_smtp_username","_APP_SMTP_PASSWORD=$$secret__app_smtp_password","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"worker-mails"},"$$id-worker-messaging":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_SMS_PROVIDER=$$config__app_sms_provider","_APP_SMS_FROM=$$config__app_sms_from","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"worker-messaging"},"$$id-worker-webhooks":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_SYSTEM_SECURITY_EMAIL_ADDRESS=$$config__app_system_security_email_address","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"worker-webhooks"}},"variables":[{"id":"$$config__app_influxdb_host","name":"_APP_INFLUXDB_HOST","label":"InfluxDB | _APP_INFLUXDB_HOST","defaultValue":"$$id-influxdb","description":""},{"id":"$$config__app_influxdb_port","name":"_APP_INFLUXDB_PORT","label":"InfluxDB | _APP_INFLUXDB_PORT","defaultValue":"8086","description":"InfluxDB server TCP port."},{"id":"$$config__app_env","name":"_APP_ENV","label":"General | _APP_ENV","defaultValue":"production","description":"Set your server running environment."},{"id":"$$config__app_worker_per_core","name":"_APP_WORKER_PER_CORE","label":"General | _APP_WORKER_PER_CORE","defaultValue":"6","description":"Internal Worker per core for the API, Realtime and Executor containers. Can be configured to optimize performance."},{"id":"$$config__app_locale","name":"_APP_LOCALE","label":"General | _APP_LOCALE","defaultValue":"en","description":"Set your Appwrite's locale. By default, the locale is set to 'en'."},{"id":"$$config__app_console_whitelist_root","name":"_APP_CONSOLE_WHITELIST_ROOT","label":"General | _APP_CONSOLE_WHITELIST_ROOT","defaultValue":"enabled","description":"This option allows you to disable the creation of new users on the Appwrite console. When enabled only 1 user will be able to use the registration form. New users can be added by inviting them to your project. By default this option is enabled."},{"id":"$$config__app_console_whitelist_emails","name":"_APP_CONSOLE_WHITELIST_EMAILS","label":"General | _APP_CONSOLE_WHITELIST_EMAILS","defaultValue":"","description":"This option allows you to limit creation of new users on the Appwrite console. This option is very useful for small teams or sole developers. To enable it, pass a list of allowed email addresses separated by a comma."},{"id":"$$config__app_console_whitelist_ips","name":"_APP_CONSOLE_WHITELIST_IPS","label":"General | _APP_CONSOLE_WHITELIST_IPS","defaultValue":"","description":"This last option allows you to limit creation of users in Appwrite console for users sharing the same set of IP addresses. This option is very useful for team working with a VPN service or a company IP.\\n\\nTo enable/activate this option, pass a list of allowed IP addresses separated by a comma."},{"id":"$$config__app_system_email_name","name":"_APP_SYSTEM_EMAIL_NAME","label":"General | _APP_SYSTEM_EMAIL_NAME","defaultValue":"Appwrite","description":"This is the sender name value that will appear on email messages sent to developers from the Appwrite console. You can use url encoded strings for spaces and special chars."},{"id":"$$config__app_system_email_address","name":"_APP_SYSTEM_EMAIL_ADDRESS","label":"General | _APP_SYSTEM_EMAIL_ADDRESS","defaultValue":"[email protected]","description":"This is the sender email address that will appear on email messages sent to developers from the Appwrite console. You should choose an email address that is allowed to be used from your SMTP server to avoid the server email ending in the users' SPAM folders."},{"id":"$$config__app_system_security_email_address","name":"_APP_SYSTEM_SECURITY_EMAIL_ADDRESS","label":"General | _APP_SYSTEM_SECURITY_EMAIL_ADDRESS","defaultValue":"[email protected]","description":"This is the email address used to issue SSL certificates for custom domains or the user agent in your webhooks payload."},{"id":"$$config__app_system_response_format","name":"_APP_SYSTEM_RESPONSE_FORMAT","label":"General | _APP_SYSTEM_RESPONSE_FORMAT","defaultValue":"","description":"Use this environment variable to set the default Appwrite HTTP response format to support an older version of Appwrite. This option is useful to overcome breaking changes between versions. You can also use the X-Appwrite-Response-Format HTTP request header to overwrite the response for a specific request. This variable accepts any valid Appwrite version. To use the current version format, leave the value of the variable empty."},{"id":"$$config__app_options_abuse","name":"_APP_OPTIONS_ABUSE","label":"General | _APP_OPTIONS_ABUSE","defaultValue":"enabled","description":"Allows you to disable abuse checks and API rate limiting. By default, set to 'enabled'. To cancel the abuse checking, set to 'disabled'. It is not recommended to disable this check-in a production environment."},{"id":"$$config__app_options_force_https","name":"_APP_OPTIONS_FORCE_HTTPS","label":"General | _APP_OPTIONS_FORCE_HTTPS","defaultValue":"disabled","description":"Allows you to force HTTPS connection to your API. This feature redirects any HTTP call to HTTPS and adds the 'Strict-Transport-Security' header to all HTTP responses."},{"id":"$$secret__app_openssl_key_v1","name":"_APP_OPENSSL_KEY_V1","label":"General | _APP_OPENSSL_KEY_V1","defaultValue":"$$generate_hex(256)","description":"This is your server private secret key that is used to encrypt all sensitive data on your server. Appwrite server encrypts all secret data on your server like webhooks, HTTP passwords, user sessions, and storage files. Keep it a secret and have a backup for it."},{"id":"$$config__app_domain","name":"_APP_DOMAIN","label":"General | _APP_DOMAIN","defaultValue":"$$generate_domain","description":"Your Appwrite domain address. When setting a public suffix domain, Appwrite will attempt to issue a valid SSL certificate automatically. When used with a dev domain, Appwrite will assign a self-signed SSL certificate. The default value is 'localhost'."},{"id":"$$config__app_domain_target","name":"_APP_DOMAIN_TARGET","label":"General | _APP_DOMAIN_TARGET","defaultValue":"$$generate_fqdn","description":"A DNS A record hostname to serve as a CNAME target for your Appwrite custom domains. You can use the same value as used for the Appwrite '_APP_DOMAIN' variable. The default value is 'localhost'."},{"id":"$$config__app_redis_host","name":"_APP_REDIS_HOST","label":"Redis | _APP_REDIS_HOST","defaultValue":"$$id-redis","description":""},{"id":"$$config__app_redis_port","name":"_APP_REDIS_PORT","label":"Redis | _APP_REDIS_PORT","defaultValue":"6379","description":"Redis server TCP port."},{"id":"$$config__app_redis_user","name":"_APP_REDIS_USER","label":"Redis | _APP_REDIS_USER","defaultValue":"","description":"Redis server user. This is an optional variable. Default value is an empty string."},{"id":"$$secret__app_redis_pass","name":"_APP_REDIS_PASS","label":"Redis | _APP_REDIS_PASS","defaultValue":"","description":"Redis server password. This is an optional variable. Default value is an empty string."},{"id":"$$config__app_db_host","name":"_APP_DB_HOST","label":"MariaDB | _APP_DB_HOST","defaultValue":"$$id-mariadb","description":""},{"id":"$$config__app_db_port","name":"_APP_DB_PORT","label":"MariaDB | _APP_DB_PORT","defaultValue":"3306","description":"MariaDB server TCP port."},{"id":"$$config__app_db_schema","name":"_APP_DB_SCHEMA","label":"MariaDB | _APP_DB_SCHEMA","defaultValue":"appwrite","description":"MariaDB server database schema."},{"id":"$$config__app_db_user","name":"_APP_DB_USER","label":"MariaDB | _APP_DB_USER","defaultValue":"user","description":"MariaDB server user name."},{"id":"$$secret__app_db_root_pass","name":"MARIADB_ROOT_PASSWORD","label":"MariaDB | MARIADB_ROOT_PASSWORD","defaultValue":"$$generate_hex(16)","description":"MariaDB server root user password."},{"id":"$$secret__app_db_pass","name":"_APP_DB_PASS","label":"MariaDB | _APP_DB_PASS","defaultValue":"$$generate_hex(16)","description":"MariaDB server user password."},{"id":"$$config__app_smtp_host","name":"_APP_SMTP_HOST","label":"SMTP | _APP_SMTP_HOST","defaultValue":"","description":"SMTP server host name address. Use an empty string to disable all mail sending from the server. The default value for this variable is an empty string."},{"id":"$$config__app_smtp_port","name":"_APP_SMTP_PORT","label":"SMTP | _APP_SMTP_PORT","defaultValue":"","description":"SMTP server TCP port. Empty by default."},{"id":"$$config__app_smtp_secure","name":"_APP_SMTP_SECURE","label":"SMTP | _APP_SMTP_SECURE","defaultValue":"","description":"SMTP secure connection protocol. Empty by default, change to 'tls' if running on a secure connection."},{"id":"$$config__app_smtp_username","name":"_APP_SMTP_USERNAME","label":"SMTP | _APP_SMTP_USERNAME","defaultValue":"","description":"SMTP server user name. Empty by default."},{"id":"$$secret__app_smtp_password","name":"_APP_SMTP_PASSWORD","label":"SMTP | _APP_SMTP_PASSWORD","defaultValue":"","description":"SMTP server user password. Empty by default."},{"id":"$$config__app_usage_stats","name":"_APP_USAGE_STATS","label":"General | _APP_USAGE_STATS","defaultValue":"enabled","description":"This variable allows you to disable the collection and displaying of usage stats. This value is set to 'enabled' by default, to disable the usage stats set the value to 'disabled'. When disabled, it's recommended to turn off the Worker Usage, Influxdb and Telegraf containers for better resource usage."},{"id":"$$config__app_storage_limit","name":"_APP_STORAGE_LIMIT","label":"Storage | _APP_STORAGE_LIMIT","defaultValue":"30000000","description":"Maximum file size allowed for file upload. The default value is 30MB. You should pass your size limit value in bytes."},{"id":"$$config__app_storage_preview_limit","name":"_APP_STORAGE_PREVIEW_LIMIT","label":"Storage | _APP_STORAGE_PREVIEW_LIMIT","defaultValue":"20000000","description":"Maximum file size allowed for file image preview. The default value is 20MB. You should pass your size limit value in bytes."},{"id":"$$config__app_storage_antivirus_enabled","name":"_APP_STORAGE_ANTIVIRUS","label":"Storage | _APP_STORAGE_ANTIVIRUS","defaultValue":"disabled","description":"This variable allows you to disable the internal anti-virus scans. This value is set to 'disabled' by default, to enable the scans set the value to 'enabled'. Before enabling, you must add the ClamAV service and depend on it on main Appwrite service."},{"id":"$$config__app_storage_antivirus_host","name":"_APP_STORAGE_ANTIVIRUS_HOST","label":"Storage | _APP_STORAGE_ANTIVIRUS_HOST","defaultValue":"clamav","description":"ClamAV server host name address."},{"id":"$$config__app_storage_antivirus_port","name":"_APP_STORAGE_ANTIVIRUS_PORT","label":"Storage | _APP_STORAGE_ANTIVIRUS_PORT","defaultValue":"3310","description":"ClamAV server TCP port."},{"id":"$$config__app_storage_device","name":"_APP_STORAGE_DEVICE","label":"Storage | _APP_STORAGE_DEVICE","defaultValue":"Local","description":"Select default storage device. The default value is 'Local'. List of supported adapters are 'Local', 'S3', 'DOSpaces', 'Backblaze', 'Linode' and 'Wasabi'."},{"id":"$$secret__app_storage_s3_access_key","name":"_APP_STORAGE_S3_ACCESS_KEY","label":"Storage | _APP_STORAGE_S3_ACCESS_KEY","defaultValue":"","description":"AWS S3 storage access key. Required when the storage adapter is set to S3. You can get your access key from your AWS console."},{"id":"$$secret__app_storage_s3_secret","name":"_APP_STORAGE_S3_SECRET","label":"Storage | _APP_STORAGE_S3_SECRET","defaultValue":"","description":"AWS S3 storage secret key. Required when the storage adapter is set to S3. You can get your secret key from your AWS console."},{"id":"$$config__app_storage_s3_region","name":"_APP_STORAGE_S3_REGION","label":"Storage | _APP_STORAGE_S3_REGION","defaultValue":"us-east-1","description":"AWS S3 storage region. Required when storage adapter is set to S3. You can find your region info for your bucket from AWS console."},{"id":"$$config__app_storage_s3_bucket","name":"_APP_STORAGE_S3_BUCKET","label":"Storage | _APP_STORAGE_S3_BUCKET","defaultValue":"","description":"AWS S3 storage bucket. Required when storage adapter is set to S3. You can create buckets in your AWS console."},{"id":"$$secret__app_storage_do_spaces_access_key","name":"_APP_STORAGE_DO_SPACES_ACCESS_KEY","label":"Storage | _APP_STORAGE_DO_SPACES_ACCESS_KEY","defaultValue":"","description":"DigitalOcean spaces access key. Required when the storage adapter is set to DOSpaces. You can get your access key from your DigitalOcean console."},{"id":"$$secret__app_storage_do_spaces_secret","name":"_APP_STORAGE_DO_SPACES_SECRET","label":"Storage | _APP_STORAGE_DO_SPACES_SECRET","defaultValue":"","description":"DigitalOcean spaces secret key. Required when the storage adapter is set to DOSpaces. You can get your secret key from your DigitalOcean console."},{"id":"$$config__app_storage_do_spaces_region","name":"_APP_STORAGE_DO_SPACES_REGION","label":"Storage | _APP_STORAGE_DO_SPACES_REGION","defaultValue":"us-east-1","description":"DigitalOcean spaces region. Required when storage adapter is set to DOSpaces. You can find your region info for your space from DigitalOcean console."},{"id":"$$config__app_storage_do_spaces_bucket","name":"_APP_STORAGE_DO_SPACES_BUCKET","label":"Storage | _APP_STORAGE_DO_SPACES_BUCKET","defaultValue":"","description":"DigitalOcean spaces bucket. Required when storage adapter is set to DOSpaces. You can create spaces in your DigitalOcean console."},{"id":"$$secret__app_storage_backblaze_access_key","name":"_APP_STORAGE_BACKBLAZE_ACCESS_KEY","label":"Storage | _APP_STORAGE_BACKBLAZE_ACCESS_KEY","defaultValue":"","description":"Backblaze access key. Required when the storage adapter is set to Backblaze. Your Backblaze keyID will be your access key. You can get your keyID from your Backblaze console."},{"id":"$$secret__app_storage_backblaze_secret","name":"_APP_STORAGE_BACKBLAZE_SECRET","label":"Storage | _APP_STORAGE_BACKBLAZE_SECRET","defaultValue":"","description":"Backblaze secret key. Required when the storage adapter is set to Backblaze. Your Backblaze applicationKey will be your secret key. You can get your applicationKey from your Backblaze console."},{"id":"$$config__app_storage_backblaze_region","name":"_APP_STORAGE_BACKBLAZE_REGION","label":"Storage | _APP_STORAGE_BACKBLAZE_REGION","defaultValue":"us-west-004","description":"Backblaze region. Required when storage adapter is set to Backblaze. You can find your region info from your Backblaze console."},{"id":"$$config__app_storage_backblaze_bucket","name":"_APP_STORAGE_BACKBLAZE_BUCKET","label":"Storage | _APP_STORAGE_BACKBLAZE_BUCKET","defaultValue":"","description":"Backblaze bucket. Required when storage adapter is set to Backblaze. You can create your bucket from your Backblaze console."},{"id":"$$secret__app_storage_linode_access_key","name":"_APP_STORAGE_LINODE_ACCESS_KEY","label":"Storage | _APP_STORAGE_LINODE_ACCESS_KEY","defaultValue":"","description":"Linode object storage access key. Required when the storage adapter is set to Linode. You can get your access key from your Linode console."},{"id":"$$secret__app_storage_linode_secret","name":"_APP_STORAGE_LINODE_SECRET","label":"Storage | _APP_STORAGE_LINODE_SECRET","defaultValue":"","description":"Linode object storage secret key. Required when the storage adapter is set to Linode. You can get your secret key from your Linode console."},{"id":"$$config__app_storage_linode_region","name":"_APP_STORAGE_LINODE_REGION","label":"Storage | _APP_STORAGE_LINODE_REGION","defaultValue":"eu-central-1","description":"Linode object storage region. Required when storage adapter is set to Linode. You can find your region info from your Linode console."},{"id":"$$config__app_storage_linode_bucket","name":"_APP_STORAGE_LINODE_BUCKET","label":"Storage | _APP_STORAGE_LINODE_BUCKET","defaultValue":"","description":"Linode object storage bucket. Required when storage adapter is set to Linode. You can create buckets in your Linode console."},{"id":"$$secret__app_storage_wasabi_access_key","name":"_APP_STORAGE_WASABI_ACCESS_KEY","label":"Storage | _APP_STORAGE_WASABI_ACCESS_KEY","defaultValue":"","description":"Wasabi access key. Required when the storage adapter is set to Wasabi. You can get your access key from your Wasabi console."},{"id":"$$secret__app_storage_wasabi_secret","name":"_APP_STORAGE_WASABI_SECRET","label":"Storage | _APP_STORAGE_WASABI_SECRET","defaultValue":"","description":"Wasabi secret key. Required when the storage adapter is set to Wasabi. You can get your secret key from your Wasabi console."},{"id":"$$config__app_storage_wasabi_region","name":"_APP_STORAGE_WASABI_REGION","label":"Storage | _APP_STORAGE_WASABI_REGION","defaultValue":"eu-central-1","description":"Wasabi region. Required when storage adapter is set to Wasabi. You can find your region info from your Wasabi console."},{"id":"$$config__app_storage_wasabi_bucket","name":"_APP_STORAGE_WASABI_BUCKET","label":"Storage | _APP_STORAGE_WASABI_BUCKET","defaultValue":"","description":"Wasabi bucket. Required when storage adapter is set to Wasabi. You can create buckets in your Wasabi console."},{"id":"$$config__app_functions_size_limit","name":"_APP_FUNCTIONS_SIZE_LIMIT","label":"Functions | _APP_FUNCTIONS_SIZE_LIMIT","defaultValue":"30000000","description":"The maximum size deployment in bytes. The default value is 30MB."},{"id":"$$config__app_functions_timeout","name":"_APP_FUNCTIONS_TIMEOUT","label":"Functions | _APP_FUNCTIONS_TIMEOUT","defaultValue":"900","description":"The maximum number of seconds allowed as a timeout value when creating a new function. The default value is 900 seconds."},{"id":"$$config__app_functions_build_timeout","name":"_APP_FUNCTIONS_BUILD_TIMEOUT","label":"Functions | _APP_FUNCTIONS_BUILD_TIMEOUT","defaultValue":"900","description":"The maximum number of seconds allowed as a timeout value when building a new function. The default value is 900 seconds."},{"id":"$$config__app_functions_containers","name":"_APP_FUNCTIONS_CONTAINERS","label":"Functions | _APP_FUNCTIONS_CONTAINERS","defaultValue":"10","description":"The maximum number of containers Appwrite is allowed to keep alive in the background for function environments. Running containers allow faster execution time as there is no need to recreate each container every time a function gets executed. The default value is 10."},{"id":"$$config__app_functions_cpus","name":"_APP_FUNCTIONS_CPUS","label":"Functions | _APP_FUNCTIONS_CPUS","defaultValue":"","description":"The maximum number of CPU core a single cloud function is allowed to use. Please note that setting a value higher than available cores will result in a function error, which might result in an error. The default value is empty. When it's empty, CPU limit will be disabled."},{"id":"$$config__app_functions_memory_allocated","name":"_APP_FUNCTIONS_MEMORY","label":"Functions | _APP_FUNCTIONS_MEMORY","defaultValue":"","description":"The maximum amount of memory a single cloud function is allowed to use in megabytes. The default value is empty. When it's empty, memory limit will be disabled."},{"id":"$$config__app_functions_memory_swap","name":"_APP_FUNCTIONS_MEMORY_SWAP","label":"Functions | _APP_FUNCTIONS_MEMORY_SWAP","defaultValue":"","description":"The maximum amount of swap memory a single cloud function is allowed to use in megabytes. The default value is empty. When it's empty, swap memory limit will be disabled."},{"id":"$$config__app_functions_runtimes","name":"_APP_FUNCTIONS_RUNTIMES","label":"Functions | _APP_FUNCTIONS_RUNTIMES","defaultValue":"node-18.0","description":"This option allows you to limit the available environments for cloud functions. This option is very useful for low-cost servers to safe disk space.\nTo enable/activate this option, pass a list of allowed environments separated by a comma.\nCurrently, supported environments are: node-14.5, node-16.0, node-18.0, php-8.0, php-8.1, ruby-3.0, ruby-3.1, python-3.8, python-3.9, python-3.10, deno-1.21, deno-1.24, dart-2.15, dart-2.16, dart-2.17, dotnet-3.1, dotnet-6.0, java-8.0, java-11.0, java-17.0, java-18.0, swift-5.5, kotlin-1.6, cpp-17.0"},{"id":"$$secret__app_executor_secret","name":"_APP_EXECUTOR_SECRET","label":"Functions | _APP_EXECUTOR_SECRET","defaultValue":"$$generate_hex(16)","description":"The secret key used by Appwrite to communicate with the function executor."},{"id":"$$config__app_executor_host","name":"_APP_EXECUTOR_HOST","label":"","defaultValue":"http://$$id-executor/v1","description":""},{"id":"$$config__app_logging_provider","name":"_APP_LOGGING_PROVIDER","label":"General | _APP_LOGGING_PROVIDER","defaultValue":"","description":"This variable allows you to enable logging errors to 3rd party providers. This value is empty by default, to enable the logger set the value to one of 'sentry', 'raygun', 'appsignal', 'logowl'"},{"id":"$$config__app_logging_config","name":"_APP_LOGGING_CONFIG","label":"General | _APP_LOGGING_CONFIG","defaultValue":"","description":"This variable configures authentication to 3rd party error logging providers. If using Sentry, this should be 'SENTRY_API_KEY;SENTRY_APP_ID'. If using Raygun, this should be Raygun API key. If using AppSignal, this should be AppSignal API key. If using LogOwl, this should be LogOwl Service Ticket."},{"id":"$$config__app_statsd_host","name":"_APP_STATSD_HOST","label":"","defaultValue":"$$id-telegraf","description":""},{"id":"$$config__app_statsd_port","name":"_APP_STATSD_PORT","label":"StatsD | _APP_STATSD_PORT","defaultValue":"8125","description":"StatsD server TCP port."},{"id":"$$config__app_maintenance_interval","name":"_APP_MAINTENANCE_INTERVAL","label":"Functions | _APP_MAINTENANCE_INTERVAL","defaultValue":"86400","description":"Interval value containing the number of seconds that the Appwrite maintenance process should wait before executing system cleanups and optimizations. The default value is 86400 seconds (1 day)."},{"id":"$$config__app_maintenance_retention_execution","name":"_APP_MAINTENANCE_RETENTION_EXECUTION","label":"Functions | _APP_MAINTENANCE_RETENTION_EXECUTION","defaultValue":"1209600","description":"The maximum duration (in seconds) upto which to retain execution logs. The default value is 1209600 seconds (14 days)."},{"id":"$$config__app_maintenance_retention_cache","name":"_APP_MAINTENANCE_RETENTION_CACHE","label":"Functions | _APP_MAINTENANCE_RETENTION_CACHE","defaultValue":"2592000","description":"The maximum duration (in seconds) upto which to retain cached files. The default value is 2592000 seconds (30 days)."},{"id":"$$config__app_maintenance_retention_abuse","name":"_APP_MAINTENANCE_RETENTION_ABUSE","label":"Functions | _APP_MAINTENANCE_RETENTION_ABUSE","defaultValue":"86400","description":"The maximum duration (in seconds) upto which to retain abuse logs. The default value is 86400 seconds (1 day)."},{"id":"$$config__app_maintenance_retention_audit","name":"_APP_MAINTENANCE_RETENTION_AUDIT","label":"Functions | _APP_MAINTENANCE_RETENTION_AUDIT","defaultValue":"1209600","description":"The maximum duration (in seconds) upto which to retain audit logs. The default value is 1209600 seconds (14 days)."},{"id":"$$config__app_sms_provider","name":"_APP_SMS_PROVIDER","label":"Phone | _APP_SMS_PROVIDER","defaultValue":"","description":"Provider used for delivering SMS for Phone authentication. Use the following format: 'sms://[USER]:[SECRET]@[PROVIDER]'. Available providers are twilio, text-magic, telesign, msg91, and vonage."},{"id":"$$config__app_sms_from","name":"_APP_SMS_FROM","label":"Phone | _APP_SMS_FROM","defaultValue":"","description":"Phone number used for sending out messages. Must start with a leading '+' and maximum of 15 digits without spaces (+123456789)."},{"id":"$$config__app_functions_inactive_threshold","name":"_APP_FUNCTIONS_INACTIVE_THRESHOLD","label":"Functions | _APP_FUNCTIONS_INACTIVE_THRESHOLD","defaultValue":"60","description":"The minimum time a function can be inactive before it's container is shutdown and put to sleep. The default value is 60 seconds"},{"id":"$$config_open_runtimes_network","name":"OPEN_RUNTIMES_NETWORK","label":"","defaultValue":"$$generate_network","description":""},{"id":"$$config_dockerhub_pull_username","name":"DOCKERHUB_PULL_USERNAME","label":"Functions | DOCKERHUB_PULL_USERNAME","defaultValue":"","description":"The username for hub.docker.com. This variable is used to pull images from hub.docker.com."},{"id":"$$secret_dockerhub_pull_password","name":"DOCKERHUB_PULL_PASSWORD","label":"Functions | DOCKERHUB_PULL_PASSWORD","defaultValue":"","description":"The password for hub.docker.com. This variable is used to pull images from hub.docker.com."},{"id":"$$config__app_usage_timeseries_interval","name":"_APP_USAGE_TIMESERIES_INTERVAL","label":"General | _APP_USAGE_TIMESERIES_INTERVAL","defaultValue":"30","description":"Interval value containing the number of seconds that the Appwrite usage process should wait before aggregating stats and syncing it to mariadb from InfluxDB. The default value is 30 seconds."},{"id":"$$config__app_usage_database_interval","name":"_APP_USAGE_DATABASE_INTERVAL","label":"General | _APP_USAGE_DATABASE_INTERVAL","defaultValue":"900","description":"Interval value containing the number of seconds that the Appwrite usage process should wait before aggregating stats from data in Appwrite Database. The default value is 15 minutes."}]},{"templateVersion":"1.0.0","defaultVersion":"latest","documentation":"https://docs.weblate.org/en/latest/admin/install/docker.html","description":"A copylefted libre software web-based continuous localization system.","type":"weblate","name":"Weblate","labels":["translate","localization"],"services":{"$$id":{"name":"Weblate","depends_on":["$$id-postgresql","$$id-redis"],"image":"weblate/weblate:$$core_version","volumes":["$$id-data:/app/data"],"environment":["WEBLATE_SITE_DOMAIN=$$config_weblate_site_domain","WEBLATE_ADMIN_PASSWORD=$$secret_weblate_admin_password","POSTGRES_PASSWORD=$$secret_postgres_password","POSTGRES_USER=$$config_postgres_user","POSTGRES_DATABASE=$$config_postgres_db","POSTGRES_HOST=$$id-postgresql","POSTGRES_PORT=5432","REDIS_HOST=$$id-redis"],"ports":["8080"]},"$$id-postgresql":{"name":"PostgreSQL","depends_on":[],"image":"postgres:14-alpine","volumes":["$$id-postgresql-data:/var/lib/postgresql/data"],"environment":["POSTGRES_USER=$$config_postgres_user","POSTGRES_PASSWORD=$$secret_postgres_password","POSTGRES_DB=$$config_postgres_db"],"ports":[]},"$$id-redis":{"name":"Redis","depends_on":[],"image":"redis:7-alpine","volumes":["$$id-redis-data:/data"],"environment":[],"ports":[]}},"variables":[{"id":"$$config_weblate_site_domain","name":"WEBLATE_SITE_DOMAIN","label":"Weblate Domain","defaultValue":"$$generate_domain","description":""},{"id":"$$secret_weblate_admin_password","name":"WEBLATE_ADMIN_PASSWORD","label":"Weblate Admin Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true},{"id":"$$config_postgres_user","main":"$$id-postgresql","name":"POSTGRES_USER","label":"PostgreSQL User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_postgres_password","main":"$$id-postgresql","name":"POSTGRES_PASSWORD","label":"PostgreSQL Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true},{"id":"$$config_postgres_db","main":"$$id-postgresql","name":"POSTGRES_DB","label":"PostgreSQL Database","defaultValue":"weblate","description":""}]},{"templateVersion":"1.0.0","defaultVersion":"2022.10.14-1a5b0965","documentation":"https://docs.searxng.org/","type":"searxng","name":"SearXNG","description":"Free internet metasearch engine which aggregates results from more than 70 search services.","services":{"$$id":{"name":"SearXNG","depends_on":["$$id-redis"],"image":"searxng/searxng:$$core_version","volumes":["$$id-searxng:/etc/searxng"],"environment":["SEARXNG_BASE_URL=$$config_searxng_base_url"],"ports":["8080"],"cap_drop":["ALL"],"cap_add":["CHOWN","SETGID","SETUID","DAC_OVERRIDE"],"files":[{"location":"/etc/searxng/settings.yml","content":"\n # see https://docs.searxng.org/admin/engines/settings.html#use-default-settings\n use_default_settings: true\n server:\n secret_key: $$secret_secret_key\n limiter: true\n image_proxy: true\n ui:\n static_use_hash: true\n redis:\n url: redis://:$$secret_redis_password@$$id-redis:6379/0"}]},"$$id-redis":{"name":"Redis","command":"redis-server --requirepass $$secret_redis_password --save \"\" --appendonly \"no\"","depends_on":[],"image":"redis:7-alpine","volumes":["$$id-redis-data:/data"],"environment":["REDIS_PASSWORD=$$secret_redis_password"],"ports":[],"cap_drop":["ALL"],"cap_add":["SETGID","SETUID","DAC_OVERRIDE"]}},"variables":[{"id":"$$config_searxng_base_url","name":"SEARXNG_BASE_URL","label":"SearXNG Base URL","defaultValue":"$$generate_fqdn","description":""},{"id":"$$secret_secret_key","name":"SECRET_KEY","label":"Secret Key","defaultValue":"$$generate_hex(64)","description":""},{"id":"$$secret_redis_password","name":"REDIS_PASSWORD","label":"Redis Password","defaultValue":"$$generate_password","description":""}]},{"templateVersion":"1.0.0","defaultVersion":"v2.0.6","documentation":"https://glitchtip.com/documentation","type":"glitchtip","name":"GlitchTip","description":"Simple, open source error tracking.","labels":["sentry","bugsnag"],"services":{"$$id":{"name":"GlitchTip","depends_on":["$$id-postgresql","$$id-redis"],"image":"glitchtip/glitchtip:$$core_version","volumes":[],"environment":["PORT=$$config_port","GLITCHTIP_DOMAIN=$$config_glitchtip_domain","SECRET_KEY=$$secret_secret_key","DATABASE_URL=$$secret_database_url","REDIS_URL=$$secret_redis_url","DEFAULT_FROM_EMAIL=$$config_default_from_email","EMAIL_URL=$$secret_email_url","EMAIL_HOST=$$config_email_host","EMAIL_PORT=$$config_email_port","EMAIL_HOST_USER=$$config_email_host_user","EMAIL_HOST_PASSWORD=$$secret_email_host_password","EMAIL_USE_TLS=$$config_email_use_tls","EMAIL_USE_SSL=$$config_email_use_ssl","EMAIL_BACKEND=$$config_email_backend","MAILGUN_API_KEY=$$secret_mailgun_api_key","SENDGRID_API_KEY=$$secret_sendgrid_api_key","ENABLE_OPEN_USER_REGISTRATION=$$config_enable_open_user_registration","DJANGO_SUPERUSER_EMAIL=$$config_django_superuser_email","DJANGO_SUPERUSER_PASSWORD=$$secret_django_superuser_password","DJANGO_SUPERUSER_USERNAME=$$config_django_superuser_username","CELERY_WORKER_CONCURRENCY=$$config_celery_worker_concurrency"],"ports":["8000"]},"$$id-worker":{"name":"Celery Worker","command":"./bin/run-celery-with-beat.sh","depends_on":["$$id-postgresql","$$id-redis"],"image":"glitchtip/glitchtip:$$core_version","environment":["GLITCHTIP_DOMAIN=$$config_glitchtip_domain","SECRET_KEY=$$secret_secret_key","DATABASE_URL=$$secret_database_url","REDIS_URL=$$secret_redis_url","DEFAULT_FROM_EMAIL=$$config_default_from_email","EMAIL_URL=$$secret_email_url","CELERY_WORKER_CONCURRENCY=$$config_celery_worker_concurrency"],"ports":[]},"$$id-migrate":{"exclude":true,"name":"Migrate","command":"./manage.py migrate","depends_on":["$$id-postgresql","$$id-redis"],"image":"glitchtip/glitchtip:$$core_version","environment":["GLITCHTIP_DOMAIN=$$config_glitchtip_domain","SECRET_KEY=$$secret_secret_key","DATABASE_URL=$$secret_database_url","REDIS_URL=$$secret_redis_url","DEFAULT_FROM_EMAIL=$$config_default_from_email","EMAIL_URL=$$secret_email_url"],"ports":[]},"$$id-postgresql":{"name":"PostgreSQL","depends_on":[],"image":"postgres:14-alpine","volumes":["$$id-postgresql-data:/var/lib/postgresql/data"],"environment":["POSTGRES_USER=$$config_postgres_user","POSTGRES_PASSWORD=$$secret_postgres_password","POSTGRES_DB=$$config_postgres_db"],"ports":[]},"$$id-redis":{"name":"Redis","depends_on":[],"image":"redis:7-alpine","volumes":["$$id-postgresql-redis-data:/data"],"environment":[],"ports":[]}},"variables":[{"id":"$$config_django_superuser_username","name":"DJANGO_SUPERUSER_USERNAME","label":"Django Superuser Username","defaultValue":"$$generate_username","description":""},{"id":"$$secret_django_superuser_password","name":"DJANGO_SUPERUSER_PASSWORD","label":"Django Superuser Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true},{"id":"$$config_port","name":"PORT","label":"GlitchTip Port","defaultValue":"8000","description":""},{"id":"$$config_celery_worker_concurrency","main":"$$id-worker","name":"CELERY_WORKER_CONCURRENCY","label":"Celery Worker Concurrency","defaultValue":"2","description":""},{"id":"$$config_glitchtip_domain","name":"GLITCHTIP_DOMAIN","label":"GlitchTip Domain","defaultValue":"$$generate_fqdn","description":""},{"id":"$$secret_email_url","name":"EMAIL_URL","label":"SMTP Email URL","defaultValue":"smtp://$$config_email_host_user:$$secret_email_host_password@$$config_email_host:$$config_email_port","description":""},{"id":"$$secret_database_url","name":"DATABASE_URL","label":"Database URL for PostgreSQL","defaultValue":"postgresql://$$config_postgres_user:$$secret_postgres_password@$$id-postgresql:5432/$$config_postgres_db","description":""},{"id":"$$secret_redis_url","name":"REDIS_URL","label":"Redis URL","defaultValue":"redis://$$id-redis:6379/0","description":""},{"id":"$$config_default_from_email","name":"DEFAULT_FROM_EMAIL","label":"Default Email Address","defaultValue":"[email protected]","description":""},{"id":"$$config_email_host","name":"EMAIL_HOST","label":"Email SMTP Host","defaultValue":"","description":""},{"id":"$$config_email_port","name":"EMAIL_PORT","label":"Email SMTP Port","defaultValue":"25","description":""},{"id":"$$config_email_host_user","name":"EMAIL_HOST_USER","label":"Email SMTP User","defaultValue":"","description":""},{"id":"$$secret_email_host_password","name":"EMAIL_HOST_PASSWORD","label":"Email SMTP Password","defaultValue":"","description":""},{"id":"$$config_email_use_tls","name":"EMAIL_USE_TLS","label":"Email Use TLS","defaultValue":"false","description":""},{"id":"$$config_email_use_ssl","name":"EMAIL_USE_SSL","label":"Email Use SSL","defaultValue":"false","description":""},{"id":"$$secret_email_smtp_password","name":"EMAIL_SMTP_PASSWORD","label":"SMTP Password","defaultValue":"","description":""},{"id":"$$config_email_backend","name":"EMAIL_BACKEND","label":"Email Backend","defaultValue":"","description":""},{"id":"$$secret_mailgun_api_key","name":"MAILGUN_API_KEY","label":"Mailgun API Key","defaultValue":"","description":"","showOnConfiguration":true},{"id":"$$secret_sendgrid_api_key","name":"SENDGRID_API_KEY","label":"Sendgrid API Key","defaultValue":"","description":"","showOnConfiguration":true},{"id":"$$config_enable_open_user_registration","name":"ENABLE_OPEN_USER_REGISTRATION","label":"Enable Open User Registration","defaultValue":"true","description":""},{"id":"$$config_django_superuser_email","name":"DJANGO_SUPERUSER_EMAIL","label":"Django Superuser Email","defaultValue":"[email protected]","description":""},{"id":"$$config_postgres_user","main":"$$id-postgresql","name":"POSTGRES_USER","label":"PostgreSQL User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_postgres_password","main":"$$id-postgresql","name":"POSTGRES_PASSWORD","label":"PostgreSQL Password","defaultValue":"$$generate_password","description":""},{"id":"$$config_postgres_db","main":"$$id-postgresql","name":"POSTGRES_DB","label":"PostgreSQL Database","defaultValue":"glitchtip","description":""}]},{"templateVersion":"1.0.0","defaultVersion":"v2.13.0","documentation":"https://hasura.io/docs/latest/index/","type":"hasura","name":"Hasura","description":"Instant realtime GraphQL APIs on any Postgres application, existing or new.","labels":["graphql","database"],"services":{"$$id":{"name":"Hasura","depends_on":["$$id-postgresql"],"image":"hasura/graphql-engine:$$core_version","volumes":[],"environment":["HASURA_GRAPHQL_ENABLE_CONSOLE=$$config_hasura_graphql_enable_console","HASURA_GRAPHQL_METADATA_DATABASE_URL=$$secret_hasura_graphql_metadata_database_url","HASURA_GRAPHQL_ADMIN_SECRET=$$secret_hasura_graphql_admin_secret"],"ports":["8080"]},"$$id-postgresql":{"name":"PostgreSQL","depends_on":[],"image":"postgres:12-alpine","volumes":["$$id-postgresql-data:/var/lib/postgresql/data"],"environment":["POSTGRES_USER=$$config_postgres_user","POSTGRES_PASSWORD=$$secret_postgres_password","POSTGRES_DB=$$config_postgres_db"],"ports":[]}},"variables":[{"id":"$$config_hasura_graphql_enable_console","name":"HASURA_GRAPHQL_ENABLE_CONSOLE","label":"Enable Hasura Console","defaultValue":"true","description":""},{"id":"$$secret_hasura_graphql_metadata_database_url","name":"HASURA_GRAPHQL_METADATA_DATABASE_URL","label":"Hasura Metadata Database URL","defaultValue":"postgresql://$$config_postgres_user:$$secret_postgres_password@$$id-postgresql:5432/$$config_postgres_db","description":""},{"id":"$$secret_hasura_graphql_admin_secret","name":"HASURA_GRAPHQL_ADMIN_SECRET","label":"Hasura Admin Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true},{"id":"$$config_postgres_user","name":"POSTGRES_USER","label":"PostgreSQL User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_postgres_password","name":"POSTGRES_PASSWORD","label":"PostgreSQL Password","defaultValue":"$$generate_password","description":""},{"id":"$$config_postgres_db","name":"POSTGRES_DB","label":"PostgreSQL Database","defaultValue":"hasura","description":""}]},{"templateVersion":"1.0.0","defaultVersion":"postgresql-v1.38.0","documentation":"https://umami.is/docs/getting-started","type":"umami-postgresql","name":"Umami","subname":"(PostgreSQL)","description":"A simple, easy to use, self-hosted web analytics solution.","services":{"$$id":{"name":"Umami","depends_on":["$$id-postgresql"],"image":"ghcr.io/umami-software/umami:$$core_version","volumes":[],"environment":["ADMIN_PASSWORD=$$secret_admin_password","DATABASE_URL=$$secret_database_url","DATABASE_TYPE=$$config_database_type","HASH_SALT=$$secret_hash_salt"],"ports":["3000"]},"$$id-postgresql":{"name":"PostgreSQL","depends_on":[],"image":"postgres:12-alpine","volumes":["$$id-postgresql-data:/var/lib/postgresql/data"],"environment":["POSTGRES_USER=$$config_postgres_user","POSTGRES_PASSWORD=$$secret_postgres_password","POSTGRES_DB=$$config_postgres_db"],"ports":[],"files":[{"location":"/docker-entrypoint-initdb.d/schema.postgresql.sql","content":"\n -- CreateTable\n CREATE TABLE \"account\" (\n \"user_id\" SERIAL NOT NULL,\n \"username\" VARCHAR(255) NOT NULL,\n \"password\" VARCHAR(60) NOT NULL,\n \"is_admin\" BOOLEAN NOT NULL DEFAULT false,\n \"created_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n \"updated_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n \n PRIMARY KEY (\"user_id\")\n );\n \n -- CreateTable\n CREATE TABLE \"event\" (\n \"event_id\" SERIAL NOT NULL,\n \"website_id\" INTEGER NOT NULL,\n \"session_id\" INTEGER NOT NULL,\n \"created_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n \"url\" VARCHAR(500) NOT NULL,\n \"event_type\" VARCHAR(50) NOT NULL,\n \"event_value\" VARCHAR(50) NOT NULL,\n \n PRIMARY KEY (\"event_id\")\n );\n \n -- CreateTable\n CREATE TABLE \"pageview\" (\n \"view_id\" SERIAL NOT NULL,\n \"website_id\" INTEGER NOT NULL,\n \"session_id\" INTEGER NOT NULL,\n \"created_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n \"url\" VARCHAR(500) NOT NULL,\n \"referrer\" VARCHAR(500),\n \n PRIMARY KEY (\"view_id\")\n );\n \n -- CreateTable\n CREATE TABLE \"session\" (\n \"session_id\" SERIAL NOT NULL,\n \"session_uuid\" UUID NOT NULL,\n \"website_id\" INTEGER NOT NULL,\n \"created_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n \"hostname\" VARCHAR(100),\n \"browser\" VARCHAR(20),\n \"os\" VARCHAR(20),\n \"device\" VARCHAR(20),\n \"screen\" VARCHAR(11),\n \"language\" VARCHAR(35),\n \"country\" CHAR(2),\n \n PRIMARY KEY (\"session_id\")\n );\n \n -- CreateTable\n CREATE TABLE \"website\" (\n \"website_id\" SERIAL NOT NULL,\n \"website_uuid\" UUID NOT NULL,\n \"user_id\" INTEGER NOT NULL,\n \"name\" VARCHAR(100) NOT NULL,\n \"domain\" VARCHAR(500),\n \"share_id\" VARCHAR(64),\n \"created_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n \n PRIMARY KEY (\"website_id\")\n );\n \n -- CreateIndex\n CREATE UNIQUE INDEX \"account.username_unique\" ON \"account\"(\"username\");\n \n -- CreateIndex\n CREATE INDEX \"event_created_at_idx\" ON \"event\"(\"created_at\");\n \n -- CreateIndex\n CREATE INDEX \"event_session_id_idx\" ON \"event\"(\"session_id\");\n \n -- CreateIndex\n CREATE INDEX \"event_website_id_idx\" ON \"event\"(\"website_id\");\n \n -- CreateIndex\n CREATE INDEX \"pageview_created_at_idx\" ON \"pageview\"(\"created_at\");\n \n -- CreateIndex\n CREATE INDEX \"pageview_session_id_idx\" ON \"pageview\"(\"session_id\");\n \n -- CreateIndex\n CREATE INDEX \"pageview_website_id_created_at_idx\" ON \"pageview\"(\"website_id\", \"created_at\");\n \n -- CreateIndex\n CREATE INDEX \"pageview_website_id_idx\" ON \"pageview\"(\"website_id\");\n \n -- CreateIndex\n CREATE INDEX \"pageview_website_id_session_id_created_at_idx\" ON \"pageview\"(\"website_id\", \"session_id\", \"created_at\");\n \n -- CreateIndex\n CREATE UNIQUE INDEX \"session.session_uuid_unique\" ON \"session\"(\"session_uuid\");\n \n -- CreateIndex\n CREATE INDEX \"session_created_at_idx\" ON \"session\"(\"created_at\");\n \n -- CreateIndex\n CREATE INDEX \"session_website_id_idx\" ON \"session\"(\"website_id\");\n \n -- CreateIndex\n CREATE UNIQUE INDEX \"website.website_uuid_unique\" ON \"website\"(\"website_uuid\");\n \n -- CreateIndex\n CREATE UNIQUE INDEX \"website.share_id_unique\" ON \"website\"(\"share_id\");\n \n -- CreateIndex\n CREATE INDEX \"website_user_id_idx\" ON \"website\"(\"user_id\");\n \n -- AddForeignKey\n ALTER TABLE \"event\" ADD FOREIGN KEY (\"session_id\") REFERENCES \"session\"(\"session_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n \n -- AddForeignKey\n ALTER TABLE \"event\" ADD FOREIGN KEY (\"website_id\") REFERENCES \"website\"(\"website_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n \n -- AddForeignKey\n ALTER TABLE \"pageview\" ADD FOREIGN KEY (\"session_id\") REFERENCES \"session\"(\"session_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n \n -- AddForeignKey\n ALTER TABLE \"pageview\" ADD FOREIGN KEY (\"website_id\") REFERENCES \"website\"(\"website_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n \n -- AddForeignKey\n ALTER TABLE \"session\" ADD FOREIGN KEY (\"website_id\") REFERENCES \"website\"(\"website_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n \n -- AddForeignKey\n ALTER TABLE \"website\" ADD FOREIGN KEY (\"user_id\") REFERENCES \"account\"(\"user_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n \n insert into account (username, password, is_admin) values ('admin', '$$hashed$$secret_admin_password', true);"}]}},"variables":[{"id":"$$secret_database_url","name":"DATABASE_URL","label":"Database URL for PostgreSQL","defaultValue":"postgresql://$$config_postgres_user:$$secret_postgres_password@$$id-postgresql:5432/$$config_postgres_db","description":""},{"id":"$$secret_hash_salt","name":"HASH_SALT","label":"Hash Salt","defaultValue":"$$generate_hex(64)","description":""},{"id":"$$config_database_type","name":"DATABASE_TYPE","label":"Database Type","defaultValue":"postgresql","description":""},{"id":"$$config_postgres_user","name":"POSTGRES_USER","label":"PostgreSQL User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_postgres_password","name":"POSTGRES_PASSWORD","label":"PostgreSQL Password","defaultValue":"$$generate_password","description":""},{"id":"$$config_postgres_db","name":"POSTGRES_DB","label":"PostgreSQL Database","defaultValue":"umami","description":""},{"id":"$$secret_admin_password","name":"ADMIN_PASSWORD","label":"Initial Admin Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true}]},{"templateVersion":"1.0.0","ignore":true,"defaultVersion":"postgresql-v1.38.0","documentation":"https://umami.is/docs/getting-started","type":"umami","name":"Umami","subname":"(PostgreSQL)","description":"A simple, easy to use, self-hosted web analytics solution.","services":{"$$id":{"name":"Umami","depends_on":["$$id-postgresql"],"image":"ghcr.io/umami-software/umami:$$core_version","volumes":[],"environment":["ADMIN_PASSWORD=$$secret_admin_password","DATABASE_URL=$$secret_database_url","DATABASE_TYPE=$$config_database_type","HASH_SALT=$$secret_hash_salt"],"ports":["3000"]},"$$id-postgresql":{"name":"PostgreSQL","depends_on":[],"image":"postgres:12-alpine","volumes":["$$id-postgresql-data:/var/lib/postgresql/data"],"environment":["POSTGRES_USER=$$config_postgres_user","POSTGRES_PASSWORD=$$secret_postgres_password","POSTGRES_DB=$$config_postgres_db"],"ports":[],"files":[{"location":"/docker-entrypoint-initdb.d/schema.postgresql.sql","content":"\n -- CreateTable\n CREATE TABLE \"account\" (\n \"user_id\" SERIAL NOT NULL,\n \"username\" VARCHAR(255) NOT NULL,\n \"password\" VARCHAR(60) NOT NULL,\n \"is_admin\" BOOLEAN NOT NULL DEFAULT false,\n \"created_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n \"updated_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n \n PRIMARY KEY (\"user_id\")\n );\n \n -- CreateTable\n CREATE TABLE \"event\" (\n \"event_id\" SERIAL NOT NULL,\n \"website_id\" INTEGER NOT NULL,\n \"session_id\" INTEGER NOT NULL,\n \"created_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n \"url\" VARCHAR(500) NOT NULL,\n \"event_type\" VARCHAR(50) NOT NULL,\n \"event_value\" VARCHAR(50) NOT NULL,\n \n PRIMARY KEY (\"event_id\")\n );\n \n -- CreateTable\n CREATE TABLE \"pageview\" (\n \"view_id\" SERIAL NOT NULL,\n \"website_id\" INTEGER NOT NULL,\n \"session_id\" INTEGER NOT NULL,\n \"created_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n \"url\" VARCHAR(500) NOT NULL,\n \"referrer\" VARCHAR(500),\n \n PRIMARY KEY (\"view_id\")\n );\n \n -- CreateTable\n CREATE TABLE \"session\" (\n \"session_id\" SERIAL NOT NULL,\n \"session_uuid\" UUID NOT NULL,\n \"website_id\" INTEGER NOT NULL,\n \"created_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n \"hostname\" VARCHAR(100),\n \"browser\" VARCHAR(20),\n \"os\" VARCHAR(20),\n \"device\" VARCHAR(20),\n \"screen\" VARCHAR(11),\n \"language\" VARCHAR(35),\n \"country\" CHAR(2),\n \n PRIMARY KEY (\"session_id\")\n );\n \n -- CreateTable\n CREATE TABLE \"website\" (\n \"website_id\" SERIAL NOT NULL,\n \"website_uuid\" UUID NOT NULL,\n \"user_id\" INTEGER NOT NULL,\n \"name\" VARCHAR(100) NOT NULL,\n \"domain\" VARCHAR(500),\n \"share_id\" VARCHAR(64),\n \"created_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n \n PRIMARY KEY (\"website_id\")\n );\n \n -- CreateIndex\n CREATE UNIQUE INDEX \"account.username_unique\" ON \"account\"(\"username\");\n \n -- CreateIndex\n CREATE INDEX \"event_created_at_idx\" ON \"event\"(\"created_at\");\n \n -- CreateIndex\n CREATE INDEX \"event_session_id_idx\" ON \"event\"(\"session_id\");\n \n -- CreateIndex\n CREATE INDEX \"event_website_id_idx\" ON \"event\"(\"website_id\");\n \n -- CreateIndex\n CREATE INDEX \"pageview_created_at_idx\" ON \"pageview\"(\"created_at\");\n \n -- CreateIndex\n CREATE INDEX \"pageview_session_id_idx\" ON \"pageview\"(\"session_id\");\n \n -- CreateIndex\n CREATE INDEX \"pageview_website_id_created_at_idx\" ON \"pageview\"(\"website_id\", \"created_at\");\n \n -- CreateIndex\n CREATE INDEX \"pageview_website_id_idx\" ON \"pageview\"(\"website_id\");\n \n -- CreateIndex\n CREATE INDEX \"pageview_website_id_session_id_created_at_idx\" ON \"pageview\"(\"website_id\", \"session_id\", \"created_at\");\n \n -- CreateIndex\n CREATE UNIQUE INDEX \"session.session_uuid_unique\" ON \"session\"(\"session_uuid\");\n \n -- CreateIndex\n CREATE INDEX \"session_created_at_idx\" ON \"session\"(\"created_at\");\n \n -- CreateIndex\n CREATE INDEX \"session_website_id_idx\" ON \"session\"(\"website_id\");\n \n -- CreateIndex\n CREATE UNIQUE INDEX \"website.website_uuid_unique\" ON \"website\"(\"website_uuid\");\n \n -- CreateIndex\n CREATE UNIQUE INDEX \"website.share_id_unique\" ON \"website\"(\"share_id\");\n \n -- CreateIndex\n CREATE INDEX \"website_user_id_idx\" ON \"website\"(\"user_id\");\n \n -- AddForeignKey\n ALTER TABLE \"event\" ADD FOREIGN KEY (\"session_id\") REFERENCES \"session\"(\"session_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n \n -- AddForeignKey\n ALTER TABLE \"event\" ADD FOREIGN KEY (\"website_id\") REFERENCES \"website\"(\"website_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n \n -- AddForeignKey\n ALTER TABLE \"pageview\" ADD FOREIGN KEY (\"session_id\") REFERENCES \"session\"(\"session_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n \n -- AddForeignKey\n ALTER TABLE \"pageview\" ADD FOREIGN KEY (\"website_id\") REFERENCES \"website\"(\"website_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n \n -- AddForeignKey\n ALTER TABLE \"session\" ADD FOREIGN KEY (\"website_id\") REFERENCES \"website\"(\"website_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n \n -- AddForeignKey\n ALTER TABLE \"website\" ADD FOREIGN KEY (\"user_id\") REFERENCES \"account\"(\"user_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n \n insert into account (username, password, is_admin) values ('admin', '$$hashed$$secret_admin_password', true);"}]}},"variables":[{"id":"$$secret_database_url","name":"DATABASE_URL","label":"Database URL for PostgreSQL","defaultValue":"postgresql://$$config_postgres_user:$$secret_postgres_password@$$id-postgresql:5432/$$config_postgres_db","description":""},{"id":"$$secret_hash_salt","name":"HASH_SALT","label":"Hash Salt","defaultValue":"$$generate_hex(64)","description":""},{"id":"$$config_database_type","name":"DATABASE_TYPE","label":"Database Type","defaultValue":"postgresql","description":""},{"id":"$$config_postgres_user","name":"POSTGRES_USER","label":"PostgreSQL User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_postgres_password","name":"POSTGRES_PASSWORD","label":"PostgreSQL Password","defaultValue":"$$generate_password","description":""},{"id":"$$config_postgres_db","name":"POSTGRES_DB","label":"PostgreSQL Database","defaultValue":"umami","description":""},{"id":"$$secret_admin_password","name":"ADMIN_PASSWORD","label":"Initial Admin Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true}]},{"templateVersion":"1.0.0","defaultVersion":"v0.29.1","documentation":"https://docs.meilisearch.com/learn/getting_started/quick_start.html","type":"meilisearch","name":"MeiliSearch","description":"A lightning Fast, Ultra Relevant, and Typo-Tolerant Search Engine.","services":{"$$id":{"name":"MeiliSearch","documentation":"https://docs.meilisearch.com/","depends_on":[],"image":"getmeili/meilisearch:$$core_version","volumes":["$$id-datams:/meili_data/data.ms","$$id-data:/meili_data","$$id-snapshot:/snapshot","$$id-dump:/dumps"],"environment":["MEILI_MASTER_KEY=$$secret_meili_master_key"],"ports":["7700"]}},"variables":[{"id":"$$secret_meili_master_key","name":"MEILI_MASTER_KEY","label":"Master Key","defaultValue":"$$generate_hex(64)","description":"","showOnConfiguration":true}]},{"templateVersion":"1.0.0","ignore":true,"defaultVersion":"latest","documentation":"https://docs.ghost.org","arch":"amd64","type":"ghost-mariadb","name":"Ghost","subname":"(MariaDB)","description":"Free and open source blogging platform.","labels":["cms","blog"],"services":{"$$id":{"name":"Ghost","depends_on":["$$id-mariadb"],"image":"bitnami/ghost:$$core_version","volumes":["$$id-ghost:/bitnami/ghost"],"environment":["url=$$config_url","GHOST_HOST=$$config_ghost_host","GHOST_ENABLE_HTTPS=$$config_ghost_enable_https","GHOST_EMAIL=$$config_ghost_email","GHOST_PASSWORD=$$secret_ghost_password","GHOST_DATABASE_HOST=$$config_ghost_database_host","GHOST_DATABASE_USER=$$config_mariadb_user","GHOST_DATABASE_PASSWORD=$$secret_ghost_database_password","GHOST_DATABASE_NAME=$$config_mariadb_database","GHOST_DATABASE_PORT_NUMBER=3306"],"ports":["2368"]},"$$id-mariadb":{"name":"MariaDB","depends_on":[],"image":"bitnami/mariadb:latest","volumes":["$$id-mariadb:/bitnami/mariadb"],"environment":["MARIADB_USER=$$config_mariadb_user","MARIADB_PASSWORD=$$secret_mariadb_password","MARIADB_DATABASE=$$config_mariadb_database","MARIADB_ROOT_USER=$$config_mariadb_root_user","MARIADB_ROOT_PASSWORD=$$secret_mariadb_root_password"],"ports":[]}},"variables":[{"id":"$$config_url","name":"url","label":"URL","defaultValue":"$$generate_fqdn","description":""},{"id":"$$config_ghost_host","name":"GHOST_HOST","label":"Ghost Host","defaultValue":"$$generate_domain","description":""},{"id":"$$config_ghost_enable_https","name":"GHOST_ENABLE_HTTPS","label":"Ghost Enable HTTPS","defaultValue":"no","description":""},{"id":"$$config_ghost_email","name":"GHOST_EMAIL","label":"Ghost Default Email","defaultValue":"[email protected]","description":""},{"id":"$$secret_ghost_password","name":"GHOST_PASSWORD","label":"Ghost Default Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true},{"id":"$$config_ghost_database_host","name":"GHOST_DATABASE_HOST","label":"Ghost Database Host","defaultValue":"$$id-mariadb","description":""},{"id":"$$config_ghost_database_user","name":"GHOST_DATABASE_USER","label":"MariaDB User","defaultValue":"$$config_mariadb_user","description":""},{"id":"$$secret_ghost_database_password","name":"GHOST_DATABASE_PASSWORD","label":"MariaDB Password","defaultValue":"$$secret_mariadb_password","description":""},{"id":"$$config_ghost_database_name","name":"GHOST_DATABASE_NAME","label":"MariaDB Database","defaultValue":"$$config_mariadb_database","description":""},{"id":"$$config_mariadb_user","name":"MARIADB_USER","label":"MariaDB User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_mariadb_password","name":"MARIADB_PASSWORD","label":"MariaDB Password","defaultValue":"$$generate_password","description":""},{"id":"$$config_mariadb_database","name":"MARIADB_DATABASE","label":"MariaDB Database","defaultValue":"ghost","description":""},{"id":"$$config_mariadb_root_user","name":"MARIADB_ROOT_USER","label":"MariaDB Root User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_mariadb_root_password","name":"MARIADB_ROOT_PASSWORD","label":"MariaDB Root Password","defaultValue":"$$generate_password","description":""}]},{"templateVersion":"1.0.0","defaultVersion":"5.22","documentation":"https://docs.ghost.org","type":"ghost-only","name":"Ghost","subname":"(without Database)","description":"Free and open source blogging platform.","services":{"$$id":{"name":"Ghost","image":"ghost:$$core_version","volumes":["$$id-ghost:/var/lib/ghost/content"],"environment":["url=$$config_url","database__client=$$config_database__client","database__connection__host=$$config_database__connection__host","database__connection__user=$$config_database__connection__user","database__connection__password=$$secret_database__connection__password","database__connection__database=$$config_database__connection__database"],"ports":["2368"]}},"variables":[{"id":"$$config_url","name":"url","label":"URL","defaultValue":"$$generate_fqdn","description":""},{"id":"$$config_database__client","name":"database__client","label":"Database Client","defaultValue":"mysql","description":"","required":true},{"id":"$$config_database__connection__host","name":"database__connection__host","label":"Database Host","defaultValue":"","description":"","required":true,"placeholder":"db.coolify.io"},{"id":"$$config_database__connection__user","name":"database__connection__user","label":"Database User","defaultValue":"","description":"","placeholder":"ghost","required":true},{"id":"$$secret_database__connection__password","name":"database__connection__password","label":"Database Password","defaultValue":"","description":"","placeholder":"superSecretP4ssword","showOnConfiguration":true,"required":true},{"id":"$$config_database__connection__database","name":"database__connection__database","label":"Database Name","defaultValue":"","description":"","placeholder":"ghost_db","required":true}]},{"templateVersion":"1.0.0","defaultVersion":"5.22","documentation":"https://docs.ghost.org","type":"ghost-mysql","name":"Ghost","subname":"(MySQL)","description":"Ghost is a free and open source blogging platform.","services":{"$$id":{"name":"Ghost","depends_on":["$$id-mysql"],"image":"ghost:$$core_version","volumes":["$$id-ghost:/var/lib/ghost/content"],"environment":["url=$$config_url","database__client=$$config_database__client","database__connection__host=$$config_database__connection__host","database__connection__user=$$config_mysql_user","database__connection__password=$$secret_mysql_password","database__connection__database=$$config_mysql_database"],"ports":["2368"]},"$$id-mysql":{"name":"MySQL","depends_on":[],"image":"mysql:8.0","volumes":["$$id-mysql:/var/lib/mysql"],"environment":["MYSQL_USER=$$config_mysql_user","MYSQL_PASSWORD=$$secret_mysql_password","MYSQL_DATABASE=$$config_mysql_database","MYSQL_ROOT_PASSWORD=$$secret_mysql_root_password"],"ports":[]}},"variables":[{"id":"$$config_url","name":"url","label":"URL","defaultValue":"$$generate_fqdn","description":""},{"id":"$$config_database__client","name":"database__client","label":"Database Client","defaultValue":"mysql","description":"","readOnly":true},{"id":"$$config_database__connection__host","name":"database__connection__host","label":"Database Host","defaultValue":"$$id-mysql","description":""},{"id":"$$config_mysql_user","main":"$$id-mysql","name":"MYSQL_USER","label":"MySQL User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_mysql_password","main":"$$id-mysql","name":"MYSQL_PASSWORD","label":"MySQL Password","defaultValue":"$$generate_password","description":""},{"id":"$$config_mysql_database","main":"$$id-mysql","name":"MYSQL_DATABASE","label":"MySQL Database","defaultValue":"ghost","description":""},{"id":"$$secret_mysql_root_password","name":"MYSQL_ROOT_PASSWORD","label":"MySQL Root Password","defaultValue":"$$generate_password","description":""}]},{"templateVersion":"1.0.0","defaultVersion":"php8.1","documentation":"https://wordpress.org/","type":"wordpress","name":"WordPress","subname":"(MySQL)","description":"A content management system based on PHP.","labels":["wordpress","php","cms"],"services":{"$$id":{"name":"WordPress","depends_on":["$$id-mysql"],"image":"wordpress:$$core_version","volumes":["$$id-wordpress-data:/var/www/html"],"environment":["WORDPRESS_DB_HOST=$$config_wordpress_db_host","WORDPRESS_DB_USER=$$config_mysql_user","WORDPRESS_DB_PASSWORD=$$secret_mysql_password","WORDPRESS_DB_NAME=$$config_mysql_database","WORDPRESS_CONFIG_EXTRA=$$config_wordpress_config_extra"],"ports":["80"]},"$$id-mysql":{"name":"MySQL","depends_on":[],"image":"bitnami/mysql:5.7","imageArm":"mysql:8.0","volumes":["$$id-mysql-data:/bitnami/mysql/data"],"volumesArm":["$$id-mysql-data:/var/lib/mysql"],"environment":["MYSQL_ROOT_PASSWORD=$$secret_mysql_root_password","MYSQL_ROOT_USER=$$config_mysql_root_user","MYSQL_DATABASE=$$config_mysql_database","MYSQL_USER=$$config_mysql_user","MYSQL_PASSWORD=$$secret_mysql_password"]}},"variables":[{"id":"$$config_wordpress_db_host","name":"WORDPRESS_DB_HOST","label":"Database Host","defaultValue":"$$id-mysql","description":"","readOnly":true},{"id":"$$config_wordpress_config_extra","name":"WORDPRESS_CONFIG_EXTRA","label":"WordPress Config Extra","defaultValue":"","description":"","type":"textarea","placeholder":"define('WP_DEBUG', true);\ndefine('WP_DEBUG_LOG', true);\ndefine('WP_DEBUG_DISPLAY', false);\n@ini_set('display_errors', 0);\n"},{"id":"$$secret_mysql_root_password","name":"MYSQL_ROOT_PASSWORD","label":"MySQL Root Password","defaultValue":"$$generate_password","description":"","readOnly":true},{"id":"$$config_mysql_root_user","name":"MYSQL_ROOT_USER","label":"MySQL Root User","defaultValue":"$$generate_username","description":"","readOnly":true},{"id":"$$config_mysql_database","name":"MYSQL_DATABASE","label":"MySQL Database","defaultValue":"wordpress","description":"","readOnly":true},{"id":"$$config_mysql_user","name":"MYSQL_USER","label":"MySQL User","defaultValue":"$$generate_username","description":"","readOnly":true},{"id":"$$secret_mysql_password","name":"MYSQL_PASSWORD","label":"MySQL Password","defaultValue":"$$generate_password","description":"","readOnly":true}]},{"templateVersion":"1.0.0","defaultVersion":"php8.1","documentation":"https://wordpress.org/","type":"wordpress-only","name":"WordPress","subname":"(without DB)","description":"A content management system based on PHP.","labels":["wordpress","php","cms"],"services":{"$$id":{"name":"WordPress","image":"wordpress:$$core_version","volumes":["$$id-wordpress-data:/var/www/html"],"environment":["WORDPRESS_DB_HOST=$$config_wordpress_db_host","WORDPRESS_DB_PORT=$$config_wordpress_db_port","WORDPRESS_DB_USER=$$config_wordpress_db_user","WORDPRESS_DB_PASSWORD=$$secret_wordpress_db_password","WORDPRESS_DB_NAME=$$config_wordpress_db_name","WORDPRESS_CONFIG_EXTRA=$$config_wordpress_config_extra"],"ports":["80"]}},"variables":[{"id":"$$config_wordpress_db_host","name":"WORDPRESS_DB_HOST","label":"Database Host","defaultValue":"","description":"","placeholder":"db.coollabs.io","required":true},{"id":"$$config_wordpress_db_port","name":"WORDPRESS_DB_PORT","label":"Database Port","defaultValue":"","description":"","placeholder":"3306","required":true},{"id":"$$config_wordpress_db_user","name":"WORDPRESS_DB_USER","label":"Database User","defaultValue":"","description":"","placeholder":"wordpress","required":true},{"id":"$$secret_wordpress_db_password","name":"WORDPRESS_DB_PASSWORD","label":"Database Password","defaultValue":"","description":"","placeholder":"supers3cr3tpassw0rd!","required":true,"showOnConfiguration":true},{"id":"$$config_wordpress_db_name","name":"WORDPRESS_DB_NAME","label":"Database Name","defaultValue":"","description":"","placeholder":"wordpress","required":true},{"id":"$$config_wordpress_config_extra","name":"WORDPRESS_CONFIG_EXTRA","label":"Extra Config","defaultValue":"","description":"","type":"textarea","placeholder":"define('WP_DEBUG', true);\ndefine('WP_DEBUG_LOG', true);\ndefine('WP_DEBUG_DISPLAY', false);\n@ini_set('display_errors', 0);\n"}]},{"templateVersion":"1.0.0","defaultVersion":"4.7.1","documentation":"https://coder.com/docs/coder-oss/latest","type":"vscodeserver","name":"VSCode Server","description":"Visual Studio Code on a remote server, accessible through the browser.","labels":["vscode","ide"],"services":{"$$id":{"name":"VSCode Server","depends_on":[],"image":"codercom/code-server:$$core_version","volumes":["$$id-config-data:/home/coder/.local/share/code-server","$$id-vscodeserver-data:/home/coder","$$id-keys-directory:/root/.ssh","$$id-theme-and-plugin-directory:/root/.local/share/code-server"],"environment":["PASSWORD=$$secret_password"],"ports":["8080"]}},"variables":[{"id":"$$secret_password","name":"PASSWORD","label":"Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true}]},{"templateVersion":"1.0.0","defaultVersion":"RELEASE.2022-10-15T19-57-03Z","documentation":"https://min.io/docs/minio","type":"minio","name":"MinIO","description":"A cloud storage server compatible with Amazon S3.","labels":["storage","s3"],"services":{"$$id":{"name":"MinIO","command":"server /data --console-address :9001","depends_on":[],"image":"minio/minio:$$core_version","volumes":["$$id-minio-data:/data","$$id-data-write:/files"],"environment":["MINIO_SERVER_URL=$$config_coolify_fqdn_minio_console","MINIO_BROWSER_REDIRECT_URL=$$config_minio_browser_redirect_url","MINIO_DOMAIN=$$config_minio_domain","MINIO_ROOT_USER=$$config_minio_root_user","MINIO_ROOT_PASSWORD=$$secret_minio_root_password"],"ports":["9000","9001"],"proxy":[{"port":"9000","domain":"$$config_coolify_fqdn_minio_console"},{"port":"9001"}]}},"variables":[{"id":"$$config_coolify_fqdn_minio_console","name":"MINIO_SERVER_URL","label":"MinIO Server URL","defaultValue":"","description":"Specify the URL hostname the MinIO Console should use for connecting to the MinIO Server.","required":true},{"id":"$$config_minio_browser_redirect_url","name":"MINIO_BROWSER_REDIRECT_URL","label":"Browser Redirect URL","defaultValue":"$$generate_fqdn","description":""},{"id":"$$config_minio_domain","name":"MINIO_DOMAIN","label":"Domain","defaultValue":"$$generate_domain","description":""},{"id":"$$config_minio_root_user","name":"MINIO_ROOT_USER","label":"Root User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_minio_root_password","name":"MINIO_ROOT_PASSWORD","label":"Root User Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true}]},{"templateVersion":"1.0.0","defaultVersion":"0.21.1","documentation":"https://fider.io/docs","type":"fider","name":"Fider","description":"A platform to collect and organize customer feedback.","labels":["suggestion","feedback"],"services":{"$$id":{"name":"Fider","image":"getfider/fider:$$core_version","depends_on":["$$id-postgresql"],"environment":["BASE_URL=$$config_base_url","DATABASE_URL=$$secret_database_url","JWT_SECRET=$$secret_jwt_secret","EMAIL_NOREPLY=$$config_email_noreply","EMAIL_MAILGUN_API=$$secret_email_mailgun_api","EMAIL_MAILGUN_REGION=$$config_email_mailgun_region","EMAIL_MAILGUN_DOMAIN=$$config_email_mailgun_domain","EMAIL_SMTP_HOST=$$config_email_smtp_host","EMAIL_SMTP_PORT=$$config_email_smtp_port","EMAIL_SMTP_USER=$$config_email_smtp_user","EMAIL_SMTP_PASSWORD=$$secret_email_smtp_password","EMAIL_SMTP_ENABLE_STARTTLS=$$config_email_smtp_enable_starttls"],"ports":["3000"]},"$$id-postgresql":{"name":"PostgreSQL","depends_on":[],"image":"postgres:12-alpine","volumes":["$$id-postgresql-data:/var/lib/postgresql/data"],"environment":["POSTGRES_USER=$$config_postgres_user","POSTGRES_PASSWORD=$$secret_postgres_password","POSTGRES_DB=$$config_postgres_db"]}},"variables":[{"id":"$$config_base_url","name":"BASE_URL","label":"Base URL","defaultValue":"$$generate_fqdn","description":""},{"id":"$$secret_database_url","name":"DATABASE_URL","label":"Database URL for PostgreSQL","defaultValue":"postgresql://$$config_postgres_user:$$secret_postgres_password@$$id-postgresql:5432/$$config_postgres_db?sslmode=disable","description":""},{"id":"$$secret_jwt_secret","name":"JWT_SECRET","label":"JWT Secret","defaultValue":"$$generate_hex(64)","description":""},{"id":"$$config_email_noreply","name":"EMAIL_NOREPLY","label":"No Reply Email Address","defaultValue":"[email protected]","description":""},{"id":"$$secret_email_mailgun_api","name":"EMAIL_MAILGUN_API","label":"Mailgun API Key","defaultValue":"","description":"","showOnConfiguration":true},{"id":"$$config_email_mailgun_region","name":"EMAIL_MAILGUN_REGION","label":"Mailgun Region","defaultValue":"EU","description":""},{"id":"$$config_email_mailgun_domain","name":"EMAIL_MAILGUN_DOMAIN","label":"Mailgun Domain","defaultValue":"","description":""},{"id":"$$config_email_smtp_host","name":"EMAIL_SMTP_HOST","label":"SMTP Host","defaultValue":"","description":""},{"id":"$$config_email_smtp_port","name":"EMAIL_SMTP_PORT","label":"SMTP Port","defaultValue":"587","description":""},{"id":"$$config_email_smtp_user","name":"EMAIL_SMTP_USER","label":"SMTP User","defaultValue":"","description":""},{"id":"$$secret_email_smtp_password","name":"EMAIL_SMTP_PASSWORD","label":"SMTP Password","defaultValue":"","description":"","showOnConfiguration":true},{"id":"$$config_email_smtp_enable_starttls","name":"EMAIL_SMTP_ENABLE_STARTTLS","label":"SMTP Enable StartTLS","defaultValue":"false","description":""},{"id":"$$config_postgres_user","name":"POSTGRES_USER","label":"PostgreSQL User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_postgres_password","name":"POSTGRES_PASSWORD","label":"PostgreSQL Password","defaultValue":"$$generate_password","description":""},{"id":"$$config_postgres_db","name":"POSTGRES_DB","label":"PostgreSQL Database","defaultValue":"$$generate_username","description":""}]},{"templateVersion":"1.0.0","defaultVersion":"0.198.1","documentation":"https://docs.n8n.io","type":"n8n","name":"n8n.io","description":"A free and open node based Workflow Automation Tool.","labels":["workflow","automation","ifttt","zapier","nodered"],"services":{"$$id":{"name":"N8n","depends_on":[],"image":"n8nio/n8n:$$core_version","volumes":["$$id-data:/root/.n8n","$$id-data-write:/files","/var/run/docker.sock:/var/run/docker.sock"],"environment":["WEBHOOK_URL=$$config_webhook_url"],"ports":["5678"]}},"variables":[{"id":"$$config_webhook_url","name":"WEBHOOK_URL","label":"Webhook URL","defaultValue":"$$generate_fqdn","description":""}]},{"templateVersion":"1.0.0","defaultVersion":"stable","documentation":"https://plausible.io/doc/","arch":"amd64","type":"plausibleanalytics","name":"Plausible Analytics","description":"A lightweight and open-source website analytics tool.","labels":["analytics","statistics","plausible","gdpr","no-cookie","google analytics"],"services":{"$$id":{"name":"Plausible Analytics","command":"sh -c \"sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh db init-admin && /entrypoint.sh run\"","depends_on":["$$id-postgresql","$$id-clickhouse"],"image":"plausible/analytics:$$core_version","environment":["ADMIN_USER_EMAIL=$$config_admin_user_email","ADMIN_USER_NAME=$$config_admin_user_name","ADMIN_USER_PWD=$$secret_admin_user_pwd","BASE_URL=$$config_base_url","SECRET_KEY_BASE=$$secret_secret_key_base","DISABLE_AUTH=$$config_disable_auth","DISABLE_REGISTRATION=$$config_disable_registration","DATABASE_URL=$$secret_database_url","CLICKHOUSE_DATABASE_URL=$$secret_clickhouse_database_url"],"ports":["8000"]},"$$id-postgresql":{"name":"PostgreSQL","image":"bitnami/postgresql:13","volumes":["$$id-postgresql-data:/bitnami/postgresql"],"environment":["POSTGRESQL_PASSWORD=$$secret_postgresql_password","POSTGRESQL_USERNAME=$$config_postgresql_username","POSTGRESQL_DATABASE=$$config_postgresql_database"]},"$$id-clickhouse":{"name":"Clickhouse","volumes":["$$id-clickhouse-data:/var/lib/clickhouse"],"image":"clickhouse/clickhouse-server:22.6-alpine","ulimits":{"nofile":{"soft":262144,"hard":262144}},"files":[{"location":"/etc/clickhouse-server/users.d/logging.xml","content":"<yandex><logger><level>warning</level><console>true</console></logger><query_thread_log remove=\"remove\"/><query_log remove=\"remove\"/><text_log remove=\"remove\"/><trace_log remove=\"remove\"/><metric_log remove=\"remove\"/><asynchronous_metric_log remove=\"remove\"/><session_log remove=\"remove\"/><part_log remove=\"remove\"/></yandex>"},{"location":"/etc/clickhouse-server/config.d/logging.xml","content":"<yandex><profiles><default><log_queries>0</log_queries><log_query_threads>0</log_query_threads></default></profiles></yandex>"},{"location":"/docker-entrypoint-initdb.d/init.query","content":"CREATE DATABASE IF NOT EXISTS plausible;"},{"location":"/docker-entrypoint-initdb.d/init-db.sh","content":"clickhouse client --queries-file /docker-entrypoint-initdb.d/init.query"}]}},"variables":[{"id":"$$config_base_url","name":"BASE_URL","label":"Base URL","defaultValue":"$$generate_fqdn","description":"You must set this to the FQDN of the Plausible Analytics instance. This is used to generate the links to the Plausible Analytics instance."},{"id":"$$secret_database_url","name":"DATABASE_URL","label":"Database URL for PostgreSQL","defaultValue":"postgresql://$$config_postgresql_username:$$secret_postgresql_password@$$id-postgresql:5432/$$config_postgresql_database","description":""},{"id":"$$secret_clickhouse_database_url","name":"CLICKHOUSE_DATABASE_URL","label":"Database URL for Clickhouse","defaultValue":"http://$$id-clickhouse:8123/plausible","description":""},{"id":"$$config_admin_user_email","name":"ADMIN_USER_EMAIL","label":"Admin Email Address","defaultValue":"[email protected]","description":"This is the admin email. Please change it."},{"id":"$$config_admin_user_name","name":"ADMIN_USER_NAME","label":"Admin User Name","defaultValue":"$$generate_username","description":"This is the admin username. Please change it."},{"id":"$$secret_admin_user_pwd","name":"ADMIN_USER_PWD","label":"Admin User Password","defaultValue":"$$generate_password","description":"This is the admin password. Please change it.","showOnConfiguration":true},{"id":"$$secret_secret_key_base","name":"SECRET_KEY_BASE","label":"Secret Key Base","defaultValue":"$$generate_hex(64)","description":""},{"id":"$$config_disable_auth","name":"DISABLE_AUTH","label":"Disable Authentication","defaultValue":"false","description":""},{"id":"$$config_disable_registration","name":"DISABLE_REGISTRATION","label":"Disable Registration","defaultValue":"true","description":""},{"id":"$$config_postgresql_username","main":"$$id-postgresql","name":"POSTGRESQL_USERNAME","label":"PostgreSQL Username","defaultValue":"postgresql","description":""},{"id":"$$secret_postgresql_password","main":"$$id-postgresql","name":"POSTGRESQL_PASSWORD","label":"PostgreSQL Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true},{"id":"$$config_postgresql_database","main":"$$id-postgresql","name":"POSTGRESQL_DATABASE","label":"PostgreSQL Database","defaultValue":"plausible","description":""},{"id":"$$config_scriptName","name":"SCRIPT_NAME","label":"Custom Script Name","defaultValue":"plausible.js","description":"This is the default script name."}]},{"templateVersion":"1.0.0","defaultVersion":"0.98.1","documentation":"https://docs.nocodb.com","type":"nocodb","name":"NocoDB","description":"Turns any MySQL, PostgreSQL, SQL Server, SQLite & MariaDB into a smart-spreadsheet.","labels":["database","airtable","spreadsheet"],"services":{"$$id":{"name":"NocoDB","image":"nocodb/nocodb:$$core_version","environment":["PORT=$$config_port","NC_DB=$$config_nc_db","DATABASE_URL=$$secret_database_url","NC_PUBLIC_URL=$$config_public_url","NC_AUTH_JWT_SECRET=$$secret_auth_jwt_secret","NC_SENTRY_DSN=$$secret_sentry_dsn","NC_CONNECT_TO_EXTERNAL_DB_DISABLED=$$config_connect_to_external_db_disabled","NC_DISABLE_TELE=$$config_disable_tele"],"volumes":["$$id-data:/usr/app/data"],"ports":["8080"]}},"variables":[{"id":"$$config_nc_db","name":"NC_DB","label":"Database","defaultValue":"","description":"MySQL, PostgreSQL and MSSQL connection urls supported. If absent: A local SQLite will be created in root folder."},{"id":"$$config_port","name":"PORT","label":"Port","defaultValue":"8080","description":""},{"id":"$$secret_database_url","name":"DATABASE_URL","label":"Database URL","defaultValue":"","description":"JDBC URL Format. Can be used instead of NC_DB. Used in 1-Click Heroku deployment."},{"id":"$$config_public_url","name":"NC_PUBLIC_URL","label":"Public URL","defaultValue":"","description":"Used for sending Email invitations. If absent: Best guess from http request params."},{"id":"$$secret_auth_jwt_secret","name":"NC_AUTH_JWT_SECRET","label":"Auth JWT Secret","defaultValue":"$$generate_hex(64)","description":"JWT secret used for auth and storing other secrets. If absent: A Random secret will be generated."},{"id":"$$secret_sentry_dsn","name":"NC_SENTRY_DSN","label":"Sentry DSN","defaultValue":"","description":"For Sentry monitoring."},{"id":"$$config_connect_to_external_db_disabled","name":"NC_CONNECT_TO_EXTERNAL_DB_DISABLED","label":"Disable External Database","defaultValue":"0","description":"Disable Project creation with external database. (Enter \"1\" to disable)."},{"id":"$$config_disable_tele","name":"NC_DISABLE_TELE","label":"NocoDB Disable Telemetry","defaultValue":"1","description":"Disable telemetry (Enter \"1\" to disable)."}]}]
\ No newline at end of file
diff --git a/package.json b/package.json
index c2c5bc9d5d..d1a77ef05b 100644
--- a/package.json
+++ b/package.json
@@ -8,8 +8,10 @@
"oc": "opencollective-setup",
"translate": "pnpm run --filter i18n-converter translate",
"db:studio": "pnpm run --filter api db:studio",
+ "db:studio:trpc": "pnpm run --filter server db:studio",
"db:studio:container": "docker exec coolify pnpm run --filter api db:studio",
"db:push": "pnpm run --filter api db:push",
+ "db:push:trpc": "pnpm run --filter server db:push",
"db:seed": "pnpm run --filter api db:seed",
"db:migrate": "pnpm run --filter api db:migrate",
"db:migrate:container": "docker exec coolify pnpm run --filter api db:migrate",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 1c06d02dda..4482f8b631 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -163,9 +163,12 @@ importers:
'@typescript-eslint/eslint-plugin': 5.44.0
'@typescript-eslint/parser': 5.44.0
autoprefixer: 10.4.13
+ cuid: 2.1.8
+ daisyui: 2.41.0
eslint: 8.28.0
eslint-config-prettier: 8.5.0
eslint-plugin-svelte3: 4.0.0
+ flowbite-svelte: 0.28.0
js-cookie: 3.0.1
postcss: 8.4.19
postcss-load-config: 4.0.1
@@ -183,6 +186,9 @@ importers:
dependencies:
'@trpc/client': 10.1.0_@[email protected]
'@trpc/server': 10.1.0
+ cuid: 2.1.8
+ daisyui: 2.41.0_2lwn2upnx27dqeg6hqdu7sq75m
+ flowbite-svelte: 0.28.0
js-cookie: 3.0.1
server: link:../server
superjson: 1.11.0
@@ -231,22 +237,34 @@ importers:
'@prisma/client': 4.6.1
'@trpc/client': 10.1.0
'@trpc/server': 10.1.0
+ '@types/jsonwebtoken': ^8.5.9
'@types/node': 18.11.9
'@types/node-fetch': 2.6.2
+ '@types/shell-quote': ^1.7.1
'@types/ws': 8.5.3
abort-controller: 3.0.0
+ bcryptjs: 2.4.3
+ cuid: 2.1.8
+ dayjs: 1.11.6
+ dotenv: ^16.0.3
+ execa: 6.1.0
fastify: 4.10.2
fastify-plugin: 4.4.0
+ got: ^12.5.3
+ is-port-reachable: 4.0.0
jsonwebtoken: 8.5.1
node-fetch: 3.3.0
npm-run-all: 4.1.5
prisma: 4.6.1
rimraf: 3.0.2
+ shell-quote: ^1.7.4
+ ssh-config: 4.1.6
start-server-and-test: 1.14.0
superjson: 1.11.0
tslib: 2.4.1
tsx: 3.12.1
typescript: 4.9.3
+ unique-names-generator: 4.7.1
wait-port: 1.0.4
ws: 8.11.0
zod: 3.19.1
@@ -261,18 +279,30 @@ importers:
'@trpc/client': 10.1.0_@[email protected]
'@trpc/server': 10.1.0
abort-controller: 3.0.0
+ bcryptjs: 2.4.3
+ cuid: 2.1.8
+ dayjs: 1.11.6
+ dotenv: 16.0.3
+ execa: 6.1.0
fastify: 4.10.2
fastify-plugin: 4.4.0
+ got: 12.5.3
+ is-port-reachable: 4.0.0
jsonwebtoken: 8.5.1
node-fetch: 3.3.0
prisma: 4.6.1
+ shell-quote: 1.7.4
+ ssh-config: 4.1.6
superjson: 1.11.0
tslib: 2.4.1
+ unique-names-generator: 4.7.1
ws: 8.11.0
zod: 3.19.1
devDependencies:
+ '@types/jsonwebtoken': 8.5.9
'@types/node': 18.11.9
'@types/node-fetch': 2.6.2
+ '@types/shell-quote': 1.7.1
'@types/ws': 8.5.3
npm-run-all: 4.1.5
rimraf: 3.0.2
@@ -1716,7 +1746,6 @@ packages:
/@popperjs/core/2.11.6:
resolution: {integrity: sha512-50/17A98tWUfQ176raKiOGXuYpLyyVMkxxG6oylzL3BPOlA6ADGdK7EYunSa4I064xerltq9TGXs8HmOk5E+vw==}
- dev: true
/@prisma/client/[email protected]:
resolution: {integrity: sha512-M1+NNrMzqaOIxT7PBGcTs3IZo7d1EW/+gVQd4C4gUgWBDGgD9AcIeZnUSidgWClmpMSgVUdnVORjsWWGUameYA==}
@@ -2040,6 +2069,12 @@ packages:
resolution: {integrity: sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==}
dev: true
+ /@types/jsonwebtoken/8.5.9:
+ resolution: {integrity: sha512-272FMnFGzAVMGtu9tkr29hRL6bZj4Zs1KZNeHLnKqAvp06tAIcarTMwOh8/8bz4FmKRcMxZhZNeUAQsNLoiPhg==}
+ dependencies:
+ '@types/node': 18.11.9
+ dev: true
+
/@types/keyv/3.1.4:
resolution: {integrity: sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==}
dependencies:
@@ -2100,6 +2135,10 @@ packages:
resolution: {integrity: sha512-WwA1MW0++RfXmCr12xeYOOC5baSC9mSb0ZqCquFzKhcoF4TvHu5MKOuXsncgZcpVFhB1pXd5hZmM0ryAoCp12A==}
dev: true
+ /@types/shell-quote/1.7.1:
+ resolution: {integrity: sha512-SWZ2Nom1pkyXCDohRSrkSKvDh8QOG9RfAsrt5/NsPQC4UQJ55eG0qClA40I+Gkez4KTQ0uDUT8ELRXThf3J5jw==}
+ dev: true
+
/@types/which/2.0.1:
resolution: {integrity: sha512-Jjakcv8Roqtio6w1gr0D7y6twbhx6gGgFGF5BLwajPpnOIOxFkakFhCq+LmyyeAz7BX6ULrjBOxdKaCDy+4+dQ==}
dev: false
@@ -3454,7 +3493,6 @@ packages:
/classnames/2.3.2:
resolution: {integrity: sha512-CSbhY4cFEJRe6/GQzIk5qXZ4Jeg5pcsP7b5peFSDpffpe1cqjASH/n9UTjBwOp6XpMSTwQ8Za2K5V02ueA7Tmw==}
- dev: true
/clean-stack/4.2.0:
resolution: {integrity: sha512-LYv6XPxoyODi36Dp976riBtSY27VmFo+MKqEU9QCCWyTrdEPDog+RWA7xQWHi6Vbp61j5c4cdzzX1NidnwtUWg==}
@@ -4801,14 +4839,12 @@ packages:
'@popperjs/core': 2.11.6
classnames: 2.3.2
flowbite: 1.5.4
- dev: true
/flowbite/1.5.4:
resolution: {integrity: sha512-A4VTeJE+aHSbwrMzWvpTADhNgX8Njpb3DqRL26pFkOupklPg8cmNstZK8cXrFnBPxomOiX/OazZnhQM1BIZADQ==}
dependencies:
'@popperjs/core': 2.11.6
mini-svg-data-uri: 1.4.4
- dev: true
/follow-redirects/[email protected]:
resolution: {integrity: sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==}
@@ -5997,7 +6033,6 @@ packages:
/mini-svg-data-uri/1.4.4:
resolution: {integrity: sha512-r9deDe9p5FJUPZAk3A59wGH7Ii9YrjjWw0jmw/liSbHl2CHiyXj6FcDXDu2K3TjVAXqiJdaw3xxwlZZr9E6nHg==}
hasBin: true
- dev: true
/minimalistic-assert/1.0.1:
resolution: {integrity: sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==}