diff --git a/apps/dokploy/public/templates/chatwoot.svg b/apps/dokploy/public/templates/chatwoot.svg deleted file mode 100644 index 56c9a7b8..00000000 --- a/apps/dokploy/public/templates/chatwoot.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/apps/dokploy/templates/chatwoot/docker-compose.yml b/apps/dokploy/templates/chatwoot/docker-compose.yml deleted file mode 100644 index f1b2d2c6..00000000 --- a/apps/dokploy/templates/chatwoot/docker-compose.yml +++ /dev/null @@ -1,130 +0,0 @@ -version: "3.8" - -services: - base: &base - image: chatwoot/chatwoot:v3.14.1 - networks: - - dokploy-network - volumes: - - storage_data:/app/storage - - postgres: - image: postgres:12 - networks: - - dokploy-network - volumes: - - postgres_data:/var/lib/postgresql/data - environment: - POSTGRES_DB: chatwoot_production - POSTGRES_USER: admin - POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} - healthcheck: - test: ["CMD-SHELL", "pg_isready -U admin -h localhost -d chatwoot_production"] - interval: 10s - timeout: 5s - retries: 5 - restart: always - - redis: - image: redis:alpine - networks: - - dokploy-network - command: redis-server --requirepass ${REDIS_PASSWORD} - volumes: - - redis_data:/data - healthcheck: - test: ["CMD", "redis-cli", "-a", "${REDIS_PASSWORD}", "ping"] - interval: 10s - timeout: 5s - retries: 5 - restart: always - - setup: - <<: *base - environment: - NODE_ENV: production - RAILS_ENV: production - INSTALLATION_ENV: docker - FRONTEND_URL: http://${CHATWOOT_HOST} - SECRET_KEY_BASE: ${SECRET_KEY_BASE} - POSTGRES_HOST: postgres - POSTGRES_USERNAME: admin - POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} - POSTGRES_DATABASE: chatwoot_production - REDIS_URL: redis://redis:6379 - REDIS_PASSWORD: ${REDIS_PASSWORD} - ENABLE_ACCOUNT_SIGNUP: "false" - FORCE_SSL: "false" - RAILS_LOG_TO_STDOUT: "true" - command: > - sh -c " - echo 'Waiting for postgres...' - until PGPASSWORD=${POSTGRES_PASSWORD} psql -h postgres -U admin -d chatwoot_production -c '\q' > /dev/null 2>&1; do - sleep 5 - echo 'Waiting for postgres...' - done - echo 'PostgreSQL is ready!' - bundle exec rails db:chatwoot_prepare - " - depends_on: - postgres: - condition: service_healthy - redis: - condition: service_healthy - - rails: - <<: *base - depends_on: - setup: - condition: service_completed_successfully - postgres: - condition: service_healthy - redis: - condition: service_healthy - environment: - NODE_ENV: production - RAILS_ENV: production - INSTALLATION_ENV: docker - FRONTEND_URL: http://${CHATWOOT_HOST} - SECRET_KEY_BASE: ${SECRET_KEY_BASE} - POSTGRES_HOST: postgres - POSTGRES_USERNAME: admin - POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} - POSTGRES_DATABASE: chatwoot_production - REDIS_URL: redis://redis:6379 - REDIS_PASSWORD: ${REDIS_PASSWORD} - ENABLE_ACCOUNT_SIGNUP: "false" - FORCE_SSL: "false" - RAILS_LOG_TO_STDOUT: "true" - entrypoint: docker/entrypoints/rails.sh - command: ['bundle', 'exec', 'rails', 's', '-p', '3000', '-b', '0.0.0.0'] - restart: always - - sidekiq: - <<: *base - depends_on: - postgres: - condition: service_healthy - redis: - condition: service_healthy - environment: - NODE_ENV: production - RAILS_ENV: production - INSTALLATION_ENV: docker - FRONTEND_URL: http://${CHATWOOT_HOST} - SECRET_KEY_BASE: ${SECRET_KEY_BASE} - POSTGRES_HOST: postgres - POSTGRES_USERNAME: admin - POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} - POSTGRES_DATABASE: chatwoot_production - REDIS_URL: redis://redis:6379 - REDIS_PASSWORD: ${REDIS_PASSWORD} - FORCE_SSL: "false" - RAILS_LOG_TO_STDOUT: "true" - command: ['bundle', 'exec', 'sidekiq', '-C', 'config/sidekiq.yml'] - restart: always - -volumes: - storage_data: - postgres_data: - redis_data: \ No newline at end of file diff --git a/apps/dokploy/templates/chatwoot/index.ts b/apps/dokploy/templates/chatwoot/index.ts deleted file mode 100644 index 234b802a..00000000 --- a/apps/dokploy/templates/chatwoot/index.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { - type DomainSchema, - type Schema, - type Template, - generateBase64, - generateRandomDomain, - generatePassword, -} from "../utils"; - -export function generate(schema: Schema): Template { - const mainDomain = generateRandomDomain(schema); - const postgresPassword = generatePassword(); - const redisPassword = generatePassword(); - const secretKeyBase = generateBase64(64); - - const domains: DomainSchema[] = [ - { - host: mainDomain, - port: 3000, - serviceName: "rails", - }, - ]; - - const envs = [ - `CHATWOOT_HOST=${mainDomain}`, - `POSTGRES_PASSWORD=${postgresPassword}`, - `REDIS_PASSWORD=${redisPassword}`, - `SECRET_KEY_BASE=${secretKeyBase}`, - ]; - - return { - domains, - envs, - }; -} \ No newline at end of file diff --git a/apps/dokploy/templates/templates.ts b/apps/dokploy/templates/templates.ts index e0711b75..df2d77f5 100644 --- a/apps/dokploy/templates/templates.ts +++ b/apps/dokploy/templates/templates.ts @@ -786,20 +786,6 @@ export const templates: TemplateData[] = [ tags: ["bookmarks", "link-shortener", "self-hosted"], load: () => import("./slash/index").then((m) => m.generate), }, - { - id: "chatwoot", - name: "Chatwoot", - version: "v3.14.1", - description: "Open-source customer engagement suite, an alternative to Intercom, Zendesk, Salesforce Service Cloud etc.", - logo: "chatwoot.svg", - links: { - github: "https://github.com/chatwoot/chatwoot", - website: "https://www.chatwoot.com", - docs: "https://www.chatwoot.com/docs", - }, - tags: ["customer-support", "live-chat", "helpdesk"], - load: () => import("./chatwoot/index").then((m) => m.generate), - }, { id: "discord-tickets", name: "Discord Tickets",