services:
  samba-share-public:
    image: dperson/samba
    container_name: samba-share-public
    restart: always
    ports:
      - "445:445"  # Optional: 139:139 for SMB over NetBIOS
    volumes:
      - /shared:/mount/shared
    networks:
      - default
    command: >
      -s "public;/mount/shared;yes;no;yes;all;guest" 
      -u "nobody;guest"
      -g "nobody"
      -p
    

networks:
  default:
    ipam:
      driver: default
      config:
        - subnet: 172.7.0.0/16
          gateway: 172.7.0.1