Docker Compose for Unraid
Last updated
Was this helpful?
Last updated
Was this helpful?
Head over to Community Applications store under the App tab and search docker compose manger. Click on install plug-in. This will add docker compose manager to the Unraid plug-ins tab and a webui to the bottom of the Unraid docker tab.
To add your first stack under the docker tab, scroll to the bottom and select add new stack
Name your new stack, then select OK
Click on the cog next to stack you just created, and it will give you options to edit name, edit description, edit stack, edit env, delete stack and logs.
To create the docker compose yml select edit stack. You will then be presented with an on-screen editor.
You can then simply copy/paste the docker compose of the application you desire. For this example, I used hotio's radarr.
Edit the volumes to match where you keep your current docker appdata
Edit ports if needed to avoid conflict with already allocated ports on your Unraid server
By default, the network given will be <stackname>-default. To change that, we will add in a few lines to the compose.yml
After editing your compose.yml select save changes.
On the far right of your stack name click on compose pull to pull down the image named in the stack.
Then after compose pull select compose up. You should now have a running container docker section of Unraid. Compose down will remove the container.
You can add compose up and down buttons to the folder's dropdown options(this doesn't add it to the app drop down, only the actual folder drop down)
Select add docker folder and set it up how you normally would. Be sure to select advanced view in the upper right. Select add another button at the bottom.
Select bash for the config type, give it a name, e.g. Compose up or compose down. Select an icon from the dropdown. Then edit the command, replacing <stack name> with the name of your stack(case-sensitive). Create a button for each with the provided commands.
Docker Compose Up Command
Docker Compose Down Command
At the bottom of the folder page, select submit, and you should be good to go.