Selfhosted
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:
-
Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.
-
No spam posting.
-
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.
-
Don't duplicate the full text of your blog or github here. Just post the link for folks to click.
-
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
-
No trolling.
Resources:
- selfh.st Newsletter and index of selfhosted software and apps
- awesome-selfhosted software
- awesome-sysadmin resources
- Self-Hosted Podcast from Jupiter Broadcasting
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
view the rest of the comments
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.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'.
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 theDOCKGE_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 withdocker 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.
Thanks for the detailed explanation! One thing is unclear to me, though: what's the difference between the path and the why do I still need the ENV in addition? Won't they match anyway in 99% of the cases? Since there's not really a reason to not set the path to the stack folder?
The env variable is within the compose file itself - it's fairly simple.
Yeah, I saw that, but why is it needed in the first place? Just in case the stack is in a subfolder of the path? But why even do that, if the ENV only accepts a single value anyway? I'm wondering in which cases the path differs from the DOCKGE_STACKS_DIR env var?
The stack might be anywhere, mine has
DOCKGE_STACKS_DIR=/home/services
because that's where I keep my stack. That's the only value, there aren't 2, so not sure what you meant in the other comment with "they match 99% of the time"It's needed because that's how Dockge manages the compose files - it needs to know where your compose files live. Dockge normally lives in it's own directory,
/opt/dockge/
(the dev gave a reason for that, but I don't remember why), so it won't see anything else until you point it to wherever your compose files are normally located.