-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
93 lines (79 loc) · 2.28 KB
/
docker-compose.prod.yml
File metadata and controls
93 lines (79 loc) · 2.28 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
version: '3.8'
services:
postgres:
image: postgres:15
container_name: evolution-postgres
restart: unless-stopped
environment:
POSTGRES_DB: evolution_api
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- evolution-network
evolution-api:
build: .
container_name: evolution-api
restart: unless-stopped
depends_on:
- postgres
environment:
# Database Configuration
DATABASE_PROVIDER: postgresql
DATABASE_CONNECTION_URI: postgresql://postgres:${POSTGRES_PASSWORD:-PASSWORD}@postgres:5432/evolution_api
# Server Configuration
SERVER_TYPE: http
SERVER_PORT: 8080
SERVER_URL: ${SERVER_URL:-http://localhost:8080}
# CORS Configuration
CORS_ORIGIN: "*"
CORS_METHODS: "GET,POST,PUT,DELETE"
CORS_CREDENTIALS: "true"
# Security
JWT_SECRET: ${JWT_SECRET:-your-secret-key-here}
JWT_EXPIRES_IN: 7d
# WhatsApp Configuration
WHATSAPP_DEFAULT_ANSWER: "Hola! Estoy usando Evolution API"
WHATSAPP_GROUP_LIMIT: 256
# Logging
LOG_LEVEL: INFO
LOG_COLOR: true
# Redis (opcional)
REDIS_ENABLED: false
# Database Save Settings
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_SAVE_IS_ON_WHATSAPP: true
DATABASE_SAVE_IS_ON_WHATSAPP_DAYS: 7
DATABASE_DELETE_MESSAGE: true
# Webhook
WEBHOOK_BY_EVENTS: false
WEBHOOK_GLOBAL: ${WEBHOOK_GLOBAL:-}
# File Upload
FILE_UPLOAD_MAX_SIZE: 100MB
FILE_UPLOAD_PATH: ./uploads
ports:
- "8080:8080"
volumes:
- evolution_data:/evolution/uploads
- evolution_sessions:/evolution/sessions
networks:
- evolution-network
volumes:
postgres_data:
driver: local
evolution_data:
driver: local
evolution_sessions:
driver: local
networks:
evolution-network:
driver: bridge