Skip to content

Commit 8269131

Browse files
Merge pull request #10 from jeffersongoncalves/evolution-update
docs(evolution): add README with setup instructions and usage guide
2 parents 891adff + 550b24c commit 8269131

File tree

3 files changed

+105
-0
lines changed

3 files changed

+105
-0
lines changed

Applications/evolution/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.env

Applications/evolution/README.md

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# EVOLUTION
2+
3+
Documentação do Evolution
4+
5+
[https://doc.evolution-api.com/](https://doc.evolution-api.com/)
6+
7+
Docker image
8+
9+
[https://hub.docker.com/r/atendai/evolution-api](https://hub.docker.com/r/atendai/evolution-api)
10+
11+
## Usage
12+
13+
Ajustar o endpoint do traefik no arquivo docker-compose.yml
14+
15+
```yaml
16+
labels:
17+
- "traefik.enable=true"
18+
- "traefik.http.routers.evolution.rule=Host(`evolution.yourdomain.online`)"
19+
- "traefik.http.routers.evolution.entrypoints=websecure"
20+
- "traefik.http.services.evolution.loadbalancer.server.port=8080"
21+
- "traefik.docker.network=applications"
22+
```
23+
24+
Crie o arquivo .env.
25+
26+
```bash
27+
cp .env.example .env
28+
```
29+
30+
```dotenv
31+
# Servidor
32+
SERVER_TYPE=http
33+
SERVER_PORT=8080
34+
SERVER_URL=https://evolution.yourdomain.online
35+
36+
# Auth Config
37+
AUTHENTICATION_TYPE=apikey
38+
AUTHENTICATION_API_KEY=23yJCmKK0YFx1Px7sETtcbVpvRylgJvh
39+
AUTHENTICATION_EXPOSE_IN_FETCH_INSTANCES=true
40+
41+
# Configuração do Redis com autenticação
42+
CACHE_REDIS_ENABLED=true
43+
CACHE_REDIS_URI=redis://:yourpassredis@redis:6379/2
44+
CACHE_REDIS_PREFIX_KEY=evolution
45+
CACHE_REDIS_SAVE_INSTANCES=true
46+
47+
POSTGRES_HOST=postgres
48+
POSTGRES_USER=administrator
49+
POSTGRES_PASSWORD=yourpassword
50+
POSTGRES_PORT=5432
51+
52+
# Typebot - Environment variables
53+
TYPEBOT_ENABLED=true
54+
TYPEBOT_API_VERSION=latest
55+
56+
# Determine the logs to be displayed
57+
LOG_LEVEL=ERROR,WARN,DEBUG,INFO,LOG,VERBOSE,DARK,WEBHOOKS,WEBSOCKET
58+
LOG_COLOR=true
59+
LOG_BAILEYS=error
60+
61+
# Set the maximum number of listeners that can be registered for an event
62+
EVENT_EMITTER_MAX_LISTENERS=50
63+
64+
# Choose the data you want to save in the application's database
65+
DATABASE_SAVE_DATA_INSTANCE=true
66+
DATABASE_SAVE_DATA_NEW_MESSAGE=true
67+
DATABASE_SAVE_MESSAGE_UPDATE=true
68+
DATABASE_SAVE_DATA_CONTACTS=true
69+
DATABASE_SAVE_DATA_CHATS=true
70+
DATABASE_SAVE_DATA_LABELS=true
71+
DATABASE_SAVE_DATA_HISTORIC=true
72+
DATABASE_SAVE_IS_ON_WHATSAPP=true
73+
DATABASE_SAVE_IS_ON_WHATSAPP_DAYS=7
74+
DATABASE_DELETE_MESSAGE=true
75+
76+
# Name that will be displayed on smartphone connection
77+
CONFIG_SESSION_PHONE_CLIENT=Evolution API
78+
79+
# Browser Name = Chrome | Firefox | Edge | Opera | Safari
80+
CONFIG_SESSION_PHONE_NAME=Chrome
81+
82+
# Set qrcode display limit
83+
QRCODE_LIMIT=30
84+
# Color of the QRCode on base64
85+
QRCODE_COLOR='#175197'
86+
```
87+
88+
## Comands
89+
90+
```bash
91+
docker compose build
92+
```
93+
94+
```bash
95+
docker compose up -d
96+
```
97+
98+
```bash
99+
docker compose down
100+
```
101+
102+
```bash
103+
docker compose rm
104+
```

0 commit comments

Comments
 (0)