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
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!
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!