Loading...
Loading...
Verifica a Stack do Chatwoot. Além disso analisa parâmetros, rotas Traefik, volumes, recursos e conformidade do stack Chatwoot de Acordo com as Recomendações da Promovaweb.
npx skill4agent add promovaweb/skills-devops promovaweb-devops-review-chatwoot-stackchatwoot.yamlchatwoot.yamlx-chatwoot-*x-chatwoot-dbPOSTGRES_HOSTpostgresPOSTGRES_USERNAMEpostgresPOSTGRES_PASSWORDSENHApostgres.yamlPOSTGRES_DATABASEchatwootx-chatwoot-redisREDIS_URLredis://redis://redis:6379REDIS_PASSWORDx-chatwoot-storageACTIVE_STORAGE_SERVICEs3_compatiblelocalSTORAGE_BUCKET_NAMESTORAGE_ACCESS_KEY_IDSTORAGE_SECRET_ACCESS_KEYSTORAGE_REGIONSTORAGE_ENDPOINTSTORAGE_FORCE_PATH_STYLE"true"x-chatwoot-envINSTALLATION_NAMEchatwootNODE_ENVproductionRAILS_ENVproductionINSTALLATION_ENVdockerSECRET_KEY_BASE123458bb7ef6402f6a8bcf5d3be54321FRONTEND_URLhttps://chat.agenciasynca.com.brDEFAULT_LOCALEpt-BRFORCE_SSL"true"ENABLE_ACCOUNT_SIGNUPRAILS_LOG_TO_STDOUT"true"USE_INBOX_AVATAR_FOR_BOT"true"ENABLE_PUSH_RELAY_SERVER"true"| Serviço | Obrigatório | Hostname Esperado |
|---|---|---|
| Sim | |
| Sim | |
commandentrypoint| Serviço | Entrypoint Esperado | Comando Esperado |
|---|---|---|
| | |
| — | deve incluir |
chatwoot_sidekiq| Serviço | Réplicas Mínimas | Observação |
|---|---|---|
| 1 | Pode escalar, mas atenção à sessão |
| 1 | Pode escalar para mais workers |
chatwoot_adminx-chatwoot-app-urlx-chatwoot-app-urlchat.agenciasynca.com.brHost(...)traefik.http.routers.chatwoot_admin.rulex-chatwoot-app-urlFRONTEND_URLhttps://traefik.enable=truetraefik.swarm.network=network_swarm_publictraefik.http.routers.chatwoot_admin.ruleHost(...)x-chatwoot-app-urlFRONTEND_URLtraefik.http.routers.chatwoot_admin.entrypoints=websecuretraefik.http.routers.chatwoot_admin.tls.certresolver=letsencryptresolvertraefik.http.routers.chatwoot_admin.service=chatwoot_admintraefik.http.services.chatwoot_admin.loadbalancer.server.port=3000traefik.http.services.chatwoot_admin.loadbalancer.passhostheader=truetraefik.http.middlewares.sslheader.headers.customrequestheaders.X-Forwarded-Proto=httpstraefik.http.routers.chatwoot_admin.middlewares=sslheader@swarmchatwoot_dataexternal: true/app/storagechatwoot_adminchatwoot_sidekiq| Serviço | CPU Mínimo | Memória Mínima | Memória Máxima |
|---|---|---|---|
| "1" | 1024M | 2048M |
| "1" | 1024M | 2048M |
resources.limitsmode: replicatedreplicatedplacement.constraintsnode.role == managerupdate_configorder: start-firstfailure_action: rollbacknetwork_swarm_publicexternal: truenetworks:*chatwoot-imagelatestPOSTGRES_PASSWORDSENHASECRET_KEY_BASE123458bb7ef6402f6a8bcf5d3be54321openssl rand -hex 32STORAGE_ACCESS_KEY_IDSTORAGE_SECRET_ACCESS_KEYSTORAGE_BUCKET_NAMEchatwootENABLE_ACCOUNT_SIGNUP: "false"FORCE_SSL: "true"FRONTEND_URL# Relatório de Auditoria — chatwoot.yaml
Data: <data atual>
## Resumo
- Total de checks: X
- ✅ OK: X
- ⚠️ Atenções: X
- ❌ Erros: X
## Resultados por Categoria
### 1. Variáveis de Ambiente
✅ POSTGRES_HOST: definido
❌ POSTGRES_PASSWORD: usando placeholder SENHA — troque antes do deploy
...
### 2. Serviços
✅ chatwoot_admin: presente
✅ chatwoot_sidekiq: presente
### 3. Comandos
✅ chatwoot_admin: entrypoint e comando corretos
✅ chatwoot_sidekiq: inclui db:prepare e db:chatwoot_prepare
...
### 4. Replicas
✅ chatwoot_admin: 1 réplica
✅ chatwoot_sidekiq: 1 réplica
...
### 5. Rotas Traefik
✅ chatwoot_admin: rota Host correta, TLS ok
✅ chatwoot_admin: middleware WebSocket configurado
...
### 6. Volumes
✅ chatwoot_data: declarado como external e compartilhado
...
### 7. Recursos
✅ Todos os serviços com limits definidos
...
### 8. Deploy
⚠️ update_config não definido — recomendado configurar start-first e rollback
...
### 9. Redes e Imagens
⚠️ Imagem usando `latest` — considere fixar uma versão em produção
...
### 10. Segurança
❌ POSTGRES_PASSWORD: placeholder SENHA detectado
❌ SECRET_KEY_BASE: valor parece ser exemplo — gere um novo com openssl rand -hex 32
...
## Ações Recomendadas (por prioridade)
### Crítico (fazer antes do deploy)
1. ...
### Recomendado
1. ...
### Opcional
1. ...