Skip to content

Latest commit

 

History

History
59 lines (47 loc) · 1.2 KB

README.md

File metadata and controls

59 lines (47 loc) · 1.2 KB

Samba

Docker Pulls License

A very simple SAMBA file server in a container !

Variables

  • Users - The list of users (command separated) that will have access to the system.
  • Passwords - For each user added to the system, create a variable with the username, the value of this variable will be the password.

Shares

Shares follow the default samba configuration standard and should be set in the SHARES_CONF variable:

[Temp]
path = "/share/"
read only = no
writable = yes
valid users = opsxcq
write list = opsxcq
admin users = opsxcq

Example docker-compose

version: "3"
services:

  samba:
    image: strm/samba
    environment:
      USERS: "opsxcq"
      opsxcq: "admin"
      SHARES_CONF: |
        [Temp]
        path = "/share/"
        read only = no
        writable = yes
        valid users = opsxcq
        write list = opsxcq
        admin users = opsxcq

    volumes:
      - "/tmp/:/share"
    ports:
      - 137:137/udp
      - 138:138/udp
      - 139:139
      - 445:455
      - 445:445/udp