How can i enable hardware acceleration?

I have setupped immich stack using portainer, and it worked well. But i have to setup hardware acceleration, how can i setup it?
18 Replies
bread
bread2y ago
What GPU do you have
Inferno
InfernoOP2y ago
I dont have any external gpu, i will use intel quicksync for that
bread
bread2y ago
Shouldn't be that hard then. Just add this to the "machine-learning" container in your docker compose file
devices:
- /dev/dri:/dev/dri
devices:
- /dev/dri:/dev/dri
bread
bread2y ago
should look something like this
No description
Inferno
InfernoOP2y ago
is this correct?
bread
bread2y ago
looks like it
Inferno
InfernoOP2y ago
How do i check its working?
martabal
martabal2y ago
You have to add it to the microservice container not the machine-learning
Inferno
InfernoOP2y ago
So should i remove from machine-learning and add it to microservice?
martabal
martabal2y ago
Yes
Inferno
InfernoOP2y ago
https://cdn.inf3rno.tech/jt5k is this correct now?
martabal
martabal2y ago
Yes !
Inferno
InfernoOP2y ago
Okay!
Jim
Jim2y ago
it would be better to keep it in hwaccel.yml and uncomment the extends section
meh
meh2y ago
You know a way to do that in portainer?
Jim
Jim2y ago
sorry I don't even know what portainer is. I only use docker/docker-compose
bread
bread2y ago
I don't think you can unless you maybe manually go into the portainer config folder and add it yourself but just adding it through the main docker compose file would be easier It's just a way to manage docker containers through a web UI I mainly use it since I use my phone most of the time.

Did you find this page helpful?