diff --git a/build/.Dockerfile~ b/build/.Dockerfile~ deleted file mode 100644 index 8d1c8b6..0000000 --- a/build/.Dockerfile~ +++ /dev/null @@ -1 +0,0 @@ - diff --git a/build/Dockerfile b/build/Dockerfile index 459e446..396d047 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -4,4 +4,4 @@ RUN adduser -S -D -H -h /tmp -s /sbin/nologin -g 'Samba Owner' smbowner ADD samba.conf /etc/samba/smb.conf EXPOSE 445/tcp 139/tcp ENTRYPOINT ["smbd", "--foreground", "--no-process-group", "-s", "/etc/samba/smb.conf"] -VOLUME ["/var/log/samba", "/var/lib/samba"] +VOLUME ["/var/log/samba"] diff --git a/samba.yml b/samba.yml index 8d1c8b6..e55142f 100644 --- a/samba.yml +++ b/samba.yml @@ -1 +1,36 @@ - +version: '3.7' + +x-logging: &json-log + driver: 'json-file' + options: + max-size: 20m + max-file: '5' + +networks: + backend: + driver: overlay + attachable: true + driver_opts: + encrypted: "true" + +services: + samba: + image: localhost:5000/samba:latest + deploy: + restart_policy: + condition: any + update_config: + parallelism: 2 + delay: 5s + order: start-first + failure_action: rollback + placement: + constraints: [node.hostname == nbg-4] +# volumes: +# - '/mnt/db-storage/samba-data:/var/lib/samba:rw' + logging: *json-log + ports: + - '445:445' + - '139:139' + networks: + - backend