-
Notifications
You must be signed in to change notification settings - Fork 556
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added: EvolutionApi * Added: EvolutionApi * Added: EvolutionApi (fix)
- Loading branch information
1 parent
93d2af1
commit 9ec2756
Showing
2 changed files
with
250 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,250 @@ | ||
captainVersion: 4 | ||
services: | ||
$$cap_appname: | ||
image: atendai/evolution-api:$$cap_ant_version | ||
restart: always | ||
environment: | ||
SERVER_TYPE: 'http' | ||
SERVER_PORT: '80' | ||
SERVER_URL: 'https://$$cap_appname.$$cap_root_domain' | ||
SENTRY_DSN: '' | ||
CORS_ORIGIN: '*' | ||
CORS_METHODS: 'POST,GET,PUT,DELETE' | ||
CORS_CREDENTIALS: 'true' | ||
LOG_LEVEL: 'info' | ||
LOG_COLOR: 'true' | ||
LOG_BAILEYS: 'error' | ||
EVENT_EMITTER_MAX_LISTENERS: '100' | ||
DEL_INSTANCE: 'false' | ||
DATABASE_PROVIDER: 'postgresql' | ||
DATABASE_CONNECTION_URI: 'postgres://$$cap_postgres_user:$$cap_postgres_password@srv-captain--$$cap_appname-postgres:5432/$$cap_postgres_db' | ||
DATABASE_CONNECTION_CLIENT_NAME: 'evolution-api' | ||
DATABASE_SAVE_DATA_INSTANCE: 'true' | ||
DATABASE_SAVE_DATA_NEW_MESSAGE: 'true' | ||
DATABASE_SAVE_MESSAGE_UPDATE: 'true' | ||
DATABASE_SAVE_DATA_CONTACTS: 'true' | ||
DATABASE_SAVE_DATA_CHATS: 'true' | ||
DATABASE_SAVE_DATA_LABELS: 'true' | ||
DATABASE_SAVE_DATA_HISTORIC: 'true' | ||
DATABASE_SAVE_IS_ON_WHATSAPP: 'true' | ||
DATABASE_SAVE_IS_ON_WHATSAPP_DAYS: '30' | ||
DATABASE_DELETE_MESSAGE: 'false' | ||
RABBITMQ_ENABLED: 'true' | ||
RABBITMQ_URI: 'amqp://$$cap_rabbitmq_user:$$cap_rabbitmq_password@srv-captain--$$cap_appname-rabbitmq:5672' | ||
RABBITMQ_EXCHANGE_NAME: 'evolution-api' | ||
RABBITMQ_GLOBAL_ENABLED: 'true' | ||
RABBITMQ_EVENTS_APPLICATION_STARTUP: 'true' | ||
RABBITMQ_EVENTS_INSTANCE_CREATE: 'true' | ||
RABBITMQ_EVENTS_INSTANCE_DELETE: 'true' | ||
RABBITMQ_EVENTS_QRCODE_UPDATED: 'true' | ||
RABBITMQ_EVENTS_MESSAGES_SET: 'true' | ||
RABBITMQ_EVENTS_MESSAGES_UPSERT: 'true' | ||
RABBITMQ_EVENTS_MESSAGES_EDITED: 'true' | ||
RABBITMQ_EVENTS_MESSAGES_UPDATE: 'true' | ||
RABBITMQ_EVENTS_MESSAGES_DELETE: 'true' | ||
RABBITMQ_EVENTS_SEND_MESSAGE: 'true' | ||
RABBITMQ_EVENTS_CONTACTS_SET: 'true' | ||
RABBITMQ_EVENTS_CONTACTS_UPSERT: 'true' | ||
RABBITMQ_EVENTS_CONTACTS_UPDATE: 'true' | ||
RABBITMQ_EVENTS_PRESENCE_UPDATE: 'true' | ||
RABBITMQ_EVENTS_CHATS_SET: 'true' | ||
RABBITMQ_EVENTS_CHATS_UPSERT: 'true' | ||
RABBITMQ_EVENTS_CHATS_UPDATE: 'true' | ||
RABBITMQ_EVENTS_CHATS_DELETE: 'true' | ||
RABBITMQ_EVENTS_GROUPS_UPSERT: 'true' | ||
RABBITMQ_EVENTS_GROUP_UPDATE: 'true' | ||
RABBITMQ_EVENTS_GROUP_PARTICIPANTS_UPDATE: 'true' | ||
RABBITMQ_EVENTS_CONNECTION_UPDATE: 'true' | ||
RABBITMQ_EVENTS_REMOVE_INSTANCE: 'true' | ||
RABBITMQ_EVENTS_LOGOUT_INSTANCE: 'true' | ||
RABBITMQ_EVENTS_CALL: 'true' | ||
RABBITMQ_EVENTS_TYPEBOT_START: 'true' | ||
RABBITMQ_EVENTS_TYPEBOT_CHANGE_STATUS: 'true' | ||
SQS_ENABLED: 'false' | ||
SQS_ACCESS_KEY_ID: '' | ||
SQS_SECRET_ACCESS_KEY: '' | ||
SQS_ACCOUNT_ID: '' | ||
SQS_REGION: '' | ||
WEBSOCKET_ENABLED: 'false' | ||
WEBSOCKET_GLOBAL_EVENTS: 'false' | ||
PUSHER_ENABLED: 'false' | ||
PUSHER_GLOBAL_ENABLED: 'false' | ||
PUSHER_GLOBAL_APP_ID: '' | ||
PUSHER_GLOBAL_KEY: '' | ||
PUSHER_GLOBAL_SECRET: '' | ||
PUSHER_GLOBAL_CLUSTER: '' | ||
PUSHER_GLOBAL_USE_TLS: '' | ||
PUSHER_EVENTS_APPLICATION_STARTUP: '' | ||
PUSHER_EVENTS_QRCODE_UPDATED: '' | ||
PUSHER_EVENTS_MESSAGES_SET: '' | ||
PUSHER_EVENTS_MESSAGES_UPSERT: '' | ||
PUSHER_EVENTS_MESSAGES_EDITED: '' | ||
PUSHER_EVENTS_MESSAGES_UPDATE: '' | ||
PUSHER_EVENTS_MESSAGES_DELETE: '' | ||
PUSHER_EVENTS_SEND_MESSAGE: '' | ||
PUSHER_EVENTS_CONTACTS_SET: '' | ||
PUSHER_EVENTS_CONTACTS_UPSERT: '' | ||
PUSHER_EVENTS_CONTACTS_UPDATE: '' | ||
PUSHER_EVENTS_PRESENCE_UPDATE: '' | ||
PUSHER_EVENTS_CHATS_SET: '' | ||
PUSHER_EVENTS_CHATS_UPSERT: '' | ||
PUSHER_EVENTS_CHATS_UPDATE: '' | ||
PUSHER_EVENTS_CHATS_DELETE: '' | ||
PUSHER_EVENTS_GROUPS_UPSERT: '' | ||
PUSHER_EVENTS_GROUPS_UPDATE: '' | ||
PUSHER_EVENTS_GROUP_PARTICIPANTS_UPDATE: '' | ||
PUSHER_EVENTS_CONNECTION_UPDATE: '' | ||
PUSHER_EVENTS_LABELS_EDIT: '' | ||
PUSHER_EVENTS_LABELS_ASSOCIATION: '' | ||
PUSHER_EVENTS_CALL: '' | ||
PUSHER_EVENTS_TYPEBOT_START: '' | ||
PUSHER_EVENTS_TYPEBOT_CHANGE_STATUS: '' | ||
WA_BUSINESS_TOKEN_WEBHOOK: '' | ||
WA_BUSINESS_URL: '' | ||
WA_BUSINESS_VERSION: '' | ||
WA_BUSINESS_LANGUAGE: '' | ||
WEBHOOK_GLOBAL_ENABLED: 'true' | ||
WEBHOOK_GLOBAL_URL: 'https://your-webhook-url.com' | ||
WEBHOOK_GLOBAL_WEBHOOK_BY_EVENTS: 'true' | ||
WEBHOOK_EVENTS_APPLICATION_STARTUP: 'true' | ||
WEBHOOK_EVENTS_QRCODE_UPDATED: 'true' | ||
WEBHOOK_EVENTS_MESSAGES_SET: 'true' | ||
WEBHOOK_EVENTS_MESSAGES_UPSERT: 'true' | ||
WEBHOOK_EVENTS_MESSAGES_EDITED: 'true' | ||
WEBHOOK_EVENTS_MESSAGES_UPDATE: 'true' | ||
WEBHOOK_EVENTS_MESSAGES_DELETE: 'true' | ||
WEBHOOK_EVENTS_SEND_MESSAGE: 'true' | ||
WEBHOOK_EVENTS_CONTACTS_SET: 'true' | ||
WEBHOOK_EVENTS_CONTACTS_UPSERT: 'true' | ||
WEBHOOK_EVENTS_CONTACTS_UPDATE: 'true' | ||
WEBHOOK_EVENTS_PRESENCE_UPDATE: 'true' | ||
WEBHOOK_EVENTS_CHATS_SET: 'true' | ||
WEBHOOK_EVENTS_CHATS_UPSERT: 'true' | ||
WEBHOOK_EVENTS_CHATS_UPDATE: 'true' | ||
WEBHOOK_EVENTS_CHATS_DELETE: 'true' | ||
WEBHOOK_EVENTS_GROUPS_UPSERT: 'true' | ||
WEBHOOK_EVENTS_GROUPS_UPDATE: 'true' | ||
WEBHOOK_EVENTS_GROUP_PARTICIPANTS_UPDATE: 'true' | ||
WEBHOOK_EVENTS_CONNECTION_UPDATE: 'true' | ||
WEBHOOK_EVENTS_REMOVE_INSTANCE: 'true' | ||
WEBHOOK_EVENTS_LOGOUT_INSTANCE: 'true' | ||
WEBHOOK_EVENTS_LABELS_EDIT: 'true' | ||
WEBHOOK_EVENTS_LABELS_ASSOCIATION: 'true' | ||
WEBHOOK_EVENTS_CALL: 'true' | ||
WEBHOOK_EVENTS_TYPEBOT_START: 'true' | ||
WEBHOOK_EVENTS_TYPEBOT_CHANGE_STATUS: 'true' | ||
WEBHOOK_EVENTS_ERRORS: 'true' | ||
WEBHOOK_EVENTS_ERRORS_WEBHOOK: 'true' | ||
CONFIG_SESSION_PHONE_CLIENT: 'Evolution API' | ||
CONFIG_SESSION_PHONE_NAME: 'Chrome' | ||
CONFIG_SESSION_PHONE_VERSION: '4.0.0' | ||
QRCODE_LIMIT: '30' | ||
QRCODE_COLOR: '#198754' | ||
TYPEBOT_ENABLED: 'false' | ||
TYPEBOT_API_VERSION: '1' | ||
CHATWOOT_ENABLED: 'false' | ||
CHATWOOT_MESSAGE_READ: 'false' | ||
CHATWOOT_MESSAGE_DELETE: 'false' | ||
CHATWOOT_BOT_CONTACT: 'false' | ||
CHATWOOT_IMPORT_DATABASE_CONNECTION_URI: '' | ||
CHATWOOT_IMPORT_PLACEHOLDER_MEDIA_MESSAGE: '' | ||
OPENAI_ENABLED: 'false' | ||
DIFY_ENABLED: 'false' | ||
CACHE_REDIS_ENABLED: 'true' | ||
CACHE_REDIS_URI: 'redis://srv-captain--$$cap_appname-redis:6379' | ||
CACHE_REDIS_TTL: '3600' | ||
CACHE_REDIS_PREFIX_KEY: 'evolution-api:' | ||
CACHE_REDIS_SAVE_INSTANCES: 'true' | ||
CACHE_LOCAL_ENABLED: 'false' | ||
S3_ENABLED: 'false' | ||
S3_ACCESS_KEY: '' | ||
S3_SECRET_KEY: '' | ||
S3_BUCKET: '' | ||
S3_PORT: '' | ||
S3_ENDPOINT: '' | ||
S3_REGION: 'us-east-1' | ||
S3_USE_SSL: 'false' | ||
AUTHENTICATION_API_KEY: '$$cap_appname_authentication_api_key' | ||
AUTHENTICATION_EXPOSE_IN_FETCH_INSTANCES: 'false' | ||
LANGUAGE: 'en' | ||
PROXY_HOST: '' | ||
PROXY_PORT: '' | ||
PROXY_PROTOCOL: '' | ||
PROXY_USERNAME: '' | ||
PROXY_PASSWORD: '' | ||
volumes: | ||
- $$cap_appname-data:/evolution | ||
depends_on: | ||
- $$cap_appname-redis | ||
- $$cap_appname-postgres | ||
- $$cap_appname-rabbitmq | ||
$$cap_appname-redis: | ||
image: redis:latest | ||
restart: always | ||
volumes: | ||
- $$cap_appname-redis-data:/data | ||
$$cap_appname-postgres: | ||
image: postgres:$$cap_postgres_version | ||
restart: always | ||
environment: | ||
POSTGRES_USER: $$cap_postgres_user | ||
POSTGRES_PASSWORD: $$cap_postgres_password | ||
POSTGRES_DB: $$cap_postgres_db | ||
volumes: | ||
- $$cap_appname-postgres-data:/var/lib/postgresql/data | ||
$$cap_appname-rabbitmq: | ||
image: rabbitmq:$$cap_rabbitmq_version | ||
restart: always | ||
environment: | ||
RABBITMQ_DEFAULT_USER: $$cap_rabbitmq_user | ||
RABBITMQ_DEFAULT_PASS: $$cap_rabbitmq_password | ||
volumes: | ||
- $$cap_appname-rabbitmq-data:/var/lib/rabbitmq | ||
caproverOneClickApp: | ||
variables: | ||
- id: $$cap_ant_version | ||
label: Evolution API Version | ||
description: Choose the latest version of Evolution API from https://hub.docker.com/r/atendai/evolution-api/tags | ||
defaultValue: v2.2.1 | ||
- id: $$cap_postgres_version | ||
label: PostgreSQL Version | ||
description: Choose the latest version of PostgreSQL from https://hub.docker.com/_/postgres/tags | ||
defaultValue: '17' | ||
- id: $$cap_redis_version | ||
label: Redis Version | ||
description: Choose the latest version of Redis from https://hub.docker.com/_/redis/tags | ||
defaultValue: '6.2' | ||
- id: $$cap_rabbitmq_version | ||
label: RabbitMQ Version | ||
description: Choose the latest version of RabbitMQ from https://hub.docker.com/_/rabbitmq/tags | ||
defaultValue: '3.7' | ||
- id: $$cap_appname_authentication_api_key | ||
label: Authentication API Key | ||
description: Set a strong API key for authentication | ||
defaultValue: $$cap_gen_random_hex(32) | ||
- id: $$cap_postgres_user | ||
label: PostgreSQL Username | ||
description: Set the username for PostgreSQL | ||
defaultValue: evolution | ||
- id: $$cap_postgres_password | ||
label: PostgreSQL Password | ||
description: Set a strong password for PostgreSQL | ||
defaultValue: $$cap_gen_random_hex(16) | ||
- id: $$cap_postgres_db | ||
label: PostgreSQL Database Name | ||
description: Set the database name for PostgreSQL | ||
defaultValue: evolution_db | ||
- id: $$cap_rabbitmq_user | ||
label: RabbitMQ Username | ||
description: Set the username for RabbitMQ | ||
defaultValue: evolution | ||
- id: $$cap_rabbitmq_password | ||
label: RabbitMQ Password | ||
description: Set a strong password for RabbitMQ | ||
defaultValue: $$cap_gen_random_hex(16) | ||
instructions: | ||
start: Deploying Evolution API with required services (PostgreSQL, Redis, RabbitMQ)... | ||
end: Once finished, you need to activate HTTPS and WebSocket support before being able to use the app. | ||
displayName: Evolution API | ||
isOfficial: true | ||
description: Evolution API is a powerful WhatsApp API that allows you to create bots and automate your WhatsApp communication. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.