stottle

docker compose?

Recommended Posts

Gets a +1 from me as well.

 

ELK and GitLab would really benefit from being able to compose rather than hack together an all in one dockerfile.

Share this post


Link to post
Share on other sites

The current release of unRAID is still using docker 1.7.1 which doesn't have compose. This will be rectified in 6.2, but we are not adding compose to the UI yet, though other UIs could probably connect to the service and of course there is always command line.

Share this post


Link to post
Share on other sites

Docker compose could be a boon for some of the less tech-savvy users, still a little scared of docker, especially the thought of having to link containers together, ie SQL and kodi etc...

 

Compose absolutely excels in that area.

Share this post


Link to post
Share on other sites

+1 It is pretty unusual we dont have it now. Could this be part of nerd tools?

Share this post


Link to post
Share on other sites

Could this be part of nerd tools?

 

It could but it should be tied into the core docker-engine version from LT so that incompatibilities can be checked for prior any forthcoming releases. As we all know, Docker like to break APIs for fun https://forums.docker.com/t/mismatch-between-api-versions-after-automatic-update-to-1-11-0-beta6-with-docker-machine-on-amazon/8549

 

There's nothing stop people curl'ing the binary in their go file for now though.

Share this post


Link to post
Share on other sites

I for one would also like to see this, as I use numerous links in my configuration. It seems to me that the dockerMan's XML template system is just re-implementing what docker-compose does better, and perhaps can be phased out (or made to generate docker-compose files?)... Hopefully with compose we could abandon the practice of bundling together many services and instead use discreet containers.

Share this post


Link to post
Share on other sites

+1 docker compose

 

This would better support linking of containers, means I dont have to learn another syntax, is transferable to other systems, has more features ... is fully documented. I have been using docker for some time on Ubuntu system and just transitioning to unraid. I have a number of containers using docker compose that I now need to rewrite or find and test unraid community equivalents. I like to build my docker images with minimal dependencies but that doesnt seem possible with unraid system?

 

I also havnt been able to find a definitive guide on writing docker templates for unraid, please advise if there is one that I might have missed. Ideally, documention would be something like that provided for docker compose itself at https://docs.docker.com/compose/compose-file/. So again, why not just support/use docker-compose rather than reinvent ... or am I overlook some key benefit?

 

Please dont take this the wrong way ... intended as constructive feedback. Docker compose is relatively new and maybe wasnt a viable option previously?

Share this post


Link to post
Share on other sites

You basically just need to create a dockerfile https://docs.docker.com/engine/getstarted/step_four/

 

There is really nothing specific per se on unRaid's implementation of docker vs other platforms

 

The unRaid templates are just a xml document that has all of the options for the docker run command  http://lime-technology.com/forum/index.php?topic=40937.msg486569#msg486569

 

But, yeah docker compose support would be a big bonus...

  • Upvote 1

Share this post


Link to post
Share on other sites

Ok, that makes sense. I suppose the xml makes it easier to provide the web interface. I suppose I can just add an unraid xml version to my existing projects ... should be easy enough.

 

Maybe a conversion tool/script from compose to unraid xml?

 

Share this post


Link to post
Share on other sites

Ok, that makes sense. I suppose the xml makes it easier to provide the web interface. I suppose I can just add an unraid xml version to my existing projects ... should be easy enough.

 

Maybe a conversion tool/script from compose to unraid xml?

I don't know the feasibility of a yaml to dockerfile conversion

 

Sent from my LG-D852 using Tapatalk

 

 

Share this post


Link to post
Share on other sites

SSH into Tower, 

you can use the usual commands to install or upgrade Compose:

curl -L https://github.com/docker/compose/releases/download/1.14.0-rc2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

FTP into Tower, upload your docker-compose.yml file.--> I uploaded to:  /mnt/user/appdata (see my docker-compose.yml for and example, also here

SSH into Tower, and change directory to your docker-compose.yml file. 

 cd /mnt/user/appdata

then docker-compose up

docker-compose up

 

docker-compose.yml

Share this post


Link to post
Share on other sites

Looks like this is still not done? Can we please have it, rather than me downloading it or automating it on the flash side?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Copyright © 2005-2017 Lime Technology, Inc. unRAID® is a registered trademark of Lime Technology, Inc.