samba icon indicating copy to clipboard operation
samba copied to clipboard

Migrating an existing Samba instance from the host to a docker container

Open Eirikr70 opened this issue 3 years ago • 1 comments

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

Eirikr70 avatar Jan 30 '22 21:01 Eirikr70

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 `

Eirikr70 avatar Jan 31 '22 19:01 Eirikr70