-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Unraid Community / All-Inclusive Image #84
Comments
Is there an existing Docker image on Docker Hub already or would one need to get it into a registry? |
Also there seems to be a dependency on Postgres running in port 5432. Did I read that right? If so, that port should probably be configurable defaulting to 5432. |
@JamesTeague There is no image that contains the whole application yet. I am working on the branch It is correct that the Postgres port is 5432. You can access it on your local machine as well as throughout your local network with the VM IPV4 |
@alextran1502 Regarding the port that is true, but there will be people running Postgres in a container not using port 5432. It's generally not a good assumption that the database will be exposed on that port. So in the case of Unraid it would help users to know that this template requires their own postées instance but it shouldn't also dictate the port they have to expose on the container. Or if for some reason they are running multiple instances of the database, 1 has to be running on a different port. Once the container is in the registry though I wouldn't mind helping get the template set up and tested. Or trying to contribute on other things as well. |
Isn't the immich image sufficient if using an existing database? |
There is a message queue that utilizes Redis for passing the message across the background processes, so you would need Redis as well. Now that I am adding a web interface that is using SvelteKit, which has its own built-in Nodejs server, this adds an additional complexity to the process of putting everything into a single Docker image. |
I actually already have Redis up and running, but how should that be configured? According to 'Step 1' from https://github.com/alextran1502/immich, there is only the database configuration. |
I think so, most people probably want to decouple that and Redis anyway. |
The branch doesn't exist anymore. It would be very nice to have a single container to deploy. I already have postgres and redis dockers running and don't want to deploy other instances. |
You can use environment variables to point your Immich services at your existing redis and postgres containers, check the .env file |
Is it possible to get rid of the .env file and to use only the environment variables ? It would allow to run the services with docker run |
Sure, you can skip the .env file and pass the variables in any other way you like. |
For now Immich works with Unraid with the docker-compose plugin but in my understanding to run with the |
yes the custom entrypoint is the main problem .. in my case, even in advanced docker mode in unraid i don't see where to put the custom entrypoint for each image. |
There is the |
The images are built on top of the node base image, so there is a default entrypoint defined that you can override. A command like |
For a release on Unraid, it would be a lot better to avoid arguments other than path, device, port or environment variable. Other arguments has to be passed with the extra-parameters field which is not very user-friendly. |
Sorry for my useless message but I have to say I would really love ab easy unraid install !!! |
I managed to install |
Thanks @martabal for your feedback. |
No problem, I will try to merge the images next week |
You’d be a hero here. Looking forward to this! :-) |
Yea thanks, keen to give this a go :) |
@martabal how did manage to override the entrypoint? unraid webpage Extra Parameters doesn't seems to help |
Would we need to install a bunch of individual "apps" (containers) one by one to get this working on unraid without docker-compose? It looks like there's 7 containers, is that right? I'm hesitant to use compose on unraid as it doesn't play well with their Web UI and that is my primary interface to the server. |
Google says my Dell T610 doesn't have AVX support; so thats probably the reason my machine learning portion won't stay running: #300 Still not sure of the side effects of it not running or if that will cause me other issues. Also still unsure if docker compose plugin installed on Unraid if it is normal for it to say this at bottom of the docker tab: Invalid argument supplied for foreach() in /usr/local/emhttp/plugins/compose.manager/php/compose_manager_main.php on line 32 |
Wouldn't it be better to use environment variables rather than using hardcoded urls ? This would allow for a single image and users to rename their containers as they wish. #647
Line 48 in 2c189d5
Line 65 in 2c189d5
Line 90 in 2c189d5
|
Every single time in Unraid I "docker compose down" then "Update Stack" MORE of my Docker Image is full. How can I "clean up" after this configuration? @Mattyfaz ? Anyone? |
https://docs.docker.com/engine/reference/commandline/system_prune/ should do the trick. |
That will work in Unraid? |
I ran it; eventually the unraid command window wen't away. Didn't see that it did anything; docker image still larger than expected? Did it from ssh and it deleted 284mb :scratches head: Yep, that was a bad idea; deleted containers I had that weren't running...a few I can't seem to get recreated right. DOH LOL |
Not sure sorry, I don’t think I have the same issue. I don’t click “docker compose down”, I just click “update stack” and it does it all for you. |
Install user scripts and create this as a script it will remove any dangling images #!/bin/bash remove_orphaned_images="yes" # select "yes" or "no" to remove any orphaned images #Do not make changes below this line# echo "##################################################################################" |
Not sure if this has been discussed but there are other templates (at least 1 I know of) like TubeArchivist that require multiple dockers to work correctly that currently work with the Unraid Community Applications Plugin. Would this approach be more appropriate? |
It looks like TubeArchivist doesn't do anything special, they just have a template for each of their containers. At that point, docker-compose is still the better option :) |
I second the request, a single container for all elements would be great! I am managing Home Assistant addons, which is not compatible with stacks of several containers. |
There is now a single AIO image at https://github.com/martabal/docker-immich. It isn't supported by the Immich team though. |
Sorry if this is a silly question, but since you closed this issue, does this mean that there will never be an official AIO Immich image? Only the third party one you linked to? My number one issue right now, as an extremely novice self-hoster, is the way that I have to use docker compose on my Unraid machine to use it. The three issues I have with this is that: To be clear, I'm not writing this in anger or frustration. To the contrary! I absolutely love this software and understand the ungodly amount of work you all must have in front of you, tackling such a project! I just wanted to give my perspective as a newbie trying their darndest to rip as many of Google's tendrils from my life as possible and taking back control of my data. Thank you all for your amazing work, I've been looking for a solid google photos replacement for years now. From my experience trying to self-host Photoview, Photoprism, etc., Immich is far and away the best one I've come across, the only one that truly has a google photos-like experience with the mobile app, and the only one that has runs rock solid with almost no issues with its core functionalites. In fact, I love this project so much that I created a github account to better follow your progress and so that I could donate. |
@SmoochSmackers Thank you for your very detailed thoughts and ideas. On behalf of the team, I will answer your questions.
Cheer! |
Updated the immich docs to link to the community all-in-one github repository (#1301). |
@alextran1502 Thank you very much for your detailed reply! In regards to the Windows comparison, I'd honestly never thought of it in terms of everything an exe is doing in the background, so it makes a lot of sense that multiple containers would be a necessity. Regardless of how you need to do it, I'm just glad you're doing it! Just spit-balling, but maybe, way down the line when you're not in active pre-production development, you could maybe revisit this, or even somehow put all the different containers on the unraid app store, such that one is a "core" for basic photo backup, another serves as an addon for utilizing the mobile app, another serves as an addon for machine learning, etc. No idea how possible any of that is, but I just wanted to throw it out there for consideration much later down the line. Keep up the incredible work!! Thanks again! |
Hello ! |
I think we're good with you keeping it in a separate repo for now. We just get the occasional question about it, so now everyone will know to go ask you instead. 😁 |
@martabal do you think you could provide an unraid template ? I don't really know how your image could land on Unraid's community software... maybe it should be requested idk. Thanks a lot for your work, and THANKS a lot @alextran1502 |
Would it be possible to migrate from the normal docker-compose setup to the all-in-one docker preserving the database and uploaded pictures? |
Immich persists data to the upload folder and postgres data volumes. As long as you start up the AIO with those same two volumes it should be possible. |
@guim31 Yep, I plan to do it this week. But you can already install it on unraid manually. |
@jrasm91 Is it ok that my image is published on unraid community apps ? |
I don't have a problem with it, just as long as it's clear it's not officially supported by Immich dev team and they should ask you question if they run into issues 😁 |
Feature Details:
Follow the guide here for steps to create the required XML files for unraid.
The text was updated successfully, but these errors were encountered: