this post was submitted on 31 Mar 2025
78 points (98.8% liked)

Selfhosted

45630 readers
736 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

For those unfamiliar, DockGE is "A fancy, easy-to-use and reactive self-hosted docker compose.yaml stack-oriented manager."

Similar to portainer

Warning

Breaking change: Due to the security reason, the "Console" feature is now disabled by default. If you need this feature and understand the risk, you can enable it via the environment variable DOCKGE_ENABLE_CONSOLE=true.

See link for full notes

you are viewing a single comment's thread
view the rest of the comments
[–] lka1988@lemmy.dbzer0.com 6 points 1 week ago (9 children)

If the compose.yml can be moved to a place where Dockge is configured to look, then yes. Normally it's configured to look in /opt/stacks/, but that can be changed.

[–] darkknight@discuss.online -4 points 1 week ago* (last edited 1 week ago) (8 children)

I just updated my dockge container, you still have to start compose files from dockge in order to manage them. Which requires copy/pasting compose files into dockge. If you have more than 2-3 compose files, this is a pia. To me, that's not an import of 'existing stack'.

[–] lka1988@lemmy.dbzer0.com 12 points 1 week ago* (last edited 1 week ago) (7 children)

I think you might be misunderstanding here, Dockge doesn't really work like that. You don't import "into" Dockge - it works alongside Docker, and all you need to do is point it to where your compose files are located. Which, like I said, is normally set to /opt/stacks/ - but that's not set in stone and can be changed to another location via the DOCKGE_STACKS_DIR= env variable within Dockge's own compose file (located in /opt/dockge/).

For example: Say I create the directory /opt/stacks/docker_container/, drop in my "docker_container" compose.yml file, and fire it up in the terminal with docker compose up -d, all via CLI without touching Dockge at all. Dockge will still automatically see the compose file and the stack status. Or, say I have a previously-established Docker host with all the compose files in a location such as /home/username/docker_stacks/, and I really don't want to move them - so long as Dockge is configured to point at that directory, and the directory contains a labeled folder for each compose file (just like you would do normally), again, Dockge will automatically see the compose files and stack status. I've configured multiple hosts to use Dockge, and it's really that simple.

Also, something I just remembered - the directory structure for your compose files, wherever it's located, needs to be all lowercase. Otherwise Dockge won't see it.

[–] darkknight@discuss.online 2 points 1 week ago (1 children)

Thanks for the info, that's definitely not how it's working on my system, so I have something setup wrong. That explains my confusion.

[–] lka1988@lemmy.dbzer0.com 1 points 1 week ago

Let us know if you run into more snags! I'm happy to try to help out. I also revised my comment above several times last night and this morning as I was really tired and kept forgetting details 😅

The other thing to note is the "Scan Stacks Folder" option in the drop-down menu. I haven't really needed to use it as Dockge tends to find my compose files on its own, but it's worth mentioning.

load more comments (5 replies)
load more comments (5 replies)
load more comments (5 replies)