Using the Rancher UI, I was able to create the services based on the commands that you provided and was able to access Odoo.
Here’s my docker-compose.yml. With the latest release (v0.41.0), you should be able to import it through the “Add Stack” button.
db:
restart: always
environment:
POSTGRES_USER: odoo
POSTGRES_PASSWORD: odoo
tty: true
image: postgres
stdin_open: true
odoo:
ports:
- 80:8069/tcp
restart: always
tty: true
image: odoo
links:
- db:db
stdin_open: true
As @cloudnautique mentioned, if you have multiple hosts, it sounds as if you are having issues with containers not being able to communicate on different hosts. Please read our FAQs on troubleshooting to see if that can help solve that issue.