Immich isn’t complex, and I don’t think it requires a separate database.
Edit: just checked and technically it does, but if you use the docker compose then it deploys it automatically and you don’t have to think about it at all.
Edit2: if you really want something dead simple, yeah you could trivially write a tiny script to list and thumbnail images. I’m sure there are apache plugins for exactly this.