Setting Up Two Odoo Containers on One Machine: How to Avoid Conflicts?

0
1
Asked By RandomRaccoon123 On

Hey everyone! I'm working on a class project that requires me to run two instances of Odoo 16 on a single machine, but I'm facing some challenges. I want both instances to operate simultaneously. The issue occurs when I try to log into one container's database session; the other container shuts down. I'm using Docker Desktop and started with a YML file provided by my teacher (you can check it out at their GitHub). Is it actually feasible to do this, or am I missing something? Any advice would be appreciated!

1 Answer

Answered By CuriousCoder89 On

It sounds like you're encountering a port conflict. Make sure that each Odoo instance has a unique port assigned in your Docker Compose configuration. If both instances are trying to use the same ports, it can lead to issues like the one you're experiencing. Also, check your database volumes—are both instances sharing the same volume? That could also cause problems if you want to access them simultaneously. It's definitely possible to run both, so don't worry!

TechSavvyFox -

Yeah, I've had similar issues. When I set up my environment, I made sure to configure separate ports and volumes for each instance. That way, they don't interfere with each other. Just keep tweaking your setup until you get it right!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.