{"repo":"cdzombak/samba-docker","free":true,"listed":false,"github":"https://github.com/cdzombak/samba-docker","clone":"git clone https://github.com/cdzombak/samba-docker.git","description":"Up-to-date Samba Docker image optimized for NAS file sharing with full macOS Spotlight support.","language":"Dockerfile","stars":10,"topics":["docker","elasticsearch","nas","samba","samba-server","selfhosted","spotlight"],"license":"GPL-3.0","category":"deployment-docker-iac","readme_excerpt":"samba-docker Up-to-date Samba Docker image optimized for NAS file sharing with full macOS Spotlight support via Elasticsearch integration. Configuration & Usage See deploy-example for an example docker-compose.yml and smb.conf setup. Docker Compose is recommended for deployment. Note that you'll need to mount a number of files/directories into the container, in addition to the Samba shares themselves: The recommended usage is to remove Samba from the host and allow this container to bind directly to port 445 using host networking. Using testparm With your docker-compose.yml set up, you can use testparm as follows to check your smb.conf : IO and Nice Prioritization Samba is arguably the most important thing running on my NAS; when I'm browsing files/folders on it, I want it to be as fast as possible . To help achieve this I've added the following to the samba service in my docker-compose file: This runs smbd in the \"realtime\" IO class, with priority 1 (the possible priorities are 0-7 , with lower numbers being higher priority). To give it priority on the CPU, I also give smbd a nice value of -17 (values range down to -19 , the highest priority). Migrating away from system Samba This is necessary if you want the Samba container to use host networking and listen on port 445 (recommended). See Also - smb.conf reference - smbd reference - smbpasswd reference - https://wiki.samba.org/index.php/Build Samba from Source - https://www.samba.org/samba/docs/current/man-html/vfs fruit.8.h","default_branch":null,"files":null,"tree":[],"storefront":"/r/cdzombak","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cdzombak/samba-docker/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}