Add Libredesk, a support desk for email and live chat (#36)
* Add Libredesk, a support desk for email and live chat Libredesk 2.9.2 with PostgreSQL and Redis, configured entirely by environment variables. Its admin password must mix cases, digits and a symbol, so it uses a new "password" secret generator; the schema, README and local test know it. Libredesk keeps its address in its own database, so a small settings service sets it to HARBOR_PUBLIC_URL on every start before the app boots. Its logos are PNG only, so it gets a drawn icon for now (docs/icons.md). * Check recipes against Harbor a21eb2c, which knows generate: password
This commit is contained in:
1 parent
daf4f8b627
commit
a5baf5bbb5
11 files changed
+186
-7
No files matched your search
@@ -0,0 +1,24 @@
|
||||
## First login
|
||||
|
||||
Sign in with the email **System** and the admin password shown on the app's page in your Cottage dashboard. That's Libredesk's built-in administrator. Then open **Admin → Agents** and add yourself and your team as agents with your own email addresses, so day-to-day work isn't done as System.
|
||||
|
||||
Cottage keeps **Admin → General → Root URL** set to your app's address, including after you add a custom domain, so links in emails and the chat widget always point to the right place.
|
||||
|
||||
## Connect your support email
|
||||
|
||||
Open **Admin → Inboxes**, add an **Email** inbox, and fill in your mail provider's details for both directions:
|
||||
|
||||
- **Incoming (IMAP):** the server, port 993 and the mailbox's login. Libredesk checks the mailbox and turns new emails into conversations.
|
||||
- **Outgoing (SMTP):** the server, port 465 or 587, and the same login. Replies are sent from the inbox's address, so customers see them as normal email.
|
||||
|
||||
Most providers, like Fastmail, Gmail and MXroute, publish these settings in their help pages. Use an app password if your provider offers them. Port 25 is blocked on Cottage, so use 465 or 587 for sending.
|
||||
|
||||
For emails to agents (assignments, SLA alerts and password resets), fill in your SMTP details under **Admin → Notifications**, then restart the app from your Cottage dashboard so the change takes effect.
|
||||
|
||||
## Add live chat to your website
|
||||
|
||||
Add a **Live Chat** inbox under **Admin → Inboxes**, then copy the snippet it shows into your website. Visitors' messages arrive in the same place as email.
|
||||
|
||||
## Export your data
|
||||
|
||||
Open a contact and choose **Export data** to download everything Libredesk holds about them, for example when a customer asks for their data. Cottage also keeps nightly backups of the whole app, database and attachments included.
|
||||
@@ -0,0 +1,19 @@
|
||||
name: Libredesk
|
||||
tagline: A shared support inbox for email and live chat.
|
||||
category: Customer support
|
||||
description: >-
|
||||
Answer customers from one place: connect your support email addresses and a
|
||||
live-chat widget for your website, then assign conversations, add private
|
||||
notes, reply with saved responses and track response times. A lightweight
|
||||
alternative to Zendesk, Intercom and Help Scout.
|
||||
upstream: https://github.com/abhinavxd/libredesk/tree/v2.9.2
|
||||
website: https://libredesk.io
|
||||
license: AGPL-3.0-only
|
||||
images:
|
||||
- ref: libredesk/libredesk:v2.9.2
|
||||
digest: sha256:1c5a234b113b6fa7b4170219a4e1063d8a9e4a396d4811b2ea03fdfcd02c63de
|
||||
- ref: postgres:18.7-alpine
|
||||
digest: sha256:0115267ab5a509022df9319c77be365cef335adb71556c75f60f5360ee247e71
|
||||
- ref: redis:8.10.3-alpine
|
||||
digest: sha256:7958cfbb9d152f87dadfbc89f1b0b15938f0b81ff8982feb327476f4911935c3
|
||||
mobile_apps: false
|
||||
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="14" fill="#3A63A8"/><path d="M16 36l5-15a3 3 0 0 1 3-2h16a3 3 0 0 1 3 2l5 15v8a3 3 0 0 1-3 3H19a3 3 0 0 1-3-3z" fill="none" stroke="#fff" stroke-width="4" stroke-linejoin="round"/><path d="M16 36h10l2 4h8l2-4h10" fill="none" stroke="#fff" stroke-width="4" stroke-linejoin="round" stroke-linecap="round"/></svg>
|
||||
|
After Width: | Height: | Size: 404 B |
@@ -0,0 +1,113 @@
|
||||
# Libredesk: customer support desk (shared email inboxes and live chat), with PostgreSQL and Redis.
|
||||
x-harbor:
|
||||
slug: libredesk
|
||||
name: Libredesk
|
||||
description: Customer support desk with shared inboxes and live chat.
|
||||
version: "2.9.2-c1"
|
||||
primary: { service: app, port: 9000 }
|
||||
health_path: /health
|
||||
default_resources: { cpu_millis: 750, memory_mb: 768, storage_mb: 10240 }
|
||||
min_resources: { cpu_millis: 500, memory_mb: 512, storage_mb: 2048 }
|
||||
weights: { app: 4, db: 2, redis: 1, settings: 1 }
|
||||
volumes:
|
||||
uploads: { uid: 1000, gid: 1000, mode: "0750" }
|
||||
setup: { uid: 1000, gid: 1000, mode: "0750" }
|
||||
db_data: { uid: 70, gid: 70, mode: "0700" }
|
||||
redis_data: { uid: 999, gid: 1000, mode: "0750" }
|
||||
parameters:
|
||||
# Libredesk refuses an admin password without upper- and lowercase letters, a digit and a symbol.
|
||||
- { key: ADMIN_PASSWORD, label: Admin password, type: string, secret: true, generate: password }
|
||||
- { key: ENCRYPTION_KEY, label: Encryption key, type: string, secret: true, generate: hex32 }
|
||||
- { key: DB_PASSWORD, label: Database password, type: string, secret: true, generate: random32 }
|
||||
|
||||
services:
|
||||
app:
|
||||
image: libredesk/libredesk:v2.9.2
|
||||
user: "1000:1000"
|
||||
# Install on the first start (idempotent: skipped once installed), apply upgrades, then wait
|
||||
# for the settings service below to set the app's address before starting.
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- >-
|
||||
./libredesk --install --idempotent-install --yes &&
|
||||
./libredesk --upgrade --yes &&
|
||||
until [ "$$(cat /setup/root-url 2>/dev/null)" = "$$LIBREDESK_ROOT_URL" ]; do sleep 1; done &&
|
||||
exec ./libredesk
|
||||
depends_on:
|
||||
db: { condition: service_healthy }
|
||||
redis: { condition: service_healthy }
|
||||
environment:
|
||||
LIBREDESK_DB__HOST: db
|
||||
LIBREDESK_DB__PORT: "5432"
|
||||
LIBREDESK_DB__USER: libredesk
|
||||
LIBREDESK_DB__PASSWORD: ${DB_PASSWORD}
|
||||
LIBREDESK_DB__DATABASE: libredesk
|
||||
LIBREDESK_DB__SSL_MODE: disable
|
||||
LIBREDESK_REDIS__ADDRESS: redis:6379
|
||||
LIBREDESK_ROOT_URL: ${HARBOR_PUBLIC_URL}
|
||||
LIBREDESK_SYSTEM_USER_PASSWORD: ${ADMIN_PASSWORD}
|
||||
LIBREDESK_APP__ENCRYPTION_KEY: ${ENCRYPTION_KEY}
|
||||
LIBREDESK_APP__ENV: prod
|
||||
LIBREDESK_APP__LOG_LEVEL: info
|
||||
# Cottage updates the app; Libredesk's own update banner would only confuse.
|
||||
LIBREDESK_APP__CHECK_UPDATES: "false"
|
||||
# Libredesk reads one address from this header; Cloudflare, in front of every Cottage app,
|
||||
# sets it to the visitor's IP. Without it every visitor shares one rate limit.
|
||||
LIBREDESK_APP__SERVER__CLIENT_IP_HEADER: CF-Connecting-IP
|
||||
LIBREDESK_UPLOAD__PROVIDER: fs
|
||||
LIBREDESK_UPLOAD__FS__UPLOAD_PATH: /libredesk/uploads
|
||||
volumes: [ "uploads:/libredesk/uploads", "setup:/setup" ]
|
||||
# Libredesk keeps its own address in its database, and that copy wins over configuration. This
|
||||
# sets it (and the default favicon address) to the app's real address on every start, then tells
|
||||
# the app it can start. It stays running because Cottage restarts services that exit.
|
||||
settings:
|
||||
image: postgres:18.7-alpine
|
||||
user: "1000:1000"
|
||||
depends_on:
|
||||
db: { condition: service_healthy }
|
||||
environment:
|
||||
PGHOST: db
|
||||
PGUSER: libredesk
|
||||
PGDATABASE: libredesk
|
||||
PGPASSWORD: ${DB_PASSWORD}
|
||||
ROOT_URL: ${HARBOR_PUBLIC_URL}
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- >-
|
||||
until psql -tAc "select 1 from settings where key = 'app.root_url'" 2>/dev/null | grep -q 1; do sleep 2; done &&
|
||||
printf '%s\n'
|
||||
"update settings set value = to_jsonb(:'url'::text), updated_at = now() where key = 'app.root_url';"
|
||||
"update settings set value = to_jsonb(:'url' || '/favicon.ico'), updated_at = now() where key = 'app.favicon_url' and value = '\"http://localhost:9000/favicon.ico\"'::jsonb;"
|
||||
| psql -v ON_ERROR_STOP=1 -v url="$$ROOT_URL" -q &&
|
||||
echo "$$ROOT_URL" > /setup/root-url &&
|
||||
while :; do sleep 3600; done
|
||||
volumes: [ "setup:/setup" ]
|
||||
db:
|
||||
image: postgres:18.7-alpine
|
||||
user: "70:70"
|
||||
environment:
|
||||
POSTGRES_DB: libredesk
|
||||
POSTGRES_USER: libredesk
|
||||
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
||||
volumes: [ "db_data:/var/lib/postgresql" ]
|
||||
healthcheck:
|
||||
test: [ "CMD", "pg_isready", "-U", "libredesk", "-d", "libredesk" ]
|
||||
interval: 5s
|
||||
retries: 30
|
||||
redis:
|
||||
image: redis:8.10.3-alpine
|
||||
user: "999:1000"
|
||||
command: [ "redis-server", "--appendonly", "yes" ]
|
||||
volumes: [ "redis_data:/data" ]
|
||||
healthcheck:
|
||||
test: [ "CMD", "redis-cli", "ping" ]
|
||||
interval: 5s
|
||||
retries: 30
|
||||
|
||||
volumes:
|
||||
uploads:
|
||||
setup:
|
||||
db_data:
|
||||
redis_data:
|
||||
Reference in new issue
Block a user