forked from kishikawakatsumi/SMBClient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (44 loc) · 1.13 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
services:
samba:
build:
context: .
dockerfile: Dockerfile
container_name: samba
ports:
- "139:139"
- "4445:445"
environment:
AVAHI_DISABLE: 1
SAMBA_CONF_LOG_LEVEL: 3
SAMBA_GLOBAL_CONFIG_client_SPACE_signing: mandatory
SAMBA_GLOBAL_CONFIG_access_SPACE_based_SPACE_share_SPACE_enum: yes
SAMBA_CONF_MAP_TO_GUEST: Never
GROUP_staff: 20
ACCOUNT_alice: alipass
UID_alice: 1000
GROUPS_alice: staff
ACCOUNT_bob: bobpass
UID_bob: 1001
GROUPS_bob: staff
SAMBA_VOLUME_CONFIG_alice: |
[Alice Share]
path = /shares/alice
valid users = alice
guest ok = no
read only = no
browseable = yes
SAMBA_VOLUME_CONFIG_bob: |
[Bob Share]
path = /shares/bob
valid users = bob
guest ok = no
read only = no
browseable = yes
SAMBA_VOLUME_CONFIG_public: |
[Public]
path = /shares/public
valid users = alice, bob
guest ok = no
read only = no
browseable = yes
force group = staff