Auto start application using docker-compose

Have you tried just adding in the docker-compose.yml information into the cloud config directly?

#cloud-config

rancher:
  services:
    service1:
      restart: always
      net: host

Here’s a similar issue: Launch system service via cloud-init