diff --git a/Docker/evolution_api_v2.yaml b/Docker/evolution_api_v2.yaml new file mode 100644 index 000000000..d5fda76f0 --- /dev/null +++ b/Docker/evolution_api_v2.yaml @@ -0,0 +1,141 @@ +version: "3.7" + +services: + evolution_v2: + image: atendai/evolution-api:v2.0.0-beta + volumes: + - evolution_instances:/evolution/instances + networks: + - network_public + environment: + - SERVER_URL=https://evo2.site.com + - DEL_INSTANCE=false + - DEL_TEMP_INSTANCES=false + - PROVIDER_ENABLED=false + - PROVIDER_HOST=127.0.0.1 + - PROVIDER_PORT=5656 + - PROVIDER_PREFIX=evolution_v2 + - DATABASE_ENABLED=true + - DATABASE_PROVIDER=postgresql + - DATABASE_CONNECTION_URI=postgresql://postgres:SENHA@postgres:5432/evolution + - DATABASE_CONNECTION_CLIENT_NAME=evolution_v2 + - RABBITMQ_ENABLED=false + - RABBITMQ_URI=amqp://admin:admin@rabbitmq:5672/default + - RABBITMQ_EXCHANGE_NAME=evolution_v2 + - RABBITMQ_GLOBAL_ENABLED=false + - RABBITMQ_EVENTS_APPLICATION_STARTUP=false + - RABBITMQ_EVENTS_INSTANCE_CREATE=false + - RABBITMQ_EVENTS_INSTANCE_DELETE=false + - RABBITMQ_EVENTS_QRCODE_UPDATED=false + - RABBITMQ_EVENTS_MESSAGES_SET=false + - RABBITMQ_EVENTS_MESSAGES_UPSERT=true + - RABBITMQ_EVENTS_MESSAGES_EDITED=false + - RABBITMQ_EVENTS_MESSAGES_UPDATE=false + - RABBITMQ_EVENTS_MESSAGES_DELETE=false + - RABBITMQ_EVENTS_SEND_MESSAGE=false + - RABBITMQ_EVENTS_CONTACTS_SET=false + - RABBITMQ_EVENTS_CONTACTS_UPSERT=false + - RABBITMQ_EVENTS_CONTACTS_UPDATE=false + - RABBITMQ_EVENTS_PRESENCE_UPDATE=false + - RABBITMQ_EVENTS_CHATS_SET=false + - RABBITMQ_EVENTS_CHATS_UPSERT=false + - RABBITMQ_EVENTS_CHATS_UPDATE=false + - RABBITMQ_EVENTS_CHATS_DELETE=false + - RABBITMQ_EVENTS_GROUPS_UPSERT=false + - RABBITMQ_EVENTS_GROUP_UPDATE=false + - RABBITMQ_EVENTS_GROUP_PARTICIPANTS_UPDATE=false + - RABBITMQ_EVENTS_CONNECTION_UPDATE=true + - RABBITMQ_EVENTS_CALL=false + - RABBITMQ_EVENTS_TYPEBOT_START=false + - RABBITMQ_EVENTS_TYPEBOT_CHANGE_STATUS=false + - SQS_ENABLED=false + - SQS_ACCESS_KEY_ID= + - SQS_SECRET_ACCESS_KEY= + - SQS_ACCOUNT_ID= + - SQS_REGION= + - WEBSOCKET_ENABLED=false + - WEBSOCKET_GLOBAL_EVENTS=false + - WA_BUSINESS_TOKEN_WEBHOOK=evolution + - WA_BUSINESS_URL=https://graph.facebook.com + - WA_BUSINESS_VERSION=v20.0 + - WA_BUSINESS_LANGUAGE=pt_BR + - WEBHOOK_GLOBAL_URL='' + - WEBHOOK_GLOBAL_ENABLED=false + - WEBHOOK_GLOBAL_WEBHOOK_BY_EVENTS=false + - WEBHOOK_EVENTS_APPLICATION_STARTUP=false + - 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_LABELS_EDIT=true + - WEBHOOK_EVENTS_LABELS_ASSOCIATION=true + - WEBHOOK_EVENTS_CALL=true + - 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_NAME=Chrome + - CONFIG_SESSION_PHONE_VERSION=2.2413.51 + - QRCODE_LIMIT=30 + - TYPEBOT_ENABLED=true + - TYPEBOT_API_VERSION=latest + - CHATWOOT_ENABLED=true + - CHATWOOT_MESSAGE_READ=true + - CHATWOOT_IMPORT_DATABASE_CONNECTION_URI=postgresql://postgres:PASSWORD@postgres:5432/chatwoot?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_SAVE_INSTANCES=false + - CACHE_LOCAL_ENABLED=false + - S3_ENABLED=true + - S3_ACCESS_KEY= + - S3_SECRET_KEY= + - S3_BUCKET=evolution + - S3_PORT=443 + - S3_ENDPOINT=files.site.com + - S3_USE_SSL=true + - AUTHENTICATION_API_KEY=429683C4C977415CAAFCCE10F7D57E11 + - AUTHENTICATION_EXPOSE_IN_FETCH_INSTANCES=true + - LANGUAGE=en + deploy: + mode: replicated + replicas: 1 + placement: + constraints: + - node.hostname == evolution-manager + labels: + - traefik.enable=true + - traefik.http.routers.evolution_v2.rule=Host(`evo2.site.com`) + - traefik.http.routers.evolution_v2.entrypoints=websecure + - traefik.http.routers.evolution_v2.tls.certresolver=letsencryptresolver + - traefik.http.routers.evolution_v2.priority=1 + - traefik.http.routers.evolution_v2.service=evolution_v2 + - traefik.http.services.evolution_v2.loadbalancer.server.port=8080 + - traefik.http.services.evolution_v2.loadbalancer.passHostHeader=true + +volumes: + evolution_instances: + external: true + name: evolution_v2_data + +networks: + network_public: + external: true + name: network_public \ No newline at end of file diff --git a/README.md b/README.md index 5a85edb51..1285cc1a5 100644 --- a/README.md +++ b/README.md @@ -174,4 +174,7 @@ We are proud to collaborate with the following content creators who have contrib - [Rubén Salazar](https://youtube.com/channel/UCnYGZIE2riiLqaN9sI6riig) - [OrionDesign](youtube.com/OrionDesign_Oficial) - [IMPA 365](youtube.com/@impa365_ofc) -- [Comunidade Hub Connect](https://youtube.com/@comunidadehubconnect) \ No newline at end of file +- [Comunidade Hub Connect](https://youtube.com/@comunidadehubconnect) +- [dSantana Automações](https://www.youtube.com/channel/UCG7DjUmAxtYyURlOGAIryNQ?view_as=subscriber) +- [Edison Martins](https://www.youtube.com/@edisonmartinsmkt) +- [Astra Online](https://www.youtube.com/@astraonlineweb) \ No newline at end of file