mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Remove Chatwoot
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="undefined" height="undefined" viewBox="0 0 24 24">
|
||||
<path fill="#0ea5e9" d="M0 12c0 6.629 5.371 12 12 12s12-5.371 12-12S18.629 0 12 0S0 5.371 0 12m17.008 5.29H11.44a5.57 5.57 0 0 1-5.562-5.567A5.57 5.57 0 0 1 11.44 6.16a5.57 5.57 0 0 1 5.567 5.563Z"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 306 B |
@@ -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:
|
||||
@@ -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,
|
||||
};
|
||||
}
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user