Unknown permissions error

Hello! I’m somewhat new to using Docker and I can’t seem to find a solution to an issue I’ve been having in the documentation. whenever I run images made with docker-compose, they don’t have permissions to make files or directories at all.

EXAMPLE: When running the Immich docker-compose image, im met with this error message several different times:
immich_postgres | chown: changing ownership of '/var/lib/postgresql/data': Permission denied

I am running on Fedora Server 42, and have run this on a user in the docker group and as the root user. I appreciate any help that can be provided!

Standalone docker-compose went EOL 2 years ago. Please use docker compose (as in th ecli plugin).

What is a "Immich docker-compose image?

Furthermore, the information you shared is not enough to get an idea of what might cause the problem.

Please share the content of your compose file, and the output of docker info. Make sure to paste both as code block: use three backticks (like this: ``` ) in a separate line before and after the content,