Is it possbile access between containers on another network?

I’ve set two physical server, server-1(production), server-2(test/deployment).
The server-1 is manager node and server-2 is worker node.

The service is made up by 3 containers (api, DB, Redis)
Each server has DB(Psql) and Redis.
I only deploy my api to server-2

Deploying works but the container api cannot find host of Redis and DB.
I’ve changed network (bridge, overlay) but not works.

So, is it impossible that accessing from container deployed via swarm to Redis, DB on server-1?

The photo attached shows container API log, which not working for my expect.
(on server-1, logs from swarm-deployment)