1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 11:58:47 +00:00

add samba

This commit is contained in:
kev 2015-07-17 22:53:21 +08:00
parent 56e2438a31
commit 3992c218a7
5 changed files with 61 additions and 0 deletions

@ -12,6 +12,7 @@ dockerfiles
- [ ] hubot
- [ ] iptables
- [ ] irc
- [ ] samba
- [ ] snort
- [ ] tshark
@ -39,6 +40,7 @@ dockerfiles
- [x] pdnsd
- [x] phantomjs
- [x] phpbb
- [x] piwik
- [x] polipo
- [x] pptpd
- [x] privoxy

17
samba/Dockerfile Normal file

@ -0,0 +1,17 @@
#
# Dockerfile for samba
#
FROM alpine
MAINTAINER kev <noreply@datageek.info>
RUN apk add -U samba-common-tools samba-server \
&& rm -rf /var/cache/apk/*
COPY smb.conf /etc/samba/
VOLUME /etc/samba
EXPOSE 137/udp 138/udp 139/tcp 445/tcp
CMD smbd --foreground --log-stdout

6
samba/README.md Normal file

@ -0,0 +1,6 @@
samba
=====
[`Samba`][1] is the standard Windows interoperability suite of programs for Linux and Unix.
[1]: https://www.samba.org/

8
samba/docker-compose.yml Normal file

@ -0,0 +1,8 @@
samba:
build: .
ports:
- "137:137/udp"
- "138:138/udp"
- "139:139/tcp"
- "445:445/tcp"
restart: always

28
samba/smb.conf Normal file

@ -0,0 +1,28 @@
[global]
workgroup = WORKGROUP
server string = %h server (Samba, Apline)
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
server role = standalone server
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
usershare allow guests = yes
load printers = no
show add printer wizard = no
printing = none
printcap name = /dev/null
disable spoolss = yes
[root]
path = /root
browseable = yes
read only = yes
guest ok = yes