Skip to content

Instantly share code, notes, and snippets.

@juniorkrvl
Forked from atanasyanew/docker-compose-samba.yml
Created January 15, 2022 22:22
Show Gist options
  • Save juniorkrvl/3c13e55a53fd3897770e90646405f9b2 to your computer and use it in GitHub Desktop.
Save juniorkrvl/3c13e55a53fd3897770e90646405f9b2 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