Adicionar chatwoot/chatwoot_2025.04.22.yaml
Stack do Chatwoot do dia 22 de Abril de 2025.
This commit is contained in:
139
chatwoot/chatwoot_2025.04.22.yaml
Normal file
139
chatwoot/chatwoot_2025.04.22.yaml
Normal file
@@ -0,0 +1,139 @@
|
|||||||
|
services:
|
||||||
|
#################################################################################
|
||||||
|
# Execute o comando abaixo para configurar o banco do chatwoot #
|
||||||
|
# bundle exec rails db:chatwoot_prepare #
|
||||||
|
# OBS: Use o terminal ash #
|
||||||
|
#################################################################################
|
||||||
|
# Para mais variáveis de ambiente #
|
||||||
|
# https://www.chatwoot.com/docs/self-hosted/configuration/environment-variables #
|
||||||
|
#################################################################################
|
||||||
|
chatwoot_app:
|
||||||
|
#image: sendingtk/chatwoot:3.15.6
|
||||||
|
image: chatwoot/chatwoot:v4.0.4
|
||||||
|
entrypoint: docker/entrypoints/rails.sh
|
||||||
|
command: bundle exec rails s -p 3000 -b 0.0.0.0
|
||||||
|
networks:
|
||||||
|
- traefik_network
|
||||||
|
- postgres_network
|
||||||
|
volumes:
|
||||||
|
- chatwoot_data:/app/storage
|
||||||
|
- chatwoot_public:/app
|
||||||
|
secrets:
|
||||||
|
- db_user_automacao
|
||||||
|
- postgres16
|
||||||
|
environment:
|
||||||
|
RAILS_ENV: production
|
||||||
|
SECRET_KEY_BASE: M2dmVyQqXLzZbKCZ2XlcGdaUFLT0Iu8r
|
||||||
|
FRONTEND_URL: https://chat.omegaflow.com.br
|
||||||
|
DEFAULT_LOCALE: pt_BR
|
||||||
|
FORCE_SSL: "true"
|
||||||
|
ENABLE_ACCOUNT_SIGNUP: "false"
|
||||||
|
REDIS_URL: redis://redis:6379
|
||||||
|
## Banco de dados
|
||||||
|
#DATABASE_URL: "postgresql://chatwoot:${DB_PASSWORD}@automacao/chatwoot"
|
||||||
|
DB_PASSWORD_FILE: /run/secrets/db_user_automacao
|
||||||
|
POSTGRES_HOST: postgres
|
||||||
|
POSTGRES_DATABASE: chatwoot
|
||||||
|
POSTGRES_USERNAME: automacao
|
||||||
|
POSTGRES_PASSWORD: Qgs#j7Cwugag0dt*7pnD7heonoVDg4KpBBEgvLD2
|
||||||
|
## Timezone
|
||||||
|
#TZ: America/Sao_Paulo
|
||||||
|
TZ: UTC
|
||||||
|
#RAILS_TIMEZONE: America/Sao_Paulo
|
||||||
|
RAILS_TIMEZONE: UTC
|
||||||
|
DATABASE_TIMEZONE: America/Sao_Paulo
|
||||||
|
ACTIVE_RECORD_DATABASE_TIMEZONES: "true"
|
||||||
|
## Armazenamento
|
||||||
|
ACTIVE_STORAGE_SERVICE: local
|
||||||
|
## Logs
|
||||||
|
RAILS_LOG_TO_STDOUT: "true"
|
||||||
|
## Avatar Bot
|
||||||
|
USE_INBOX_AVATAR_FOR_BOT: "true"
|
||||||
|
## SALVAMENTO DAS MENSAGENS
|
||||||
|
DATABASE_SAVE_DATA_NEW_MESSAGE: "true"
|
||||||
|
DATABASE_SAVE_MESSAGE_UPDATE: "true"
|
||||||
|
DATABASE_SAVE_DATA_CHATS: "true"
|
||||||
|
deploy:
|
||||||
|
mode: replicated
|
||||||
|
replicas: 1
|
||||||
|
placement:
|
||||||
|
constraints: []
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpus: '1'
|
||||||
|
memory: 1024M
|
||||||
|
|
||||||
|
chatwoot_worker:
|
||||||
|
#image: sendingtk/chatwoot:3.15.6
|
||||||
|
image: chatwoot/chatwoot:v4.0.4
|
||||||
|
command: bundle exec sidekiq -C config/sidekiq.yml
|
||||||
|
networks:
|
||||||
|
- postgres_network
|
||||||
|
volumes:
|
||||||
|
- chatwoot_data:/app/storage
|
||||||
|
- chatwoot_public:/app
|
||||||
|
secrets:
|
||||||
|
- db_user_automacao
|
||||||
|
- postgres16
|
||||||
|
environment:
|
||||||
|
RAILS_ENV: production
|
||||||
|
SECRET_KEY_BASE: M2dmVyQqXLzZbKCZ2XlcGdaUFLT0Iu8r
|
||||||
|
FRONTEND_URL: https://chat.omegaflow.com.br
|
||||||
|
DEFAULT_LOCALE: pt_BR
|
||||||
|
FORCE_SSL: "true"
|
||||||
|
ENABLE_ACCOUNT_SIGNUP: "false"
|
||||||
|
REDIS_URL: redis://redis:6379
|
||||||
|
## Banco de dados
|
||||||
|
#DATABASE_URL: "postgresql://chatwoot:${DB_PASSWORD}@automacao/chatwoot"
|
||||||
|
DB_PASSWORD_FILE: /run/secrets/db_user_automacao
|
||||||
|
POSTGRES_HOST: postgres
|
||||||
|
POSTGRES_DATABASE: chatwoot
|
||||||
|
POSTGRES_USERNAME: automacao
|
||||||
|
POSTGRES_PASSWORD: Qgs#j7Cwugag0dt*7pnD7heonoVDg4KpBBEgvLD2
|
||||||
|
## Timezone
|
||||||
|
#TZ: America/Sao_Paulo
|
||||||
|
RAILS_TIMEZONE: America/Sao_Paulo
|
||||||
|
DATABASE_TIMEZONE: America/Sao_Paulo
|
||||||
|
ACTIVE_RECORD_DATABASE_TIMEZONES: "true"
|
||||||
|
# Armazenamento
|
||||||
|
ACTIVE_STORAGE_SERVICE: local
|
||||||
|
# Logs
|
||||||
|
RAILS_LOG_TO_STDOUT: "true"
|
||||||
|
# Avatar Bot
|
||||||
|
USE_INBOX_AVATAR_FOR_BOT: "true"
|
||||||
|
# SALVAMENTO DAS MENSAGENS
|
||||||
|
DATABASE_SAVE_DATA_NEW_MESSAGE: "true"
|
||||||
|
DATABASE_SAVE_MESSAGE_UPDATE: "true"
|
||||||
|
DATABASE_SAVE_DATA_CHATS: "true"
|
||||||
|
deploy:
|
||||||
|
mode: replicated
|
||||||
|
replicas: 1
|
||||||
|
placement:
|
||||||
|
constraints: []
|
||||||
|
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpus: '1'
|
||||||
|
memory: 1024M
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
chatwoot_data:
|
||||||
|
external: true
|
||||||
|
chatwoot_public:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
secrets:
|
||||||
|
db_user_automacao:
|
||||||
|
external: true
|
||||||
|
postgres16:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
networks:
|
||||||
|
postgres_network:
|
||||||
|
driver: overlay
|
||||||
|
attachable: true
|
||||||
|
external: true
|
||||||
|
traefik_network:
|
||||||
|
driver: overlay
|
||||||
|
attachable: true
|
||||||
|
external: true
|
||||||
Reference in New Issue
Block a user