Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Plugin] Docker Compose Manager

Featured Replies

1 hour ago, primeval_god said:

Custom networks can be macvlan, ipvlan, and bridge type.

Sorry, I was being very specific: bond0.43 uses macvlan drivers.

docker network inspect bond0.43


[
    {
        "Name": "bond0.43",
        "Id": "48d92dd914b3319138296b5016da749e795767b808632b2a87c37eb851444d9c",
        "Created": "2024-07-17T08:00:11.865073653-04:00",
        "Scope": "local",
        "Driver": "macvlan",
....

 

Edited by phil1c

  • Replies 872
  • Views 325.8k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • I've been playing with the code behind this plugin and have made a couple of tweaks.  I'd be interested on peoples thoughts and suggestions.   The first allows you to specify any .env file. 

  • I've recently started using Compose Manger to orchestrate my containers in Unraid. I've used docker-compose for a long time on old servers, but moved away from it when I started using Unraid, as I pre

  • In the recent update, orphaned image is now automatically removed. Thank you.   Is it possible to also update the local sha256 hash in this file /var/lib/docker/unraid-update-status.json? Si

Posted Images

  • Author
On 7/17/2024 at 7:10 PM, phil1c said:

If there is something else you want to know about my network, let me know.  I understand that this may be a bug with Dockerman, but still happy to help satisfy curiosities to determine a root cause.

Thanks but I believe I understand the issue at this point. The underlying problem is very similar to the issue with how dockerman displays networks for compose containers. It appears that dockerman uses the "NetworkMode" property somehow to decide whether it should attempt to rewrite the webui url. Recent versions of compose set this property differently (depending on network configuration) than dockerman does. @mtongnz has a pull request open against the unRAID webgui repo that addresses the network display issue. Perhaps they would be willing and able to look into patching this issue as well.

On 7/19/2024 at 12:45 PM, primeval_god said:

Thanks but I believe I understand the issue at this point. The underlying problem is very similar to the issue with how dockerman displays networks for compose containers. It appears that dockerman uses the "NetworkMode" property somehow to decide whether it should attempt to rewrite the webui url. Recent versions of compose set this property differently (depending on network configuration) than dockerman does. @mtongnz has a pull request open against the unRAID webgui repo that addresses the network display issue. Perhaps they would be willing and able to look into patching this issue as well.

@phil1cI've just had a play with this...  Think I've got it working.

 

Try this PR & join the convo there:  https://github.com/unraid/webgui/pull/1616

It fixes network name display, tweaks the IP & port mapping display, and fixes the webUI url generation.

On 7/19/2024 at 9:26 PM, mtongnz said:

@phil1cI've just had a play with this...  Think I've got it working.

 

Try this PR & join the convo there:  https://github.com/unraid/webgui/pull/1616

It fixes network name display, tweaks the IP & port mapping display, and fixes the webUI url generation.

Thanks for taking a stab at it!  I made the changes and encountered some additional issues and had a couple suggestions so I made a comment on that PR.  We can discuss further over there to avoid cluttering up this forum.

? Feature request ?

How hard would it be to add a button to stop the dockers in the stack. not compose down, but stop the group of dockers that the stack created?

12 hours ago, bmartino1 said:

? Feature request ?

How hard would it be to add a button to stop the dockers in the stack. not compose down, but stop the group of dockers that the stack created?

I can do this with folder view plugin. I label the folder name in my stacks so all containers from the stack show up under a single folder. Then you can start/stop at folder level - example

Edited by apandey

8 hours ago, apandey said:

I can do this with folder view plugin. I label the folder name in my stacks so all containers from the stack show up under a single folder. Then you can start/stop at folder level - example

 was looking for a gui option under the docker tab to keep things nice and together...

I can use docker terminal commands and multiple docker names via a script.
docker stop <name1> <name2>

The Folder options look promising for a single dockers stop <?name of folder?>

per you example?

    labels:
      folder.view: immich
      net.unraid.docker.managed: 'composeman'
      net.unraid.docker.icon: 'https://upload.wikimedia.org/wikipedia/commons/d/d5/Hey_Machine_Learning_Logo.png'
      net.unraid.docker.shell: '/bin/sh'

do I then call immich? or does that need to be the actual folder name where they are stored?
Not sure how folder compose would be setup to run in unraid with this

dockerman v composeman

Noticing alot of compose lately have multiple database and looking for a way to stop/start all the databases if one docker is stopped/started

More planning a head with service dependency:
https://stackoverflow.com/questions/67507367/how-to-avoid-service-dependencies-from-being-stopped-in-docker-compose
 

  • 2 weeks later...

what i need to do to fix, my compose? if need some logs, or info, or whatever just say :)
when i press go to web ui it moves to http://192.168.0.123/192.168.0.123:7011 instead of http://192.168.0.123:7011

Edited by Artiom97es
(maybe some info)

Would there be any way to include support for docker compose profiles? Currently if you click the `Compose Up` button and the compose file uses profiles, it just throws `no service selected`. If full profiles support seems unreasonable, maybe just support to start every profile in the compose file, i.e. `docker compose --profile a --profile b up`?

  • Author
13 hours ago, digitalgrease_ said:

Would there be any way to include support for docker compose profiles? Currently if you click the `Compose Up` button and the compose file uses profiles, it just throws `no service selected`. If full profiles support seems unreasonable, maybe just support to start every profile in the compose file, i.e. `docker compose --profile a --profile b up`?

Basic profile support already exists. If your stack has profiles defined then the up/down buttons should appear with dropdown arrows that let you select a profile to target. Clicking the button itself will still execute the base command without a specified profile. 

  • Author
On 8/11/2024 at 4:15 AM, Artiom97es said:

what i need to do to fix, my compose? if need some logs, or info, or whatever just say :)
when i press go to web ui it moves to http://192.168.0.123/192.168.0.123:7011 instead of http://192.168.0.123:7011

