Dashboard preview - nginx

grafana oss: v9.1.7 (runs in docker)

I want to use the new dashboard preview. Grafana, image renderer and nginx run in docker containers. Grafana is reachable under http://localhost/grafana

My Grafana Config:

GF_SERVER_ROOT_URL=%(protocol)s://%(domain)s/grafana/ #
GF_SERVER_DOMAIN=localhost
GF_FEATURE_TOGGLES_ENABLE = dashboardPreviews
GF_RENDERING_SERVER_URL=http://grafana-image-renderer:8081/render
GF_RENDERING_CALLBACK_URL=http://grafana:3000/
GF_LOG_FILTERS=rendering:debug
GF_SERVER_SERVE_FROM_SUB_PATH=true

If I open the dashboard overview / preview / browse tab, i cannot see the previews. The nginx log says:

[error] 23#23: *6 open() "/etc/nginx/html/api/dashboards/uid/VSh4RQVVz/img/thumb/dark" failed (2: No such file or directory), client: 172.23.0.1, server: _, request: "GET /api/dashboards/uid/VSh4RQVVz/img/thumb/dark HTTP/1.1", host: "localhost", referrer: "http://localhost/grafana/dashboards?query=&layout=list"

How can I configure nginx to get the previews? Do I have to share volumes?