Skip to content

mschirrmeister/docker-samba-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Samba Server Container

Docker Pulls Docker Stars Docker Build Status

Samba 4 server running under s6 overlay on Alpine Linux. Runs both smbd and nmbd services.

Configuration

See example directory for sample config file.

Quickstart

Docker manual example:

docker run -it -d \
  --name samba-server \
  -p 139:139 \
  -p 445:445 \
  -e USERNAME=username \
  -e PASSWORD=password \
  -v /opt/docker/etc/samba/smb.conf:/etc/samba/smb.conf \
  --mount type=bind,source=/mnt/movies,target=/mnt/movies,bind-propagation=rshared \
  mschirrmeister/samba-server

Docker compose example:

samba:
  image: mschirrmeister/samba-server

  volumes:
    # You must provide a Samba config file
    - ./smb.conf:/etc/samba/smb.conf

    # Shares
    - ~/projects:/mnt/projects
    - ~/videos:/mnt/videos:ro

  ports:
    - "137:137/udp"
    - "138:138/udp"
    - "139:139/tcp"
    - "445:445/tcp"

  environment:
    - USERNAME=username
    - PASSWORD=password

About

Simple containerized Samba server running on Alpine Linux

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 100.0%