Secure and Minimal Qgis Server Docker-image. Only fastcgi, no web server. Share unix socket, /run/qgisserver/fastcgi.sock, with a fcgi-capable web server container (f ex. huggla/sam-lighttpd2).
Run huggla/sam-qgisserver and huggla/sam-lighttpd2 on the same host.
Make sure VAR_SOCKET_DIR in sam-qgisserver (default: /run/fastcgi) is mounted as the parent directory to VAR_FASTCGI_SOCKET_FILE in sam-lighttpd2 (default: /run/fastcgi/fastcgi.sock).
Set VAR_OPERATION_MODE="fcgi" and VAR_setup1_module_load="[ 'mod_fastcgi' ]" in sam-lighttpd2.
(Optional) Adjust VAR_setup3_workers, VAR_setup4_io__timeout and VAR_setup5_stat_cache__ttl in sam-lighttpd2.
Put Qgis project files in VAR_PROJECT_STORAGE_DIR.
Try to load http:///?map=myproject.qgs&service=WMS&request=GetCapabilities