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