|
|
@@ -0,0 +1,52 @@
|
|
|
+# Samba File Server Container
|
|
|
+
|
|
|
+A Dockerized Samba (SMB/CIFS) server using `dperson/samba` to expose two host directories as authenticated network shares.
|
|
|
+
|
|
|
+---
|
|
|
+
|
|
|
+## Functionality
|
|
|
+
|
|
|
+- Runs Samba service in container named `samba`.
|
|
|
+- Shares two host paths via SMB:
|
|
|
+ - Host: `/media/yazoo/qnap_vol1/crm/crm-media/programs/` → Container: `/mnt/binaries` → Share name: `binaries`
|
|
|
+ - Host: `/media/yazoo/bad-disk-4T` → Container: `/mnt/bad-disk` → Share name: `games`
|
|
|
+- Authenticates single user: `player1` (password: `zA0pLin`).
|
|
|
+- Enforces `SMB2` minimum protocol for security.
|
|
|
+- Uses custom `smb.conf` for share definitions and global settings.
|
|
|
+- Binds standard SMB ports: TCP `139`, `445`; UDP `137`, `138`.
|
|
|
+
|
|
|
+---
|
|
|
+
|
|
|
+## Configuration Files
|
|
|
+
|
|
|
+### `.env`
|
|
|
+
|
|
|
+```env
|
|
|
+CONTAINER_NAME=samba
|
|
|
+USER1=player1
|
|
|
+USER1_PASS=zA0pLin
|
|
|
+SHARE1=/media/yazoo/qnap_vol1/crm/crm-media/programs/
|
|
|
+SHARE1_PATH=/mnt/binaries
|
|
|
+SHARE2=/media/yazoo/bad-disk-4T
|
|
|
+SHARE2_PATH=/mnt/bad-disk
|
|
|
+```
|
|
|
+
|
|
|
+Client Access
|
|
|
+
|
|
|
+Replace <HOST_IP> with your Docker host’s IP address.
|
|
|
+Windows
|
|
|
+
|
|
|
+File Explorer → \\<HOST_IP>\binaries or \\<HOST_IP>\games
|
|
|
+→ Login: player1 / zA0pLin
|
|
|
+macOS
|
|
|
+
|
|
|
+Finder → Go → Connect to Server → smb://<HOST_IP>/binaries or smb://<HOST_IP>/games
|
|
|
+
|
|
|
+
|
|
|
+Linux
|
|
|
+```
|
|
|
+sudo mount -t cifs //<HOST_IP>/binaries /mnt/mountpoint -o username=player1
|
|
|
+```
|
|
|
+
|
|
|
+
|
|
|
+
|