samba
samba copied to clipboard
Migrating an existing Samba instance from the host to a docker container
Hello, This might not be the right place to ask and I apologize in advance in that case. I would like to migrate an existing instance from the host to a docker-compose container. I have tried mouting a volume for the data, another for the smb.conf file, another for the private directory, and another for each directory that appears in the smb.conf file, but it didn't work. Do you have an example of a docker-compose.yml file for such migrations ? Thanks
I have tried that one with no success. `version: '3.4'
services: samba: image: dperson/samba:latest container_name: samba ports: - "137:137/udp" - "138:138/udp" - "139:139/tcp" - "445:445/tcp" tmpfs: - /tmp volumes: - /etc/samba:/etc/samba - /var/log/samba:/var/log/samba - /usr/share/samba:/usr/share/samba - /srv/nas/Public:/srv/nas/Public - /var/lib/samba:/var/lib/samba environment: - TZ=Europe/Paris restart: unless-stopped `