From da8955dabb1917155cf1e9d3f12a53845f2c0a12 Mon Sep 17 00:00:00 2001 From: Freilyn Bernabe Date: Mon, 26 Aug 2024 14:44:43 -0400 Subject: [PATCH] chore: clean up code and update Docker images to stable versions --- apps/dokploy/templates/typebot/docker-compose.yml | 14 +++++--------- apps/dokploy/templates/typebot/index.ts | 4 ++-- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/apps/dokploy/templates/typebot/docker-compose.yml b/apps/dokploy/templates/typebot/docker-compose.yml index 036ffea5..739793fe 100644 --- a/apps/dokploy/templates/typebot/docker-compose.yml +++ b/apps/dokploy/templates/typebot/docker-compose.yml @@ -17,12 +17,10 @@ services: - dokploy-network typebot-builder: - image: baptistearno/typebot-builder:latest + image: baptistearno/typebot-builder:2.27 restart: always depends_on: - typebot-db - ports: - - '8080:3000' environment: ENCRYPTION_SECRET: '${ENCRYPTION_SECRET}' DATABASE_URL: 'postgresql://typebot:typebot@typebot-db:5432/typebot' @@ -36,18 +34,16 @@ services: DEFAULT_WORKSPACE_PLAN: '${DEFAULT_WORKSPACE_PLAN}' typebot-viewer: - image: baptistearno/typebot-viewer:latest + image: baptistearno/typebot-viewer:2.27.0 restart: always - ports: - - '8081:3000' environment: ENCRYPTION_SECRET: '${ENCRYPTION_SECRET}' DATABASE_URL: postgresql://typebot:typebot@typebot-db:5432/typebot - NEXTAUTH_URL: http://localhost:8080 - NEXT_PUBLIC_VIEWER_URL: http://localhost:8081 + NEXTAUTH_URL: '${NEXTAUTH_URL}' + NEXT_PUBLIC_VIEWER_URL: '${NEXT_PUBLIC_VIEWER_URL}' ADMIN_EMAIL: '${ADMIN_EMAIL}' SMTP_HOST: '${SMTP_HOST}' NEXT_PUBLIC_SMTP_FROM: '${NEXT_PUBLIC_SMTP_FROM}' - SMTP_USER: '${SMTP_USER}' + SMTP_USERNAME: '${SMTP_USERNAME}' SMTP_PASSWORD: '${SMTP_PASSWORD}' DEFAULT_WORKSPACE_PLAN: '${DEFAULT_WORKSPACE_PLAN}' \ No newline at end of file diff --git a/apps/dokploy/templates/typebot/index.ts b/apps/dokploy/templates/typebot/index.ts index a0703d71..9861650a 100644 --- a/apps/dokploy/templates/typebot/index.ts +++ b/apps/dokploy/templates/typebot/index.ts @@ -14,12 +14,12 @@ export function generate(schema: Schema): Template { const domains: DomainSchema[] = [ { host: builderDomain, - port: 8080, + port: 3000, serviceName: "typebot-builder", }, { host: viewerDomain, - port: 8081, + port: 3000, serviceName: "typebot-viewer", }, ];