Add missing data and volumes
This commit is contained in:
parent
17d3f0531e
commit
be71cb0003
@ -1 +0,0 @@
|
|||||||
|
|
@ -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
|
ADD samba.conf /etc/samba/smb.conf
|
||||||
EXPOSE 445/tcp 139/tcp
|
EXPOSE 445/tcp 139/tcp
|
||||||
ENTRYPOINT ["smbd", "--foreground", "--no-process-group", "-s", "/etc/samba/smb.conf"]
|
ENTRYPOINT ["smbd", "--foreground", "--no-process-group", "-s", "/etc/samba/smb.conf"]
|
||||||
VOLUME ["/var/log/samba", "/var/lib/samba"]
|
VOLUME ["/var/log/samba"]
|
||||||
|
35
samba.yml
35
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
|
||||||
|
Reference in New Issue
Block a user