Making installation permanent

Modify Go file

To make the installation of compose permanent (to survive reboots), you need to edit your Go file. This is a file on your flash drive.

You can access the file via the flash share, which if using SMB will be at \\YOURSERVER\flash\config\go

You can also edit it using the terminal by typing nano /boot/config/go and pressing enter.

Whatever method you used to install docker compose, you can paste it in here at the bottom of the file. Use # to leave yourself a comment explaining what it is, e.g.

# Installs Docker compose permanently
COMPOSE_VERSION=$(curl -s | grep 'tag_name' | cut -d\" -f4)
curl -L "${COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose 
chmod +x /usr/local/bin/docker-compose

Be careful when editing any system files. While it’s relatively easy to undo anything you’ve done here, it’s still an important file.

Make note of how you edited your Go file as you may want to add some additions to it later.

Using User Scripts Plugin

First go to the Community Applications tab and find and install the “User Scripts” plugin.

Once installed go to the userscripts page and create a new user scripts. Give it a friendly name such as “installDockerCompose” and edit the script


## First Install  docker compose 
COMPOSE_VERSION=$(curl -s | grep 'tag_name' | cut -d\" -f4)
curl -L "${COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose 

# make file executable with command beneath
sudo chmod +x /usr/local/bin/docker-compose

Click save. You will also want to change the schedule to “At Startup of Array” and now you’ll always have docker compose installed.