Compose-Examples/examples/sftpgo/docker-compose.yml
Juan Luis Rodríguez Ponce d08c1b3979
Fix defender vars in sftpgo example
According to the docs to traverse the path __ must be used.
2023-12-19 18:32:23 +01:00

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