docker icon indicating copy to clipboard operation
docker copied to clipboard

cannot connect to db container in docker swarm after deployment

Open ghost opened this issue 6 years ago • 1 comments

Hello!

I was able to run odoo with postgres as two docker containers. But when I try to use swarm for deployment, I cannot connect to the db container in swarm mode. Both the db and the odoo service are running, but odoo cannot connect find the db. Have you ever tried it yourself?

ghost avatar Nov 27 '18 16:11 ghost

I believe the container is deployed in a different machine and I am also figuring out this problem.

tailaijin avatar Jan 29 '19 12:01 tailaijin

@odony another deleted user issue. Can you close this please.

for those wondering how to resolve the issue it is about reading https://docs.docker.com/engine/swarm/networking/#attach-a-service-to-an-overlay-network

lathama avatar Apr 11 '24 15:04 lathama