From 496d86d9b43928bee5b2c4114cbdcd9016887bfb Mon Sep 17 00:00:00 2001 From: thest1tch Date: Fri, 9 Jun 2023 00:11:41 +0500 Subject: [PATCH] add samba --- docs/docker-compose/samba.md | 46 ++++++++++++++++++++++++++++++++++++ mkdocs.yml | 1 + 2 files changed, 47 insertions(+) create mode 100644 docs/docker-compose/samba.md diff --git a/docs/docker-compose/samba.md b/docs/docker-compose/samba.md new file mode 100644 index 0000000..67513a0 --- /dev/null +++ b/docs/docker-compose/samba.md @@ -0,0 +1,46 @@ +[Samba в Docker Hub](https://hub.docker.com/r/dperson/samba) + +## Простой запуск + +```bash +sudo docker run -it -p 139:139 -p 445:445 -d dperson/samba -p +``` + +Или с установкой локального хранилища + +```bash +sudo docker run -it --name samba -p 139:139 -p 445:445 \ + -v /path/to/directory:/mount \ + -d dperson/samba -p +``` + +## Через Docker Compose + +```yaml +# https://hub.docker.com/r/dperson/samba + samba: +    container_name: samba +    image: dperson/samba +    ports: +      - "137:137/udp" +      - "138:138/udp" +      - "139:139/tcp" +      - "445:445/tcp" +    read_only: false # доступ для чтения или записи. +    tmpfs: +      - /tmp +    restart: unless-stopped +    stdin_open: true +    tty: true +    environment: +      PUID: $PUID +      PGID: $PGID +      TZ: $TZ +    volumes: +      - /storage/mount1:/mount1 # шары +    command: +    # -s "[;browse;readonly;guest;users;admins;writelist;comment]" +    # -s "name;/path;no;no;no;example1" +      -s "Serials;/disk1;yes;no;yes" +      -p +``` \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index a351b7c..51bac96 100755 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -70,6 +70,7 @@ nav: - 🐳 Docker Compose: - Install Docker Compose: docker-compose.md - Linx Server: docker-compose/linx-server.md + - Samba: docker-compose/samba.md - Media Server: - Plex: docker-compose/plex.md - Plex Meta Manager: docker-compose/plex-mm.md