You've already forked dockerfiles
mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-11-27 22:28:31 +02:00
add samba
This commit is contained in:
17
samba/Dockerfile
Normal file
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
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
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
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
|
||||
Reference in New Issue
Block a user