95 lines
1.9 KiB
Markdown
95 lines
1.9 KiB
Markdown
# SambaFS
|
|
Simple Samba file server.
|
|
|
|
## Quick reference
|
|
* Where to file issues:
|
|
[Gitea](https://git.gmmg.it/kom23/sambafs/issues)
|
|
|
|
* Supported architectures: amd64 , armv7 , arm64v8
|
|
|
|
## Installation
|
|
```
|
|
cd /opt
|
|
git clone https://github.com/rardcode/sambafs.git
|
|
cd /opt/sambafs
|
|
```
|
|
Launch docker the first time: a simple smb.conf will be created in data/ dir.\
|
|
Docker is ready for a public samba share in /srv/samba/public.\
|
|
Edit data/smb.conf with your desidered shares and compose.yml with group/user to add.
|
|
|
|
|
|
## How to run
|
|
### With docker run
|
|
You can run it with docker run:
|
|
```
|
|
docker run -d -p 139:139 -p 445:445 \
|
|
-e USER1=userID|username|password \ # optional
|
|
-e GROUP1=groupname|user1|user2 \ # optional
|
|
-v "/srv/samba:/srv/samba" \
|
|
-v "./data:/data" \
|
|
rardcode/sambafs \
|
|
```
|
|
### With docker-compose file
|
|
```
|
|
services:
|
|
sambafs:
|
|
image: rardcode/sambafs
|
|
container_name: sambafs
|
|
restart: unless-stopped
|
|
ports:
|
|
- 137:137/udp
|
|
- 138:138/udp
|
|
- 139:139
|
|
- 445:445
|
|
#environment:
|
|
# - USER1=userID|username|pass
|
|
# - GROUP1=groupname|user1|user2
|
|
volumes:
|
|
#- /srv/samba:/srv/samba
|
|
- ./data:/data
|
|
```
|
|
|
|
## Changelog
|
|
v3232.4226r0 - 02.01.2026
|
|
- Fixed tag version
|
|
|
|
v1.232.22-2 - 02.01.2026
|
|
- Defined CMD in Dockerfile; ENTRYPOINT now supports user-provided commands
|
|
|
|
v1.232.22-1 - 31.12.2025
|
|
- Modified cmd in entrypoint file for more log
|
|
|
|
v1.232.22 - 19.12.2025
|
|
- Alpine v. 3.23.2
|
|
|
|
v2.23.22 - 04.12.2025
|
|
- Alpine v. 3.23.0
|
|
- samba v. 4.22.6-r0
|
|
|
|
v.2.0.5 - 12.11.2025
|
|
- Alpine v. 3.22.2
|
|
- samba v. 4.21.9-r1
|
|
|
|
v.2.0.4 - 09.10.2025
|
|
- Alpine v. 3.22.2
|
|
|
|
v.2.0.3 - 08.10.2025
|
|
- Add userID in compose for assign correct docker user ID
|
|
|
|
v.2.0.2 - 06.10.2025
|
|
- Fixed smbd launch command
|
|
|
|
v.2.0.1 - 06.10.2025
|
|
- Added support for groups
|
|
|
|
v.2.0.0 - 06.10.2025
|
|
- Significant build logic rewrite
|
|
|
|
v.1.0.1 - 14.08.2025
|
|
- Alpine v. 3.22.1
|
|
- samba v. 4.21.4-r4
|
|
|
|
v.1.0.0 - 10.07.2025
|
|
- Alpine v. 3.22.0
|
|
- samba v. 4.21.4-r4
|