@@ -13,9 +13,6 @@ services:
1313 volumes :
1414 - evolution_instances:/evolution/instances
1515 - evolution_store:/evolution/store
16- depends_on :
17- - mongodb
18- - redis
1916 environment :
2017 # Determine how long the instance should be deleted from memory in case of no connection.
2118 # Default time: 5 minutes
@@ -32,7 +29,7 @@ services:
3229 - CLEAN_STORE_CONTACTS=true
3330 - CLEAN_STORE_CHATS=true
3431 # Permanent data storage
35- - DATABASE_ENABLED=true
32+ - DATABASE_ENABLED=false
3633 - DATABASE_CONNECTION_URI=mongodb://root:root@mongodb:27017/?authSource=admin&readPreference=primary&ssl=false&directConnection=true
3734 - DATABASE_CONNECTION_DB_PREFIX_NAME=evolution
3835 # Choose the data you want to save in the application's database or store
@@ -42,23 +39,22 @@ services:
4239 - DATABASE_SAVE_MESSAGE_UPDATE=true
4340 - DATABASE_SAVE_DATA_CONTACTS=true
4441 - DATABASE_SAVE_DATA_CHATS=true
45- - REDIS_ENABLED=true
46- - REDIS_URI=redis://redis:6379
42+ - REDIS_ENABLED=false
43+ - REDIS_URI=redis://redis:6379/1
4744 - REDIS_PREFIX_KEY=evolution
4845 # Webhook Settings
4946 # Define a global webhook that will listen for enabled events from all instances
50- - WEBHOOK_GLOBAL_URL=url
47+ - WEBHOOK_GLOBAL_URL=< url>
5148 - WEBHOOK_GLOBAL_ENABLED=false
5249 # With this option activated, you work with a url per webhook event, respecting the global url and the name of each event
5350 - WEBHOOK_GLOBAL_WEBHOOK_BY_EVENTS=false
5451 # Automatically maps webhook paths
5552 # Set the events you want to hear
56- - WEBHOOK_EVENTS_STATUS_INSTANCE=true
5753 - WEBHOOK_EVENTS_APPLICATION_STARTUP=false
5854 - WEBHOOK_EVENTS_QRCODE_UPDATED=true
5955 - WEBHOOK_EVENTS_MESSAGES_SET=true
60- - WEBHOOK_EVENTS_MESSAGES_UPDATE=true
6156 - WEBHOOK_EVENTS_MESSAGES_UPSERT=true
57+ - WEBHOOK_EVENTS_MESSAGES_UPDATE=true
6258 - WEBHOOK_EVENTS_SEND_MESSAGE=true
6359 - WEBHOOK_EVENTS_CONTACTS_SET=true
6460 - WEBHOOK_EVENTS_CONTACTS_UPSERT=true
@@ -67,14 +63,16 @@ services:
6763 - WEBHOOK_EVENTS_CHATS_SET=true
6864 - WEBHOOK_EVENTS_CHATS_UPSERT=true
6965 - WEBHOOK_EVENTS_CHATS_UPDATE=true
70- - WEBHOOK_EVENTS_CONNECTION_UPDATE =true
66+ - WEBHOOK_EVENTS_CHATS_DELETE =true
7167 - WEBHOOK_EVENTS_GROUPS_UPSERT=true
7268 - WEBHOOK_EVENTS_GROUPS_UPDATE=true
7369 - WEBHOOK_EVENTS_GROUP_PARTICIPANTS_UPDATE=true
70+ - WEBHOOK_EVENTS_CONNECTION_UPDATE=true
7471 # This event fires every time a new token is requested via the refresh route
7572 - WEBHOOK_EVENTS_NEW_JWT_TOKEN=true
7673 # Name that will be displayed on smartphone connection
77- - CONFIG_SESSION_PHONE_CLIENT="Evolution API"
74+ - CONFIG_SESSION_PHONE_CLIENT=Evolution API
75+ - CONFIG_SESSION_PHONE_NAME=chrome # chrome | firefox | edge | opera | safari
7876 # Set qrcode display limit
7977 - QRCODE_LIMIT=30
8078 # Defines an authentication type for the api
@@ -88,56 +86,16 @@ services:
8886 - AUTHENTICATION_JWT_EXPIRIN_IN=0 # seconds - 3600s === 1h | zero (0) - never expires
8987 # Set the instance name and webhook url to create an instance in init the application
9088 # With this option activated, you work with a url per webhook event, respecting the local url and the name of each event
91- - AUTHENTICATION_INSTANCE_WEBHOOK_BY_EVENTS=false
9289 - AUTHENTICATION_INSTANCE_MODE=server # container or server
9390 # if you are using container mode, set the container name and the webhook url to default instance
9491 - AUTHENTICATION_INSTANCE_NAME=evolution
95- - AUTHENTICATION_INSTANCE_WEBHOOK_URL=url
92+ - AUTHENTICATION_INSTANCE_WEBHOOK_URL=< url>
9693 command : ['node', './dist/src/main.js']
9794 networks :
9895 - evolution-net
9996 expose :
10097 - 8080
10198
102- mongodb :
103- container_name : mongodb
104- image : mongo
105- restart : always
106- volumes :
107- - evolution_mongodb_data:/data/db
108- - evolution_mongodb_configdb:/data/configdb
109- ports :
110- - 27017:27017
111- environment :
112- MONGO_INITDB_ROOT_USERNAME : root
113- MONGO_INITDB_ROOT_PASSWORD : root
114- networks :
115- - evolution-net
116- expose :
117- - 27017
118-
119- redis :
120- image : redis:latest
121- command : >
122- redis-server
123- --port 6379
124- --appendonly yes
125- --save 900 1
126- --save 300 10
127- --save 60 10000
128- --appendfsync everysec
129- volumes :
130- - evolution_redis:/data
131- container_name : redis
132- ports :
133- - 6379:6379
134- networks :
135- - evolution-net
136-
137-
13899volumes :
139100 evolution_instances :
140- evolution_store :
141- evolution_mongodb_data :
142- evolution_mongodb_configdb :
143- evolution_redis:
101+ evolution_store:
0 commit comments