Setting Up Two Parallel Odoo Containers on One Machine

0
2
Asked By CuriousCoder42 On

Hey everyone! I'm working on a class project where I need to run two instances of Odoo 16 on the same machine, and I'm struggling to get both to operate simultaneously. The trouble comes when I try to log into one instance; it seems to kick me out of the other. I'm using Docker Desktop and starting off with the YAML file from this GitHub repo: https://github.com/pereprior/odoo16-docker/tree/master. I've tried tweaking the ports in the docker-compose file, but I'm not sure if I'm doing it right or if I'm just missing something. Is running two instances on one machine actually possible, or am I just missing the mark here? Any guidance would be appreciated!

1 Answer

Answered By TechieTommy On

It sounds like you're having a port conflict issue! Make sure that both Odoo instances are set up to use different ports. If you're running them on the same DB volume, that could also be causing problems when you try to log in. Each instance should ideally have its own volume setup to avoid conflicts. Have you tried this?

ContainerNinja88 -

Yeah, I changed the ports in the docker-compose file, but it still logs me out of the first instance when I log into the second one. I thought the separate DB volumes would help, but I might have messed up the setup. Do you have any tips on how to properly configure the volumes?

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.