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
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