Add example configuration

This commit is contained in:
Joe Biellik 2016-05-17 18:32:28 +01:00
parent 04411993d7
commit 7a423015c8
3 changed files with 65 additions and 1 deletions

View file

@ -8,6 +8,6 @@ end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[{README.md}]
[{README.md,docker-compose.yml}]
indent_style = space
indent_size = 2

View file

@ -0,0 +1,26 @@
samba:
image: joebiellik/samba-server
volumes:
# You must provide a Samba config file
- ./smb.conf:/config/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=joe
- PASSWORD=samba
# Defaults
- UID=1000
- GID=1000
- GROUP=samba
- CONFIG=/config/smb.conf

38
example/smb.conf Normal file
View file

@ -0,0 +1,38 @@
[global]
workgroup = WORKGROUP
netbios name = Docker
server string = Samba Server Version %v
# Uncomment to map SMB user joe to system user root
#admin users = joe
map to guest = Bad User
security = user
passdb backend = tdbsam
unix password sync = no
name resolve order = bcast host lmhosts wins
directory mask = 0755
force create mode = 0644
force directory mode = 0755
syslog = 0
load printers = No
printing = bsd
printcap name = /dev/null
disable spoolss = Yes
[Projects]
comment = Projects
path = /mnt/projects
read only = No
guest ok = No
valid users = joe
[Videos]
comment = Videos
path = /mnt/videos
read only = Yes
guest ok = Yes
guest only = Yes