-
Notifications
You must be signed in to change notification settings - Fork 529
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2b00729
commit 14a7f44
Showing
2 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
auth: | ||
- user: foo | ||
group: foo | ||
uid: 1000 | ||
gid: 1000 | ||
password: bar | ||
# - user: baz | ||
# group: xxx | ||
# uid: 1100 | ||
# gid: 1200 | ||
# password_file: /run/secrets/baz_password | ||
|
||
global: | ||
- "force user = foo" | ||
- "force group = foo" | ||
|
||
share: | ||
- name: public | ||
comment: Public | ||
path: /samba/public | ||
browsable: yes | ||
readonly: no | ||
guestok: yes | ||
veto: no | ||
recycle: yes | ||
# - name: share | ||
# path: /samba/share | ||
# browsable: yes | ||
# readonly: no | ||
# guestok: yes | ||
# writelist: foo | ||
# veto: no | ||
# - name: foo | ||
# path: /samba/foo | ||
# browsable: yes | ||
# readonly: no | ||
# guestok: no | ||
# validusers: foo | ||
# writelist: foo | ||
# veto: no | ||
# hidefiles: /_*/ | ||
# - name: foo-baz | ||
# path: /samba/foo-baz | ||
# browsable: yes | ||
# readonly: no | ||
# guestok: no | ||
# validusers: foo,baz | ||
# writelist: foo,baz | ||
# veto: no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: samba | ||
|
||
services: | ||
samba: | ||
image: crazymax/samba | ||
container_name: samba | ||
network_mode: host | ||
volumes: | ||
- "./data:/data" # Contains cache, configuration and runtime data | ||
- "/smb:/samba/public" | ||
# - "./share:/samba/share" - optional additional share - see config.yml for permissions | ||
# - "./foo:/samba/foo" - optional additional share - see config.yml for permissions | ||
# - "./foo-baz:/samba/foo-baz" - optional additional share - see config.yml for permissions | ||
environment: | ||
- "TZ=Europe/London" | ||
# - "CONFIG_FILE=/your-location" this can be anywhere you want. Default is /data | ||
# - "SAMBA_WORKGROUP=WORKGROUP" change to your workgroup, default it WORKGROUP | ||
# - "SAMBA_SERVER_STRING=some string" is the equivalent of the NT Description field | ||
- "SAMBA_LOG_LEVEL=0" | ||
# - "SAMBA_FOLLOW_SYMLINKS=NO" default is yes | ||
# - "SAMBA_WIDE_LINKS=NO" default is yes | ||
# - "SAMBA_HOSTS_ALLOW=0.0.0.0/0" default 127.0.0.0/8 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 | ||
# - "SAMBA_INTERFACES=some-interface" default all | ||
# - "WSDD2_ENABLE=1" default is 0 | ||
# - "WSDD2_HOSTNAME=string" Override hostname (default to host or container name) | ||
# - "WSDD2_NETBIOS_NAME=some-name" Set NetBIOS name (default to hostname) | ||
# - "WSDD2_INTERFANCE=interface-name" Reply only on this interface | ||
restart: always |