From 6fc66e4cdf2d2495b17f76987dfe04f3f4ef1319 Mon Sep 17 00:00:00 2001 From: Gabriel Augusto Date: Tue, 1 Oct 2024 11:09:54 -0300 Subject: [PATCH] Add evolution portainer --- Evolution V2/evolution_api_v2-portainer.yaml | 98 ++++++++++---------- 1 file changed, 47 insertions(+), 51 deletions(-) diff --git a/Evolution V2/evolution_api_v2-portainer.yaml b/Evolution V2/evolution_api_v2-portainer.yaml index 679e736..94802a7 100644 --- a/Evolution V2/evolution_api_v2-portainer.yaml +++ b/Evolution V2/evolution_api_v2-portainer.yaml @@ -8,22 +8,20 @@ services: networks: - network_public environment: - - SERVER_URL=https://evo2.site.com + - SERVER_URL=https://[DOMINIO] - DEL_INSTANCE=false + - DEL_TEMP_INSTANCES=false + - PROVIDER_ENABLED=false + - PROVIDER_HOST=127.0.0.1 + - PROVIDER_PORT=5656 + - PROVIDER_PREFIX=evolution-app + - DATABASE_ENABLED=true - DATABASE_PROVIDER=postgresql - - DATABASE_CONNECTION_URI=postgresql://postgres:SENHA@postgres:5432/evolution - - 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_CONNECTION_CLIENT_NAME=evolution_v2 + - DATABASE_CONNECTION_URI=postgres://[USUARIO]:[SENHA]@databases_postgres:5432/[DATABASE_NAME] + - DATABASE_CONNECTION_CLIENT_NAME=evolution-app - RABBITMQ_ENABLED=false - - RABBITMQ_URI=amqp://admin:admin@rabbitmq:5672/default - - RABBITMQ_EXCHANGE_NAME=evolution_v2 - - RABBITMQ_GLOBAL_ENABLED=false + - RABBITMQ_URI= + - RABBITMQ_GLOBAL_ENABLED=true - RABBITMQ_EVENTS_APPLICATION_STARTUP=false - RABBITMQ_EVENTS_INSTANCE_CREATE=false - RABBITMQ_EVENTS_INSTANCE_DELETE=false @@ -60,64 +58,62 @@ services: - WA_BUSINESS_URL=https://graph.facebook.com - WA_BUSINESS_VERSION=v20.0 - WA_BUSINESS_LANGUAGE=pt_BR - - WEBHOOK_GLOBAL_URL='' + - WEBHOOK_GLOBAL_URL= - WEBHOOK_GLOBAL_ENABLED=false - WEBHOOK_GLOBAL_WEBHOOK_BY_EVENTS=false - - WEBHOOK_EVENTS_APPLICATION_STARTUP=false + - 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_MESSAGES_SET=false + - WEBHOOK_EVENTS_MESSAGES_UPSERT=false + - WEBHOOK_EVENTS_MESSAGES_EDITED=false + - WEBHOOK_EVENTS_MESSAGES_UPDATE=false + - WEBHOOK_EVENTS_MESSAGES_DELETE=false + - WEBHOOK_EVENTS_SEND_MESSAGE=false + - WEBHOOK_EVENTS_CONTACTS_SET=false + - WEBHOOK_EVENTS_CONTACTS_UPSERT=false + - WEBHOOK_EVENTS_CONTACTS_UPDATE=false + - WEBHOOK_EVENTS_PRESENCE_UPDATE=false + - WEBHOOK_EVENTS_CHATS_UPSERT=false + - WEBHOOK_EVENTS_CHATS_SET=false + - WEBHOOK_EVENTS_CHATS_UPDATE=false + - WEBHOOK_EVENTS_CHATS_DELETE=false + - WEBHOOK_EVENTS_GROUPS_UPSERT=false + - WEBHOOK_EVENTS_GROUPS_UPDATE=false + - WEBHOOK_EVENTS_GROUP_PARTICIPANTS_UPDATE=false - WEBHOOK_EVENTS_CONNECTION_UPDATE=true - - WEBHOOK_EVENTS_LABELS_EDIT=true - - WEBHOOK_EVENTS_LABELS_ASSOCIATION=true - - WEBHOOK_EVENTS_CALL=true + - WEBHOOK_EVENTS_LABELS_EDIT=false + - WEBHOOK_EVENTS_LABELS_ASSOCIATION=false + - WEBHOOK_EVENTS_CALL=false - WEBHOOK_EVENTS_TYPEBOT_START=false - WEBHOOK_EVENTS_TYPEBOT_CHANGE_STATUS=false - WEBHOOK_EVENTS_ERRORS=false - WEBHOOK_EVENTS_ERRORS_WEBHOOK= - - CONFIG_SESSION_PHONE_CLIENT=Evolution API V2 + - CONFIG_SESSION_PHONE_CLIENT=G2N Group - CONFIG_SESSION_PHONE_NAME=Chrome - CONFIG_SESSION_PHONE_VERSION=2.3000.1015901307 - - QRCODE_LIMIT=30 - - OPENAI_ENABLED=true - - DIFY_ENABLED=true - - TYPEBOT_ENABLED=true + - QRCODE_LIMIT=2 + - QRCODE_COLOR=#000000 + - TYPEBOT_ENABLED=false - TYPEBOT_API_VERSION=latest - - CHATWOOT_ENABLED=true + - CHATWOOT_ENABLED=false - CHATWOOT_MESSAGE_READ=true - - CHATWOOT_MESSAGE_DELETE=true - - CHATWOOT_IMPORT_DATABASE_CONNECTION_URI=postgresql://postgres:PASSWORD@postgres:5432/chatwoot?sslmode=disable + - CHATWOOT_IMPORT_DATABASE_CONNECTION_URI=postgresql://[USUARIO]:[SENHA]@[HOST]:5432/[CHATWOPOT_DATABASE]?sslmode=disable - CHATWOOT_IMPORT_PLACEHOLDER_MEDIA_MESSAGE=true - CACHE_REDIS_ENABLED=true - - CACHE_REDIS_URI=redis://evo_redis:6379/1 - - CACHE_REDIS_PREFIX_KEY=evolution_v2 + - CACHE_REDIS_URI=redis://[USUARIO]:[SENHA]@databases_redis:6379/ + - CACHE_REDIS_PREFIX_KEY=evolution-app - CACHE_REDIS_SAVE_INSTANCES=false - CACHE_LOCAL_ENABLED=false - - S3_ENABLED=true + - S3_ENABLED=false - S3_ACCESS_KEY= - S3_SECRET_KEY= - - S3_BUCKET=evolution + - S3_BUCKET=evolution-v2-01 - S3_PORT=443 - - S3_ENDPOINT=files.site.com + - S3_ENDPOINT= - S3_USE_SSL=true - - AUTHENTICATION_API_KEY=429683C4C977415CAAFCCE10F7D57E11 + - AUTHENTICATION_API_KEY= - AUTHENTICATION_EXPOSE_IN_FETCH_INSTANCES=true - - LANGUAGE=en + - LANGUAGE=pt-BR deploy: mode: replicated replicas: 1 @@ -126,7 +122,7 @@ services: - node.hostname == evolution-manager labels: - traefik.enable=true - - traefik.http.routers.evolution_v2.rule=Host(`evo2.site.com`) + - traefik.http.routers.evolution_v2.rule=Host(`evo2.dominio.com`) - traefik.http.routers.evolution_v2.entrypoints=websecure - traefik.http.routers.evolution_v2.tls.certresolver=letsencryptresolver - traefik.http.routers.evolution_v2.priority=1