-
Notifications
You must be signed in to change notification settings - Fork 0
/
dc-sftp.yaml
33 lines (33 loc) · 922 Bytes
/
dc-sftp.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
services:
sftp:
container_name: sftp
image: drakkan/sftpgo:latest
env_file:
- env/env-general.env
- env/env-sftp.env
networks:
- lan
ports:
- "2622:2022" # SFTP
- "2621:2121" # FTP
- "60000-60010:60000-60010" # FTP Pasive
- "10080:10080" # WebDAV
volumes:
- /home/pi/docker/sftp:/var/lib/sftpgo
- /mnt/usb/downloads/movies:/srv/sftpgo/movies:z
- /mnt/usb/downloads/series:/srv/sftpgo/series:z
- /mnt/usb/downloads/books:/srv/sftpgo/books:z
- /mnt/usb/downloads/audiobooks:/srv/sftpgo/audiobooks:z
- /mnt/usb/downloads:/srv/sftpgo/downloads:z
- /mnt/usb/backup:/srv/sftpgo/backup
logging:
driver: "json-file"
options:
max-size: "5k"
max-file: "5"
healthcheck:
test: ['CMD', 'sftpgo', 'ping']
interval: 300s
retries: 5
timeout: 10s
restart: always