Evolution API Redis Disconnect & Iptables Errors on YunoHost/Docker Setup

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.1.39
How are you able to access your server: SSH
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: It’s a pretty standard YunoHost installation.

Describe your issue

Environment:

OS: Debian (via YunoHost)

Setup: Evolution API running on Docker alongside YunoHost services (n8n, etc.)

Infrastructure: Self-hosted on a VPS/Local Server

The Issue:
I’m running Evolution API via Docker Compose. Despite having a Redis service defined in my docker-compose.yml, the API logs are flooded with:
[Redis] redis disconnected

Furthermore, when I try to restart the stack with docker compose up -d, I occasionally hit this networking error:
Failed to Setup IP tables: Unable to enable ACCEPT OUTGOING rule: (iptables: No chain/target/match by that name)

My Current docker-compose.yml Snippet:

evolution_api:
image: atendai/evolution-api:latest
environment:
- CACHE_REDIS_ENABLED=true
- CACHE_REDIS_HOST=redis
- CACHE_REDIS_PORT=6379
depends_on:
- redis

redis:
image: redis:7-alpine

What I’ve Tried:

Changing CACHE_REDIS_HOST to redis://redis:6379.

Running yunohost firewall reload.

Attempting to bypass the YunoHost SSO for n8n by setting it to 'Visitor' access.

Questions:

  • Is YunoHost’s native Redis service or its iptables management (AFW) known to conflict with Docker’s internal networking?

  • How can I ensure the Docker container bypasses YunoHost’s firewall rules to maintain a stable connection to its own Redis container?

  • Are there specific DOCKER-USER chain rules I should manually inject to stop the accept outgoing failures?

Share relevant logs or error messages

Check how I deployed another docker app, including the network config, might give you a hint:

Hello,

Thank you for the answer and guide.

In that tutorial, I guess it’s just for PostegreSQL. I’m looking a solution for Redis actually.

This is the part that matters most and might solve your problem, this is related to iptables, it’s not just for PostgreSQL:

  • Disable docker iptables manipulation:
sudo nano /etc/docker/daemon.json

Insert this and save:

{
  "iptables": false,
  "bridge": "none"
}

And also use the docker-created network:

networks:
  default:
    name: immich_default
    driver: bridge

The containers are seems working right now. Here are some of the outputs:

[Evolution API]  [atakan]  v2.1.1  198   -  Wed May 06 2026 11:18:45     INFO   [ChannelStartupService]  [string]  Browser: Evolution API,Chrome,6.1.0-42-amd64
[Evolution API]  [atakan]  v2.1.1  198   -  Wed May 06 2026 11:18:45     INFO   [ChannelStartupService]  [string]  Baileys version env: 2,3000,1015901307
[Evolution API]  [atakan]  v2.1.1  198   -  Wed May 06 2026 11:18:45     INFO   [ChannelStartupService]  [string]  Group Ignore: false

However, there’s an QR code to connect my WhatsApp with WhatsApp Web. But it doesn’t appears. Do you have any information about that?

In browser requests everything seems 200 OK.

Unfortunately I can’t help you because I don’t use that app so I’ve no idea of it, and it seems that it’s not an app from Yunohost either, I think it might be a good idea to look for help in its github :thinking:
If the docker container is deployed with no issues, the problem might reside on the app itself.

Yeah, you’re right. Finally, I’ve solved the problem. The thing that I just made is changing over-dated Docker image. I found that Docker image is no longer updated. Thank you for your help and guidance :raising_hands:t2:

1 Like