docker-samba icon indicating copy to clipboard operation
docker-samba copied to clipboard

Feature: default share of `/data/config.yml`

Open jhelmink opened this issue 4 years ago • 1 comments

Not a bug, just an idea.

Most people using this container are wanting to use it to share something that has been made available to the container using a mapped volume. Accessing and editing the config.yml from inside the container can be difficult, depending on your linux knowledge.

My suggestion is that by default, on first build, if it doesn't already exist, a /data/config.yml is created that is configured to share the /data folder in a public share. It could also contain a commented section with a full config example for reference.

This would enable users to immediately remotely access and edit the config.yml to suit their needs, just restarting the container for the new config to take effect.

jhelmink avatar Aug 28 '21 23:08 jhelmink

auth:
  - user: dockerSamba
    group: dockerSambaGroup
    uid: 1000
    gid: 1000
    password: dockerSambaSecurePassword
global:
  - "force user = dockerSamba"
  - "force group = dockerSambaGroup"
share:
  - name: data
    comment: Public
    path: /data
    browsable: yes
    readonly: no
    guestok: yes
    veto: no

jhelmink avatar Sep 12 '21 11:09 jhelmink