Created
January 23, 2020 14:47
-
-
Save atanasyanew/5e1e5ba1af658aab5cd4f965919559ac to your computer and use it in GitHub Desktop.
Raspberry Pi docker compose Samba NAS
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
version: '3.4' | |
services: | |
samba: | |
image: dperson/samba:armhf | |
container_name: samba | |
environment: | |
TZ: Europe/Sofia | |
USERID: 1000 | |
GROUPID: 1000 | |
networks: | |
- default | |
ports: | |
- "137:137/udp" | |
- "138:138/udp" | |
- "139:139/tcp" | |
- "445:445/tcp" | |
read_only: true | |
tmpfs: | |
- /tmp | |
restart: unless-stopped | |
stdin_open: true | |
tty: true | |
volumes: | |
- /media/pi:/mnt:z | |
command: '-s "usbhub;/mnt;yes;no;yes;" -p' # USB Hub should have access to anyone for anything | |
#command: '-s "usbhub;/mnt" -s "Bobs Volume;/mnt2;yes;no;no;bob" -u "bob;bobspasswd"' | |
networks: | |
default: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment