version: '3.4'

services:
  samba:
    image: dperson/samba
    environment:
      - "TZ:Europe/Paris"
    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:
      - /mnt/data:/mnt:z
    command: '-s "Data;/mnt;yes;no;no;${USER}" -u "${USER};${PASSWORD}" -p'
