Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .env.default
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ MINIO_PASSWORD='' # xxxxxxxxxxxxxxxx
# MINIO_ACCESSKEY/SECRETKEY, 默认使用帐号&密码, 也可以在minio的管理后台创建一组新的KEY
MINIO_ACCESSKEY=${MINIO_USER} # xxxxxxxxxxxxxxxx
MINIO_SECRETKEY=${MINIO_PASSWORD} # xxxxxxxxxxxxxxxxx

# MINIO ftp功能
MINIO_FTP_PORT=8021
MINIO_FTP_PASSIVE_PORT=8523-8529
#---------------------------------------------

## 邮件
Expand Down
8 changes: 8 additions & 0 deletions minio/compose.ftp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
services:
minio:
ports:
# 原生端口是9000和9001, 规避RTP服务端口冲突, 所以-1000
- ${MINIO_FTP_PORT:-8021}:${MINIO_FTP_PORT:-8021}
- ${MINIO_FTP_PASSIVE_PORT:-8523-8529}:${MINIO_FTP_PASSIVE_PORT:-8523-8529}
# 被动模式外网IP问题, https://github.com/minio/minio/issues/17457
command: server /data --console-address ":${MINIO_PORT_HTTP:-8001}" --address ":${MINIO_PORT:-8000}" --ftp="address=${SERVER_IP_PUBLIC}:${MINIO_FTP_PORT:-8021}" --ftp="passive-port-range=${MINIO_FTP_PASSIVE_PORT:-8523-8529}"