-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
96 lines (81 loc) · 2.13 KB
/
docker-compose.yml
File metadata and controls
96 lines (81 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
version: '3.8'
services:
evolution-go:
image: evoapicloud/evolution-go:latest
container_name: evolution-go
restart: unless-stopped
ports:
- "4000:4000"
environment:
# Servidor
SERVER_PORT: 4000
CLIENT_NAME: "evolution"
# Segurança (OBRIGATÓRIO)
GLOBAL_API_KEY: "sua-chave-api-segura-aqui"
# Banco de Dados PostgreSQL (RECOMENDADO)
POSTGRES_AUTH_DB: "postgresql://postgres:postgres@postgres:5432/evogo_auth?sslmode=disable"
POSTGRES_USERS_DB: "postgresql://postgres:postgres@postgres:5432/evogo_users?sslmode=disable"
DATABASE_SAVE_MESSAGES: "false"
# Logs e Debug
WADEBUG: "INFO"
LOGTYPE: "console"
LOG_DIRECTORY: "/app/logs"
LOG_MAX_SIZE: "100"
LOG_MAX_BACKUPS: "5"
LOG_MAX_AGE: "30"
LOG_COMPRESS: "true"
# Conexão
CONNECT_ON_STARTUP: "false"
WEBHOOKFILES: "true"
# Sistema
OS_NAME: "Linux"
# Eventos (Opcionais)
WEBHOOK_URL: ""
AMQP_URL: ""
AMQP_GLOBAL_ENABLED: "false"
NATS_URL: ""
NATS_GLOBAL_ENABLED: "false"
# Armazenamento de Mídia (Opcional)
MINIO_ENABLED: "false"
# Proxy (Opcional)
PROXY_HOST: ""
PROXY_PORT: ""
PROXY_USERNAME: ""
PROXY_PASSWORD: ""
# Eventos
EVENT_IGNORE_GROUP: "false"
EVENT_IGNORE_STATUS: "true"
# QR Code
QRCODE_MAX_COUNT: "5"
volumes:
- evolution_data:/app/dbdata
- evolution_logs:/app/logs
networks:
- evolution_network
depends_on:
- postgres
postgres:
image: postgres:15-alpine
container_name: evolution-postgres
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./init-db.sql:/docker-entrypoint-initdb.d/init-db.sql
networks:
- evolution_network
volumes:
evolution_data:
driver: local
evolution_logs:
driver: local
postgres_data:
driver: local
networks:
evolution_network:
driver: bridge