mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-25 02:04:06 +02:00
add samba-arm
This commit is contained in:
parent
3aaaa120fa
commit
b5d8ebce0a
@ -90,6 +90,7 @@ dockerfiles
|
||||
- [x] rsyncd
|
||||
- [x] rtmp
|
||||
- [x] samba :+1:
|
||||
- [x] samba-arm :+1:
|
||||
- [x] scrapyd :+1:
|
||||
- [x] shadowsocks
|
||||
- [x] shadowsocks
|
||||
|
22
samba/arm/Dockerfile
Normal file
22
samba/arm/Dockerfile
Normal file
@ -0,0 +1,22 @@
|
||||
#
|
||||
# Dockerfile for samba-arm
|
||||
#
|
||||
|
||||
FROM easypi/alpine-arm
|
||||
MAINTAINER EasyPi Software Foundation
|
||||
|
||||
RUN set -xe \
|
||||
&& apk add -U samba-common-tools samba-server \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
COPY smb.conf /etc/samba/
|
||||
|
||||
VOLUME /etc/samba \
|
||||
/var/lib/samba
|
||||
|
||||
EXPOSE 137/udp \
|
||||
138/udp \
|
||||
139/tcp \
|
||||
445/tcp
|
||||
|
||||
CMD nmbd -D && smbd -FS
|
8
samba/arm/docker-compose.yml
Normal file
8
samba/arm/docker-compose.yml
Normal file
@ -0,0 +1,8 @@
|
||||
samba:
|
||||
image: easypi/samba-arm
|
||||
volumes:
|
||||
- ./smb.conf:/etc/samba/smb.conf
|
||||
- /mnt/usb:/share
|
||||
net: host
|
||||
tty: yes
|
||||
restart: always
|
33
samba/arm/smb.conf
Normal file
33
samba/arm/smb.conf
Normal file
@ -0,0 +1,33 @@
|
||||
[global]
|
||||
netbios name = easypi
|
||||
workgroup = WORKGROUP
|
||||
server string = EasyPi Samba Server
|
||||
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
|
||||
printcap name = /dev/null
|
||||
load printers = no
|
||||
|
||||
[homes]
|
||||
comment = Home Directories
|
||||
browseable = no
|
||||
writable = yes
|
||||
|
||||
[share]
|
||||
path = /share
|
||||
browseable = yes
|
||||
read only = no
|
||||
guest ok = yes
|
||||
admin users = root
|
||||
root preexec = mkdir -p /share
|
@ -2,7 +2,7 @@ samba:
|
||||
image: vimagick/samba
|
||||
volumes:
|
||||
- ./smb.conf:/etc/samba/smb.conf
|
||||
- /mnt/usb:/share
|
||||
- ./share:/share
|
||||
net: host
|
||||
tty: yes
|
||||
restart: always
|
||||
|
Loading…
Reference in New Issue
Block a user