What does your webui label look like and have you changed it since the first time you started the stack?

i got a compose file i cant get working.

https://github.com/jsuto/piler/blob/master/docker/docker-compose.yaml

 

keep getting errors it cant find things etc.

I removed the memory limit in my yaml for the rest its the same.

 

I also tried with the volumes. as here a a file is with ./ in front and in these Complete its links to a file but it creates a directory.

 

Looked into manuall create the dockers with all the options but thought this was easier the yaml

 

Edit: this is the first time i use Compose my self. I had to use the full path for the volumes.

Edited by KoNeko
Solved

On 8/15/2024 at 8:23 AM, primeval_god said:

Basic profile support already exists. If your stack has profiles defined then the up/down buttons should appear with dropdown arrows that let you select a profile to target. Clicking the button itself will still execute the base command without a specified profile. 

That's curious, i definitely have profiles defined in one of my compose files, but there are no arrows or dropdown in my ui.

  • Author
On 8/17/2024 at 8:56 PM, digitalgrease_ said:

That's curious, i definitely have profiles defined in one of my compose files, but there are no arrows or dropdown in my ui.

image.thumb.png.1f5a26736de04d8054b93c243231d080.png
Thats what it should look like.

I just used the docker-compose-manager plugin and I tried to build one, but it reported an error.

 

unknown shorthand flag: 'f' in -f
See 'docker --help'.

Usage:  docker [OPTIONS] COMMAND

 

I don't know what's wrong with it. Can any of you help me out?

新建 BMP 图像.bmp

  • Author
6 hours ago, zeroboss said:

I just used the docker-compose-manager plugin and I tried to build one, but it reported an error.

 

unknown shorthand flag: 'f' in -f
See 'docker --help'.

Usage:  docker [OPTIONS] COMMAND

 

I don't know what's wrong with it. Can any of you help me out?

新建 BMP 图像.bmp 124.82 kB · 2 downloads

Please enable the "Debug Logging" option under "Settings/Compose". Then retry the failed command while watching the system log. Then you can post either the relevant lines from the log or your diagnostics.

thanks

 

 

Aug 26 03:08:30 zbunraid root: ttyd -R -o -i '/var/tmp/compose_manager_action.sock' '/usr/local/emhttp/plugins/compose.manager/scripts/compose.sh' '-cup' '-plobe_chat_database' '-f/boot/config/plugins/compose.manager/projects/lobe-chat-Database/docker-compose.yml' '-f/boot/config/plugins/compose.manager/projects/lobe-chat-Database/docker-compose.override.yml' '-e/mnt/user/appdata/lobe-chat-database/lobe-chat.env' '--debug' > /dev/null &
Aug 26 03:08:30 zbunraid root: '/usr/local/emhttp/plugins/compose.manager/scripts/compose.sh' '-cup' '-plobe_chat_database' '-f/boot/config/plugins/compose.manager/projects/lobe-chat-Database/docker-compose.yml' '-f/boot/config/plugins/compose.manager/projects/lobe-chat-Database/docker-compose.override.yml' '-e/mnt/user/appdata/lobe-chat-database/lobe-chat.env' '--debug'
Aug 26 03:08:30 zbunraid root: /plugins/compose.manager/php/show_ttyd.php
Aug 26 03:08:32 zbunraid root: docker compose --env-file /mnt/user/appdata/lobe-chat-database/lobe-chat.env  -f '/boot/config/plugins/compose.manager/projects/lobe-chat-Database/docker-compose.yml' -f '/boot/config/plugins/compose.manager/projects/lobe-chat-Database/docker-compose.override.yml'  -p lobe_chat_database up  -d

On 8/18/2024 at 9:17 PM, primeval_god said:

image.thumb.png.1f5a26736de04d8054b93c243231d080.png
Thats what it should look like.

I've been through my compose file up and down making sure it conforms to standard compose syntax, profile based compose commands run just fine via command line, but still get the no service selected error and no arrow or anything in the webui. Any ideas what might be going on?

  • Author
13 hours ago, digitalgrease_ said:

I've been through my compose file up and down making sure it conforms to standard compose syntax, profile based compose commands run just fine via command line, but still get the no service selected error and no arrow or anything in the webui. Any ideas what might be going on?

Any chance you could share the compose file?

Hello, how can I update the Compose.Manager plugin? I clicked "update" in the app store, and it flashed for a moment but then didn't respond.Do I need to stop all the containers in Compose, or is there something else I need to do?

Edited by VvLin-61

  • Author
7 hours ago, VvLin-61 said:

Hello, how can I update the Compose.Manager plugin? I clicked "update" in the app store, and it flashed for a moment but then didn't respond.Do I need to stop all the containers in Compose, or is there something else I need to do?

There is nothing special required to update the compose manager plugin. The update button on unRAID's Plugins page is all that is required.

Is there any way to handle update checks/notifications?

  • Author
1 minute ago, MTerracciano said:

Is there any way to handle update checks/notifications?

If you mean for the containers managed by compose then no. The compose manager plugin does not currently support update checks.

Hi.

How can I get the networks to display the correct name?

 

image.png.16cd92331852dee8ed7d7fea5a5de83a.png

 

The compose file contains:

 

networks:
  frontend:
    external: true
    name: frontend

 

Thanks

How do I get Icons to display?

 

image.png.665009f9a41320b235822933abc5c559.png

 

I have downloaded a .png file and placed it a folder called icons. The folder is placed in the same directory as the docker-compose.yml and .env file.

 

image.png.19a632888c72bfee871426e1306de572.png

 

But it doesn't display

 

Thanks

 

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.