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

45 lines
1.4 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
container_name: sftpgo
2023-03-02 13:50:27 +00:00
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
expose:
- 8080 # HTTP
- 2022 # SFTP
- 443 # HTTPS
- 5007 # WEBDAV
2023-02-15 21:45:31 +00:00
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
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
2023-02-15 21:45:31 +00:00
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
container_name: sftpgo-db
2023-02-15 21:45:31 +00:00
restart: always
expose:
- 3306
2023-02-15 21:45:31 +00:00
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