Is Docker compose available on unraid?


Recommended Posts

I've been using docker-compose successfully for a few weeks now, but I'm curious (to those that also use it) what is your strategy for auto-starting containers on boot / on array start? It's not a huge imposition to log in and do a `docker-compose up -d` in the rare instance when my server reboots, but it would be nice for it to be more hands-off.

Link to comment
24 minutes ago, spgill said:

I've been using docker-compose successfully for a few weeks now, but I'm curious (to those that also use it) what is your strategy for auto-starting containers on boot / on array start? It's not a huge imposition to log in and do a `docker-compose up -d` in the rare instance when my server reboots, but it would be nice for it to be more hands-off.

Just add those lines to download docker-compose in the go file and have the user scripts plug-in run a few lines of docker-compose commands after array start?

 

I haven’t set it up tho as I manually unlock my encrypted array anyways.

 

Cheers

  • Like 1
Link to comment
  • 6 months later...
  • 6 months later...
On 11/13/2021 at 10:00 AM, juan11perez said:

Been using the plugin since release.

Works perfectly 

Curious, how are you using docker-compose?

Pre-face, I am using CA Backup. But I am wanting to automate the install of my docker containers using Ansible as a learning method. Instead of having me click through, and setup all the docker run parameters, they can all be contained in within a docker-compose template/file. Thoughts?

Link to comment
On 6/4/2022 at 2:27 AM, juan11perez said:

@Waddoo

 

I created /mnt/cache/appdata/docker-compose.yaml

 

and run it with

 

docker compose -f /mnt/cache/appdata/docker-compose.yaml --compatibility up -d

 

 

Do you only use the docker-compose or are you building up your unraid server with ansible playbooks?

Link to comment
  • 2 months later...
6 hours ago, JediMasterSoda said:

Docker-compose has since been merged into the docker engine!

It's available now as a sub-command: "docker compose".

Everyone should get this feature whenever the docker engine is updated on unraid past 20.10.14 and we will stop having to install it through a script.

 

unraid 6.11rc already comes with docker engine 20.10.17

 

# docker version
Client:
 Version:           20.10.17
 API version:       1.41
 Go version:        go1.17.11
 Git commit:        100c701
 Built:             Mon Jun  6 22:56:42 2022
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.17
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.17.11
  Git commit:       a89b842
  Built:            Mon Jun  6 23:01:45 2022
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v1.6.6
  GitCommit:        10c12954828e7c7c9b6e0ea9b0c02b01407d3ae1
 runc:
  Version:          1.1.2
  GitCommit:        v1.1.2-0-ga916309f
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

 

but "docker compose" is not valid

# docker compose
docker: 'compose' is not a docker command.
See 'docker --help'

 

so looks like docker-compose-plugin will still have to be installed.

Link to comment
15 hours ago, JediMasterSoda said:

Docker-compose has since been merged into the docker engine!

...

Everyone should get this feature whenever the docker engine is updated on unraid past 20.10.14 and we will stop having to install it through a script.

Yeah i dont think this is exactly true. From what i can tell it looks like Docker Engine 20.10.13 began providing Docker Compose V2 as an optional package along with their releases. I dont think that translates into it being automatically being available on unRAID.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.