From d46483d1c6379db5b8ff32d503db39cc8f7696c3 Mon Sep 17 00:00:00 2001 From: niexiaorong Date: Mon, 1 Sep 2025 10:43:07 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feat(minio):=20=E5=A2=9E=E5=8A=A0ftp?= =?UTF-8?q?=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- minio/compose.ftp.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 minio/compose.ftp.yml diff --git a/minio/compose.ftp.yml b/minio/compose.ftp.yml new file mode 100644 index 0000000..c9a6f2a --- /dev/null +++ b/minio/compose.ftp.yml @@ -0,0 +1,7 @@ +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} + command: server /data --console-address ":${MINIO_PORT_HTTP:-8001}" --address ":${MINIO_PORT:-8000}" --ftp="address=:${MINIO_FTP_PORT:-8021}" --ftp="passive-port-range=${MINIO_FTP_PASSIVE_PORT:-8523-8529}" \ No newline at end of file From 37945d9d4a3f87cc54bdef8ec673621766af4b7d Mon Sep 17 00:00:00 2001 From: niexiaorong Date: Mon, 1 Sep 2025 14:11:08 +0800 Subject: [PATCH 2/3] =?UTF-8?q?fix(minio-ftp):=20=E8=A2=AB=E5=8A=A8?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- minio/compose.ftp.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/minio/compose.ftp.yml b/minio/compose.ftp.yml index c9a6f2a..0b512ba 100644 --- a/minio/compose.ftp.yml +++ b/minio/compose.ftp.yml @@ -4,4 +4,5 @@ services: # 原生端口是9000和9001, 规避RTP服务端口冲突, 所以-1000 - ${MINIO_FTP_PORT:-8021}:${MINIO_FTP_PORT:-8021} - ${MINIO_FTP_PASSIVE_PORT:-8523-8529}:${MINIO_FTP_PASSIVE_PORT:-8523-8529} - command: server /data --console-address ":${MINIO_PORT_HTTP:-8001}" --address ":${MINIO_PORT:-8000}" --ftp="address=:${MINIO_FTP_PORT:-8021}" --ftp="passive-port-range=${MINIO_FTP_PASSIVE_PORT:-8523-8529}" \ No newline at end of file + # 被动模式外网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}" \ No newline at end of file From 051e3b2f137acdda0814e8d433792ee322bc9a74 Mon Sep 17 00:00:00 2001 From: niexiaorong Date: Tue, 9 Sep 2025 17:54:59 +0800 Subject: [PATCH 3/3] =?UTF-8?q?feat(minio-ftp):=20=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=A2=9E=E5=8A=A0=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.default | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.env.default b/.env.default index dd76b3c..4f220cc 100644 --- a/.env.default +++ b/.env.default @@ -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 #--------------------------------------------- ## 邮件