Compose-Examples/examples/sftpgo/docker-compose.yml

39 lines
1.3 KiB
YAML
Raw Normal View History

2023-02-15 21:45:31 +00:00
services:
2023-03-02 13:50:27 +00:00
2023-02-15 21:45:31 +00:00
sftpgo:
2023-03-02 13:50:27 +00:00
image: drakkan/sftpgo:v2-alpine
user: 1000:1000
2023-02-15 21:45:31 +00:00
restart: unless-stopped
ports:
2023-03-02 13:50:27 +00:00
- 8888:8080 # HTTP
2023-09-05 14:48:41 +00:00
#- 2022:2022" # SFTP
2023-02-15 21:45:31 +00:00
#- 8443:443" # HTTPS
#- 5007:5007 # WEBDAV
environment:
# These are the settings to access your db
SFTPGO_WEBDAVD__BINDINGS__0__PORT: 5007
2023-03-02 13:50:27 +00:00
SFTPGO_DATA_PROVIDER__DRIVER: mysql
SFTPGO_DATA_PROVIDER__NAME: sftpgo
SFTPGO_DATA_PROVIDER__HOST: mysql
2023-02-15 21:45:31 +00:00
SFTPGO_DATA_PROVIDER__PORT: 3306
SFTPGO_DATA_PROVIDER__USERNAME: sftpgo # please change
SFTPGO_DATA_PROVIDER__PASSWORD: sftpgo # please change
2023-03-02 13:50:27 +00:00
SFTPGO_COMMON_DEFENDER__ENABLED: true
SFTPGO_COMMON_DEFENDER__BAN_TIME: 15
2023-02-15 21:45:31 +00:00
SFTPGO_COMMON_DEFENDER__BAN_TIME_INCREMENT: 100
2023-03-02 13:50:27 +00:00
SFTPGO_COMMON_DEFENDER__THRESHOLD: 5
2023-02-15 21:45:31 +00:00
SFTPGO_COMMON_DEFENDER__OBSERVATION_TIME: 15
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/sftpgo/data:/srv/sftpgo
2023-03-02 13:50:27 +00:00
2023-02-15 21:45:31 +00:00
mysql:
image: mysql:latest
restart: always
environment:
2023-03-02 13:50:27 +00:00
MYSQL_DATABASE: sftpgo
2023-02-15 21:45:31 +00:00
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