You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happened: I adapted the Docker Compose spec to be used with the fantastic Caprover PaaS one-click-app templates.
What did you expect to happen: An awesome open source help desk with supporting database and elasticsearch are provisioned, connected, and launched successfully behind a secured Nginx reverse proxy with Lets Encrypt SSL with minimal effort.
How to reproduce it (as minimally and precisely as possible):
Choose to deploy a new "One-Click App" and either select Trudesk from its presets (pending PR approval/merge), or copy/paste the code below into a generic Template.
Launch using default settings.
?
Profit.
Anything else we need to know?: This has been tested (and is working a treat!) with Debian 10/11, using the settings found in the official Docker Compose file, Trudesk docs, and bits and pieces from previously closed issues. I will be submitting a PR to include Trudesk in Caprover's official One Click Apps directory, after which Trudesk can be deployed to a Caprover instance/cluster with just a few clicks.
captainVersion: 4services:
$$cap_appname:
image: polonel/trudesk:$$cap_trudesk_versionvolumes:
- $$cap_appname-data:/usr/src/trudesk/public/uploads
- $$cap_appname-plugins:/usr/src/trudesk/plugins
- $$cap_appname-backups:/usr/src/trudesk/backupsdepends_on:
- $$cap_appname-mongodb
- $$cap_appname-elasticsearchrestart: alwaysenvironment:
NODE_ENV: $$cap_node_envTRUDESK_DOCKER: "true"TD_MONGODB_SERVER: srv-captain--$$cap_appname-mongodbTD_MONGODB_PORT: $$cap_appname-mongodb-portTD_MONGODB_USERNAME: rootTD_MONGODB_PASSWORD: $$cap_mongo_passwordTD_MONGODB_DATABASE: trudeskTD_MONGODB_URI: "mongodb://root:$$cap_mongo_password@srv-captain--$$cap_appname-mongodb:27017/trudesk?authSource=admin"ELATICSEARCH_URI: http://srv-captain--$$cap_appname-elasticsearch:9200USE_XFORWARDIP: "true"caproverExtra:
containerHttpPort: '8118'$$cap_appname-mongodb:
image: mongo:$$cap_mongodb_versionvolumes:
- $$cap_appname-db-data:/data/db
- $$cap_appname-db-config:/var/lib/mongorestart: alwaysenvironment:
MONGO_INITDB_ROOT_USERNAME: rootMONGO_INITDB_ROOT_PASSWORD: $$cap_mongo_passwordcaproverExtra:
notExposeAsWebApp: 'true'$$cap_appname-elasticsearch:
image: elasticsearch:$$cap_elasticsearch_versionvolumes:
- $$cap_appname-elasticsearch-data:/usr/share/elasticsearch/datarestart: alwaysenvironment:
xpack.security.enabled: $$cap_elasticsearch_security_enabledxpack.security.http.ssl.enabled: $$cap_elasticsearch_security_enableddiscovery.type: single-nodenode.name: estrudesk01bootstrap.memory_lock: trueES_JAVA_OPTS: "-Xms512m -Xmx512m"caproverExtra:
notExposeAsWebApp: 'true'caproverOneClickApp:
variables:
- id: $$cap_trudesk_versionlabel: Trudesk VersiondefaultValue: '1.2.10'description: Check out their docker page for the valid tags https://hub.docker.com/r/polonel/trudesk/tagsvalidRegex: /^([^\s^\/])+$/
- id: $$cap_mongodb_versionlabel: MongoDB VersiondefaultValue: '5.0.26'description: Check out their docker page for the valid tags https://hub.docker.com/r/library/mongo/tags/validRegex: /^([^\s^\/])+$/
- id: $$cap_appname-mongodb-portlabel: MongoDB PortdefaultValue: '27017'description: MongoDB portvalidRegex: /^([^\s^\/])+$/
- id: $$cap_elasticsearch_versionlabel: Elasticsearch VersiondefaultValue: '8.13.0'description: Check out their docker page for the valid tags https://hub.docker.com/_/elasticsearchvalidRegex: /^([^\s^\/])+$/
- id: $$cap_elasticsearch_security_enabledlabel: Security EnableddefaultValue: 'false'description: 'When you enable this option, Elasticsearch will create a random password (see startup logs) for the `elastic` user and create SSL certificates required for authentication. **It is recommended to leave this off for a quick setup**. Warning: make sure to enable HTTP Basic Auth in CapRover!'validRegex: /^([^\s^\/])+$/
- id: $$cap_node_envlabel: Application Environmentdescription: NodeJS application environment. Should be either `production` or `development`defaultValue: productionvalidRegex: /^(production|development)$/
- id: $$cap_mongo_passwordlabel: MongoDB Root PassworddefaultValue: $$cap_gen_random_hex(16)description: MongoDB root passwordvalidRegex: /^([^\s^\/])+$/instructions:
start: |- Trudesk is built with nodejs and mongodb and can run on any cloud provider, docker, bare-metal, or even a raspberry pi.end: |- Trudesk has been successfully deployed! **IMPORTANT**: The intial setup process may take a few minutes. Please be patient. Please perform the following steps: 1. Go to the **HTTP Settings** of `$$cap_appname` and **Enable WebSocket Support**. Enabling **HTTPS** is also recommended. 2. Visit your Trudesk instance at `http://$$cap_appname.$$cap_root_domain` and create your account 3. Have fun with Trudesk!displayName: 'Trudesk'isOfficial: truedescription: Trudesk is an open-source help desk/ticketing solution.documentation: Taken from https://trudesk.io/docs
The text was updated successfully, but these errors were encountered:
Is this a BUG REPORT or FEATURE REQUEST?:
What happened: I adapted the Docker Compose spec to be used with the fantastic Caprover PaaS one-click-app templates.
What did you expect to happen: An awesome open source help desk with supporting database and elasticsearch are provisioned, connected, and launched successfully behind a secured Nginx reverse proxy with Lets Encrypt SSL with minimal effort.
How to reproduce it (as minimally and precisely as possible):
Trudesk
from its presets (pending PR approval/merge), or copy/paste the code below into a genericTemplate
.Anything else we need to know?: This has been tested (and is working a treat!) with Debian 10/11, using the settings found in the official Docker Compose file, Trudesk docs, and bits and pieces from previously closed issues. I will be submitting a PR to include Trudesk in Caprover's official One Click Apps directory, after which Trudesk can be deployed to a Caprover instance/cluster with just a few clicks.
Environment:
The text was updated successfully, but these errors were encountered: