Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 33 additions & 21 deletions public/v4/apps/chatwoot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
captainVersion: 4
services:
$$cap_appname-postgres:
image: postgres:15
image: pgvector/pgvector:pg17
volumes:
- $$cap_appname-postgres-data:/var/lib/postgresql/data
restart: always
Expand All @@ -12,64 +12,76 @@ services:
caproverExtra:
notExposeAsWebApp: 'true'
$$cap_appname-redis:
image: redis:alpine
volumes:
- $$cap_appname-redis-data:/data
restart: always
environment:
REDIS_PASSWORD: $$cap_chatwoot_redis_password
command: ['sh', '-c', 'redis-server --requirepass $REDIS_PASSWORD']
caproverExtra:
dockerfileLines:
- FROM redis:alpine
- CMD exec redis-server --requirepass "$$cap_chatwoot_redis_password"
notExposeAsWebApp: 'true'
$$cap_appname-web:
image: chatwoot/chatwoot:$$cap_chatwoot_version
restart: always
volumes:
- $$cap_appname-storage:/data/storage
- $$cap_appname-app-storage:/app/storage
environment:
RAILS_ENV: production
RAILS_LOG_TO_STDOUT: 'true'
NODE_ENV: production
SECRET_KEY_BASE: $$cap_chatwoot_secret_key_base
FRONTEND_URL: https://$$cap_appname.$$cap_root_domain
DEFAULT_LOCALE: en
FORCE_SSL: 'false'
ENABLE_ACCOUNT_SIGNUP: 'true'
POSTGRES_HOST: srv-captain--$$cap_appname-postgres
POSTGRES_DATABASE: chatwoot
POSTGRES_USERNAME: chatwoot
POSTGRES_PASSWORD: $$cap_chatwoot_postgres_password
REDIS_URL: redis://srv-captain--$$cap_appname-redis:6379
REDIS_URL: redis://default:$$cap_chatwoot_redis_password@srv-captain--$$cap_appname-redis:6379
REDIS_PASSWORD: $$cap_chatwoot_redis_password
INSTALLATION_ENV: caprover
REDIS_OPENSSL_VERIFY_MODE: none
RAILS_MAX_THREADS: '5'
TRUSTED_PROXIES: '*'
INSTALLATION_ENV: docker
command: ['sh', '-c', 'bundle exec rails db:chatwoot_prepare && bundle exec rails s -p 3000 -b 0.0.0.0']
caproverExtra:
containerHttpPort: '3000'
dockerfileLines:
- FROM chatwoot/chatwoot:$$cap_chatwoot_version
- RUN chmod +x docker/entrypoints/rails.sh
- ENTRYPOINT ["docker/entrypoints/rails.sh"]
- EXPOSE 3000
- CMD bundle exec rails db:chatwoot_prepare; bundle exec rails s -b 0.0.0.0 -p 3000
$$cap_appname-worker:
image: chatwoot/chatwoot:$$cap_chatwoot_version
restart: always
volumes:
- $$cap_appname-app-storage:/app/storage
environment:
RAILS_ENV: production
RAILS_LOG_TO_STDOUT: 'true'
FRONTEND_URL: http://$$cap_appname.$$cap_root_domain
NODE_ENV: production
SECRET_KEY_BASE: $$cap_chatwoot_secret_key_base
FRONTEND_URL: https://$$cap_appname.$$cap_root_domain
DEFAULT_LOCALE: en
FORCE_SSL: 'false'
ENABLE_ACCOUNT_SIGNUP: 'true'
POSTGRES_HOST: srv-captain--$$cap_appname-postgres
POSTGRES_DATABASE: chatwoot
POSTGRES_USERNAME: chatwoot
POSTGRES_PASSWORD: $$cap_chatwoot_postgres_password
REDIS_URL: redis://srv-captain--$$cap_appname-redis:6379
REDIS_URL: redis://default:$$cap_chatwoot_redis_password@srv-captain--$$cap_appname-redis:6379
REDIS_PASSWORD: $$cap_chatwoot_redis_password
INSTALLATION_ENV: caprover
REDIS_OPENSSL_VERIFY_MODE: none
RAILS_MAX_THREADS: '5'
TRUSTED_PROXIES: '*'
INSTALLATION_ENV: docker
command: ['bundle', 'exec', 'sidekiq', '-C', 'config/sidekiq.yml']
caproverExtra:
dockerfileLines:
- FROM chatwoot/chatwoot:$$cap_chatwoot_version
- RUN chmod +x docker/entrypoints/rails.sh
- ENTRYPOINT ["docker/entrypoints/rails.sh"]
- CMD bundle exec sidekiq -C config/sidekiq.yml
notExposeAsWebApp: 'true'
caproverOneClickApp:
variables:
- id: $$cap_chatwoot_version
label: Chatwoot Version Tag
description: Choose the latest version from https://hub.docker.com/r/chatwoot/chatwoot/tags
defaultValue: v3.1.1
defaultValue: v4.0.1
- id: $$cap_chatwoot_secret_key_base
label: Chatwoot Secret Key Base
description: The randomized string which is used to verify the integrity of signed cookies. Please use a string with more than 26 characters
Expand Down
17 changes: 8 additions & 9 deletions public/v4/apps/minio.yml
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like minio file was unintentionally edited?

Feel free to submit as a separate PR.

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
captainVersion: 4
services:
$$cap_appname:
image: minio/minio:$$cap_minio_version
volumes:
- $$cap_appname-db-data:/data
- $$cap_appname-config-data:/root/.minio
Expand All @@ -11,11 +12,9 @@ services:
MINIO_REGION_NAME: 'eu-east-1'
MINIO_BROWSER_REDIRECT_URL: https://$$cap_appname.$$cap_root_domain
MINIO_SERVER_URL: https://$$cap_appname-api.$$cap_root_domain # MinIO S3 API
command: [minio server /data --console-address ":9001"]
caproverExtra:
containerHttpPort: '9001'
dockerfileLines:
- FROM minio/minio:$$cap_minio_version
- CMD ["server", "/data", "--console-address", ":9001"]
$$cap_appname-api:
image: caprover/nginx-reverse-proxy:1-ef5ffcb
restart: always
Expand All @@ -28,19 +27,19 @@ caproverOneClickApp:
variables:
- id: $$cap_minio_version
label: MinIO Version
defaultValue: RELEASE.2023-01-18T04-36-38Z
defaultValue: RELEASE.2025-09-07T16-13-09Z
description: Check out their Docker page for the valid tags https://hub.docker.com/r/minio/minio/tags/
validRegex: /^([^\s^\/])+$/
- id: $$cap_access_key
label: MinIO Root User Access Key
defaultValue: $$cap_gen_random_hex(24)
defaultValue: admin
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be kept unchanged

description: Access key for `MINIO_ROOT_USER`. If unset, minio defaults to `minioadmin`. MinIO strongly recommends specifying a unique, long, and random value for all environments.
validRegex: /(.{5,})|(^\s{0}$)/m
validRegex: /^(.{5,})?$/
- id: $$cap_secret_key
label: Minio Secret Key
defaultValue: $$cap_gen_random_hex(38)
description: Secret key for `MINIO_ROOT_PASSWORD`. If unset, minio defaults to `minioadmin`. MinIO strongly recommends specifying a unique, long, and random value for all environments.
validRegex: /(.{8,})|(^\s{0}$)/m
defaultValue: password
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be kept unchanged $$cap_gen_random_hex(38) ensures random default value

description: Secret key for `MINIO_ROOT_PASSWORD`. If unset, minio defaults to `minioadmin`. MinIO strongly recommends specifying a unique, long, and random value for all environments. Please change this to a secure password.
validRegex: /^(.{8,})?$/
instructions:
start: >-
MinIO is a High Performance Object Storage released under GNU Affero General Public License v3.0.
Expand Down
Loading