mirror of
https://github.com/Haxxnet/Compose-Examples
synced 2024-11-24 04:21:14 +00:00
74b93ddc29
add sftp
39 lines
1.3 KiB
YAML
39 lines
1.3 KiB
YAML
services:
|
|
|
|
sftpgo:
|
|
image: drakkan/sftpgo:v2-alpine
|
|
user: 1000:1000
|
|
restart: unless-stopped
|
|
ports:
|
|
- 8888:8080 # HTTP
|
|
#- 2022:2022" # SFTP
|
|
#- 8443:443" # HTTPS
|
|
#- 5007:5007 # WEBDAV
|
|
environment:
|
|
# These are the settings to access your db
|
|
SFTPGO_WEBDAVD__BINDINGS__0__PORT: 5007
|
|
SFTPGO_DATA_PROVIDER__DRIVER: mysql
|
|
SFTPGO_DATA_PROVIDER__NAME: sftpgo
|
|
SFTPGO_DATA_PROVIDER__HOST: mysql
|
|
SFTPGO_DATA_PROVIDER__PORT: 3306
|
|
SFTPGO_DATA_PROVIDER__USERNAME: sftpgo # please change
|
|
SFTPGO_DATA_PROVIDER__PASSWORD: sftpgo # please change
|
|
SFTPGO_COMMON_DEFENDER__ENABLED: true
|
|
SFTPGO_COMMON_DEFENDER__BAN_TIME: 15
|
|
SFTPGO_COMMON_DEFENDER__BAN_TIME_INCREMENT: 100
|
|
SFTPGO_COMMON_DEFENDER__THRESHOLD: 5
|
|
SFTPGO_COMMON_DEFENDER__OBSERVATION_TIME: 15
|
|
volumes:
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/sftpgo/data:/srv/sftpgo
|
|
|
|
mysql:
|
|
image: mysql:latest
|
|
restart: always
|
|
environment:
|
|
MYSQL_DATABASE: sftpgo
|
|
MYSQL_USER: sftpgo # please change
|
|
MYSQL_PASSWORD: sftpgo # please change
|
|
MYSQL_ROOT_PASSWORD: MySecureRootDatabasePassword
|
|
volumes:
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/sftpgo/mysql:/var/lib/mysql
|