Skip to content

Instantly share code, notes, and snippets.

@atanasyanew
Created January 23, 2020 14:47
Show Gist options
  • Save atanasyanew/5e1e5ba1af658aab5cd4f965919559ac to your computer and use it in GitHub Desktop.
Save atanasyanew/5e1e5ba1af658aab5cd4f965919559ac to your computer and use it in GitHub Desktop.
Raspberry Pi docker compose Samba NAS
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