-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathdocker-compose.swarm.yml
More file actions
102 lines (86 loc) · 2.57 KB
/
docker-compose.swarm.yml
File metadata and controls
102 lines (86 loc) · 2.57 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
97
98
99
100
101
102
version: '3.8'
services:
evolution_go:
image: evoapicloud/evolution-go:latest
networks:
- network_public
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:senha@postgres:5432/evogo_auth?sslmode=disable"
POSTGRES_USERS_DB: "postgresql://postgres:senha@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: "true"
WEBHOOKFILES: "true"
# Sistema
OS_NAME: "Linux"
# Conversor de Áudio (Opcional)
API_AUDIO_CONVERTER: ""
API_AUDIO_CONVERTER_KEY: ""
# Proxy (Opcional)
PROXY_HOST: ""
PROXY_PORT: ""
PROXY_USERNAME: ""
PROXY_PASSWORD: ""
# RabbitMQ (Opcional)
AMQP_URL: ""
AMQP_GLOBAL_ENABLED: "false"
AMQP_GLOBAL_EVENTS: ""
# NATS (Opcional)
NATS_URL: ""
NATS_GLOBAL_ENABLED: "false"
# Eventos
EVENT_IGNORE_GROUP: "false"
EVENT_IGNORE_STATUS: "true"
# MinIO/S3 (Opcional)
MINIO_ENABLED: "false"
MINIO_ENDPOINT: ""
MINIO_ACCESS_KEY: ""
MINIO_SECRET_KEY: ""
MINIO_BUCKET: ""
MINIO_USE_SSL: "false"
volumes:
- evolution_go_data:/app/dbdata
- evolution_go_logs:/app/logs
deploy:
replicas: 1
placement:
constraints:
- node.role == manager
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
labels:
# Traefik Labels (ajuste conforme necessário)
- traefik.enable=true
- traefik.http.routers.evolution_go.rule=Host(`evolution.seudominio.com`)
- traefik.http.routers.evolution_go.entrypoints=websecure
- traefik.http.routers.evolution_go.tls.certresolver=letsencryptresolver
- traefik.http.routers.evolution_go.service=evolution_go
- traefik.http.services.evolution_go.loadbalancer.server.port=4000
- traefik.http.services.evolution_go.loadbalancer.passHostHeader=true
volumes:
evolution_go_data:
external: true
name: evolution_go_data
evolution_go_logs:
external: true
name: evolution_go_logs
networks:
network_public:
external: true
name: network_public