Skip to content

Instantly share code, notes, and snippets.

@opastorello
Created February 4, 2025 17:56
Show Gist options
  • Save opastorello/a0c7aaa466dc741834d9de1e0eb5c9dc to your computer and use it in GitHub Desktop.
Save opastorello/a0c7aaa466dc741834d9de1e0eb5c9dc to your computer and use it in GitHub Desktop.
services:
evolution-api:
container_name: evolution_api
image: atendai/evolution-api:latest
networks:
- evolution-net
restart: always
ports:
- "8080:8080"
volumes:
- evolution-instances:/evolution/instances
environment:
- SERVER_URL=https://evolution.<DOMINIO_AQUI>.com.br/
- AUTHENTICATION_TYPE=apikey
- AUTHENTICATION_API_KEY=<KEY_AQUI>
- AUTHENTICATION_EXPOSE_IN_FETCH_INSTANCES=true
- LANGUAGE=en
- LOG_LEVEL=ERROR,WARN,DEBUG,INFO,LOG,VERBOSE,DARK,WEBHOOKS,WEBSOCKET
- LOG_COLOR=false
- LOG_BAILEYS=error
- CONFIG_SESSION_PHONE_CLIENT=Evolution API
- CONFIG_SESSION_PHONE_NAME=Chrome
# Whatsapp Web version for baileys channel
# https://web.whatsapp.com/check-update?version=0&platform=web
- CONFIG_SESSION_PHONE_VERSION=2.3000.1019810866-alpha
- QRCODE_LIMIT=30
- QRCODE_COLOR='#175197'
- TELEMETRY=false
- TELEMETRY_URL=
- DATABASE_ENABLED=true
- DATABASE_PROVIDER=postgresql
- DATABASE_CONNECTION_URI=postgres://postgresql:<POSTGRES_SENHA_AQUI>@evolution-postgres:5432/evolutio
- 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
- CACHE_REDIS_ENABLED=true
- CACHE_REDIS_URI=redis://evolution-redis:6379/6
- CACHE_REDIS_TTL=604800
- CACHE_REDIS_PREFIX_KEY=evolution
- CACHE_REDIS_SAVE_INSTANCES=true
evolution-postgres:
container_name: postgres
image: postgres:latest
networks:
- evolution-net
command: ["postgres", "-c", "max_connections=1000"]
restart: always
ports:
- 5432:5432
environment:
- POSTGRES_DB=evolution
- POSTGRES_USER=postgresql
- POSTGRES_PASSWORD=<POSTGRES_SENHA_AQUI>
volumes:
- evolution-postgres-data:/var/lib/postgresql/data
expose:
- 5432
evolution-redis:
container_name: redis
image: redis:latest
networks:
- evolution-net
command: >
redis-server --port 6379 --appendonly yes
volumes:
- evolution-redis-data:/data
ports:
- 6379:6379
volumes:
evolution-instances:
evolution-postgres-data:
evolution-redis-data:
networks:
evolution-net:
name: evolution-net
driver: bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment