This repository has been archived on 2020-04-25. You can view files and clone it, but cannot push or open issues or pull requests.
storage-docker/storage.yml

37 lines
679 B
YAML

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