Add missing data and volumes

This commit is contained in:
caskd 2020-01-23 17:21:58 +01:00
parent 17d3f0531e
commit be71cb0003
No known key found for this signature in database
GPG Key ID: 79DB21404E300A27
3 changed files with 37 additions and 3 deletions

View File

@ -1 +0,0 @@

View File

@ -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"]

View File

@ -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