Trying to get rustdesk started in my compose file but getting "additional properties not allowed" error

Hi all,

I’ve been working on getting rustdesk installed and running on my home lab. I have a rather long working compose file which I added the rustdesk compose file into. However, if I just copy the compose file into a stand-alone file I get the same error. Here is the file that I’m working with:

rustdesk:
  hbbs:
    container_name: hbbs
    image: rustdesk/rustdesk-server:latest
    network_mode: host
    restart: unless-stopped
    ports:
      - 21115:21115
      - 21116:21116
      - 21116:21116/udp
      - 21118:21118
    command: hbbs
    volumes:
      - /home/docker/rustdesk/:/root
    depends_on:
      - hbbr
  hbbr:
    container_name: hbbr
    image: rustdesk/rustdesk-server:latest
    network_mode: host
    restart: unless-stopped
    ports:
      - 21117:21117
      - 21119:21119
    command: hbbr
    volumes:
      - /home/docker/rustdesk/:/root

I check the whitespace which is correct. The error I get is:
docker-compose config rust-test.yml
validating /home/ronch/docker-stuff/docker-compose.yml: services.rustdesk additional properties ‘hbbs’, ‘hbbr’ not allowed

I’ve tried all kind of things including the exact compose file from this site. I keep ending up with this exact same error. I’ve tried looking up solutions but they all involve missing or misspelled errors in the file. I don’t think there are any of those since the compose file from github repo gives the same error.

Also, I do know that the code above is missing the “services:” but that is at the start of my larger working compose file.

Any ideas?
Thanks in advance.

Your compose file is still invalid then. If you have “services” in the file, then “rustdesk” is already a service which could not have “hbbr” or “hbbs” keys. Or if these two are the services, then “rustdesk” should not be there.

services:
  servicename1:
    container_name:
  servicename2:
    container_name:

The above is just an example, not valid compose file.where “servicename1” and “servicename2” could be “hbbs” and “hbbr”. And the rest of the parameters.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.