Samba Panel is an interface for managing shares and users
1.5K
Samba Panel is a web-based interface for managing Samba users and file shares via Docker.
š Check out the example/ā folder for a working Docker Compose setup including config files.
You can run the panel directly without Docker Compose:
docker run -d \
--name samba-panel \
-p 80:3000 \
-v "$PWD/smb.conf:/etc/samba/smb.conf" \
-v "$PWD/smbpasswd:/etc/samba/smbpasswd" \
-v /var/run/docker.sock:/var/run/docker.sock \
-e SMB_CONF_PATH=/etc/samba/smb.conf \
-e SMBPASSWD_PATH=/etc/samba/smbpasswd \
-e NEXT_PUBLIC_PANEL_URL=http://localhost \
-e CONTAINER_NAME=samba \
lanakod/samba-panel:latest
name: samba-server
services:
samba:
container_name: samba
image: dperson/samba
ports:
- "137:137/udp"
- "138:138/udp"
- "139:139/tcp"
- "445:445/tcp"
tmpfs:
- /run
- /tmp
restart: unless-stopped
stdin_open: true
tty: true
volumes:
- ./smb.conf:/etc/samba/smb.conf
- ./smbpasswd:/etc/samba/smbpasswd
command: '-p -i /etc/samba/smbpasswd'
panel:
container_name: panel
image: lanakod/samba-panel:latest
env_file: panel.env
ports:
- "80:3000"
restart: unless-stopped
volumes:
- ./smb.conf:/etc/samba/smb.conf
- ./smbpasswd:/etc/samba/smbpasswd
- /var/run/docker.sock:/var/run/docker.sock
SMB_CONF_PATH=/etc/samba/smb.conf
SMBPASSWD_PATH=/etc/samba/smbpasswd
NEXT_PUBLIC_PANEL_URL=http://localhost
CONTAINER_NAME=samba
Start with this minimal global configuration:
[global]
workgroup = WORKGROUP
server string = Samba Server %v
security = user
map to guest = bad user
passdb backend = smbpasswd
smb passwd file = /etc/samba/smbpasswd
obey pam restrictions = no
unix password sync = no
restrict anonymous = 2
invalid users = root
š Samba shares will be managed through the panel interface.
Ensure the smbpasswd file is empty and present:
touch smbpasswd
chmod 600 smbpasswd
smb.conf and smbpasswd/var/run/docker.sock for container controlLicensed under the MIT Licenseā ā free to use and modify!
Developed and maintained by @lanakodā
Enjoy hassle-free Samba management!
Content type
Image
Digest
sha256:577abe25dā¦
Size
77.7 MB
Last updated
about 1 year ago
docker pull lanakod/samba-panel