https://redirect.armbian.com/region/EU/odroidxu4/Buster_current_minimal Copy image to the SD Card
sudo apt install ufw
sudo ufw default deny incoming sudo ufw default allow outgoing
sudo ufw allow ssh
sudo ufw enable
sudo apt install armbian-config
sudo armbian-config Navigate to [Software]->[Softy]->[Docker] Press install
sudo apt install docker-compose
sudo systemctl enable docker
mkdir mqtt && cd mqtt
mkdir config && mkdir data && mkdir logs
touch ./config/mosquitto.conf touch ./config/mosquitto.passwd
sudo ufw allow 1883
sudo docker-compose up -d
sudo docker-compose exec mosquitto sh -c "mosquitto_passwd /mosquitto/config/passwd [username]"
Now after system reboot it must autostart