Working copy of samba.
This commit is contained in:
@@ -83,58 +83,23 @@ services:
|
|||||||
- "53:53/udp"
|
- "53:53/udp"
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
|
# Must add "ntlm auth = yes" to global section in smb.conf
|
||||||
|
# adduser and smbpasswd have to be run
|
||||||
|
# Sample smb.conf is copied to repo.
|
||||||
samba:
|
samba:
|
||||||
build: .
|
image: gists/samba-server
|
||||||
container_name: samba
|
container_name: samba
|
||||||
|
ports:
|
||||||
|
- "137:137/udp"
|
||||||
|
- "138:138/udp"
|
||||||
|
- "139:139/tcp"
|
||||||
|
- "445:445/tcp"
|
||||||
environment:
|
environment:
|
||||||
TZ: Europe/Berlin
|
TZ: Europe/Berlin
|
||||||
network_mode: host
|
PASSWORD: lmaa,dw.
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
stdin_open: true
|
|
||||||
tty: true
|
|
||||||
volumes:
|
volumes:
|
||||||
- samba-config:/etc/samba
|
- samba-config:/etc/samba
|
||||||
- /media/backup:/share
|
- /media/backup:/mnt
|
||||||
|
|
||||||
|
|
||||||
# smokeping:
|
|
||||||
# image: lscr.io/linuxserver/smokeping
|
|
||||||
# container_name: smokeping
|
|
||||||
# environment:
|
|
||||||
# - PUID=1000
|
|
||||||
# - PGID=1000
|
|
||||||
# - TZ=Europe/Berlin
|
|
||||||
# restart: unless-stopped
|
|
||||||
# networks:
|
|
||||||
# - proxy
|
|
||||||
# volumes:
|
|
||||||
# - smokeping-config:/config
|
|
||||||
# - smokeping:/data
|
|
||||||
# labels:
|
|
||||||
# - "traefik.enable=true"
|
|
||||||
# - "traefik.http.routers.smokeping.entrypoints=web"
|
|
||||||
# - "traefik.http.routers.smokeping.rule=Host(`smokeping.lan`)"
|
|
||||||
# - "traefik.http.services.smokeping.loadbalancer.server.port=80"
|
|
||||||
#
|
|
||||||
# netdata:
|
|
||||||
# image: netdata/netdata
|
|
||||||
# container_name: netdata
|
|
||||||
# restart: unless-stopped
|
|
||||||
# cap_add:
|
|
||||||
# - SYS_PTRACE
|
|
||||||
# networks:
|
|
||||||
# - proxy
|
|
||||||
# volumes:
|
|
||||||
# - netdataconfig:/etc/netdata
|
|
||||||
# - netdatalib:/var/lib/netdata
|
|
||||||
# - netdatacache:/var/cache/netdata
|
|
||||||
# - /etc/passwd:/host/etc/passwd:ro
|
|
||||||
# - /etc/group:/host/etc/group:ro
|
|
||||||
# - /proc:/host/proc:ro
|
|
||||||
# - /sys:/host/sys:ro
|
|
||||||
# - /etc/os-release:/host/etc/os-release:ro
|
|
||||||
# labels:
|
|
||||||
# - "traefik.enable=true"
|
|
||||||
# - "traefik.http.routers.netdata.entrypoints=web"
|
|
||||||
# - "traefik.http.routers.netdata.rule=Host(`netdata.lan`)"
|
|
||||||
# - "traefik.http.services.netdata.loadbalancer.server.port=19999"
|
|
||||||
|
|||||||
@@ -1,31 +1,30 @@
|
|||||||
[global]
|
[global]
|
||||||
workgroup = WORKGROUP
|
netbios name = samba
|
||||||
server string = Odroid
|
workgroup = WORKGROUP
|
||||||
server role = standalone server
|
server string = Samba Server Version %v
|
||||||
hosts allow = 192.168.178. 127.
|
security = user
|
||||||
security = user
|
guest account = nobody
|
||||||
guest account = nobody
|
map to guest = Bad User
|
||||||
passdb backend = tdbsam
|
name resolve order = bcast host lmhosts wins
|
||||||
dns proxy = no
|
|
||||||
|
|
||||||
load printers = no
|
load printers = no
|
||||||
printcap name = /dev/null
|
printing = bsd
|
||||||
disable spoolss = yes
|
printcap name = /dev/null
|
||||||
|
disable spoolss = yes
|
||||||
|
|
||||||
directory mask = 0755
|
directory mask = 0755
|
||||||
force create mode = 0644
|
force create mode = 0644
|
||||||
force directory mode = 0755
|
force directory mode = 0755
|
||||||
|
|
||||||
server min protocol = SMB2_10
|
ntlm auth = yes
|
||||||
client max protocol = SMB3
|
|
||||||
client min protocol = SMB2_10
|
|
||||||
encrypt passwords = true
|
|
||||||
restrict anonymous = 2
|
|
||||||
|
|
||||||
[data]
|
[data]
|
||||||
comment = Data
|
comment = Data
|
||||||
path = /share
|
path = /mnt
|
||||||
browsable = yes
|
read only = no
|
||||||
writable = yes
|
write list = chris
|
||||||
printable = no
|
guest ok = no
|
||||||
guest ok = no
|
browsable = yes
|
||||||
|
writeable = yes
|
||||||
|
veto files = /._*/.DS_Store/
|
||||||
|
delete veto files = yes
|
||||||
|
|||||||
Reference in New Issue
Block a user