Back on the Ranch after 2.5ish year break - Noob Qs

Im Running RancherOS 1.5.6 on a VMWare ESXi hosted machine
I’m also running Rancher 1.6.30 on top in order to run a couple of docker containers automagically.

I uploaded the following Docker-Compose.yml to a new Stack, but am getting an error upon activation of the “web” section.

version: '2'
services:
  web:
    image: odoo:13.0
    depends_on:
      - db
    ports:
      - "8069:8069"
    volumes:
      - odoo-web-data:/var/lib/odoo
     #error begins here think it has to do with leading dot slash
      - ./config:/etc/odoo
      - ./addons:/mnt/extra-addons
  db:
    image: postgres:10
    environment:
      - POSTGRES_DB=postgres
      - POSTGRES_PASSWORD=odoo
      - POSTGRES_USER=odoo
      - PGDATA=/var/lib/postgresql/data/pgdata
    volumes:
      - odoo-db-data:/var/lib/postgresql/data/pgdata
volumes:
  odoo-web-data:
  odoo-db-data:

I believe the error is due to the leading dot slash under volumes, as when I remove them, the activation completes, though no access to the RancherOS hosts /etc or /mnt directories.

I’m asking if someone can give me a punt in the right direction to further track down a fix for this.
TIA
d

1.x is no longer maintained or supported by us; The world has moved on to Kubernetes, which is what 2.x uses.

You can’t use relative paths (./) because there is nothing for them to be relative to. Specify an absolute path on the host.

Thanks for that quick and concise reply Vincent.
d