docker-samba
docker-samba copied to clipboard
Feature: default share of `/data/config.yml`
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.
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