Gian Luca Vagnuzzi 3744d82678
Some checks failed
Update Docker Hub Description / dockerHubDescription (push) Successful in 14s
Docker Image CI / build_docker_images (push) Failing after 11m15s
Initial commit
2025-11-12 14:10:40 +01:00
2025-11-12 14:10:40 +01:00
2025-11-12 14:10:40 +01:00
2025-11-12 14:10:40 +01:00
2025-11-12 14:10:40 +01:00
2025-11-12 14:10:40 +01:00
2025-11-12 14:10:40 +01:00
2025-11-12 14:10:40 +01:00
2025-11-12 14:10:40 +01:00

SambaFS

Simple Samba file server.

Quick reference

  • Where to file issues: Gitea

  • 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

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
Description
No description provided
Readme GPL-3.0 74 KiB
Languages
Dockerfile 100%