Tim Long Posted September 15, 2021 Share Posted September 15, 2021 Is there a way to use docker-compose on an Unraid appliance? I have a docker-compose.yml file that I'd like to migrate from another device. Is there a way to do that? Thanks. Quote Link to comment
Tim Long Posted September 15, 2021 Author Share Posted September 15, 2021 I might have answered my own question. Looks like it IS possible. This article assumes you are starting from scratch but I have a bunch of ready-made `docker-compose.yml` files, so this might work well for me. Using docker compose on Unraid Quote Link to comment
paaland Posted September 18, 2021 Share Posted September 18, 2021 You can run docker-compose via docker. Put this in your /boot/config/go file to create an alias docker-compose that downloads docker-compose and run it in docker. The benefit is that it's always running the latest version, so you don't even need to update it. alias docker-compose="docker run --rm \ -v /var/run/docker.sock:/var/run/docker.sock \ -v '$PWD:$PWD' \ -w='$PWD' \ docker/compose:latest" Quote Link to comment
daldridge Posted September 18, 2021 Share Posted September 18, 2021 (edited) 21 minutes ago, paaland said: You can run docker-compose via docker. Put this in your /boot/config/go file to create an alias docker-compose that downloads docker-compose and run it in docker. The benefit is that it's always running the latest version, so you don't even need to update it. alias docker-compose="docker run --rm \ -v /var/run/docker.sock:/var/run/docker.sock \ -v '$PWD:$PWD' \ -w='$PWD' \ docker/compose:latest" Right on with that. Your method is definitely different from what I've been doing, so I'll need to look into that. I've been using docker-compose for a while now, I had a desire to get Spaghetti Detective running, and now I have that and TeslaMate running using docker-compose. I've been running both of these for six months or so, and actually the documentation from The Spaghetti Detective github was super helpful in getting things setup. This was very helpful for me @Tim Long https://github.com/TheSpaghettiDetective/TheSpaghettiDetective/blob/master/docs/unraid_guide.md Edited September 18, 2021 by daldridge 1 Quote Link to comment
bobbintb Posted September 7, 2022 Share Posted September 7, 2022 (edited) There is a plugin in CA for docker compose as well. I use it and the docker folder plugin. They work well together as you can put all the docker images created by compose into a folder to keep things tidy. Edited September 7, 2022 by bobbintb 1 Quote Link to comment
Recommended Posts
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.