Guest User

Untitled

a guest
Feb 4th, 2025
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.76 KB | Source Code | 0 0
  1. #docker-compose.yml
  2.  
  3. name: samba
  4.  
  5. services:
  6. samba:
  7. image: crazymax/samba
  8. container_name: samba
  9. volumes:
  10. - "./samba:/data"
  11. - "/media/wd_ultra:/share/wd_ultra"
  12. ...
  13. networks:
  14. - sambanet
  15. environment:
  16. - "TZ=Europe/Paris"
  17. - "SAMBA_LOG_LEVEL=0"
  18. - "SAMBA_FOLLOW_SYMLINKS=no"
  19. restart: unless-stopped
  20. ...
  21. networks:
  22. sambanet:
  23. driver: bridge
  24.  
  25. #samba/config.yml
  26.  
  27. auth:
  28.   - user: user123
  29.     group: group123
  30.     uid: 123
  31.     gid: 123
  32.     password: 123
  33.  
  34. global:
  35.  - "force user = user123"
  36.   - "force group = group123"
  37.   - "fruit:advertise_fullsync = true"
  38.  
  39. share:
  40.   - name: NasUltra
  41.     comment: Backups
  42.     path: /share/wd_ultra
  43.     browsable: yes
  44.     readonly: no
  45.     guestok: no
  46.     veto: no
  47.     validusers: user123
  48.     writelist: user123
  49. ...
  50.  
Advertisement
Add Comment
Please, Sign In to add comment