Skip to content

Commit 4df37d6

Browse files
author
th-ci
committed
feat(minio): 修改默认端口, 避免和RTP冲突
1 parent f17361d commit 4df37d6

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.env.default

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,10 @@ RABBITMQ_PORT=5672
100100
RABBITMQ_USERNAME='' # admin
101101
RABBITMQ_PASSWORD='' # 123
102102

103-
## Minio, Rtp存储模式必填
103+
## Minio, Rtp存储模式必填, 规避RTP-9000端口冲突
104104
MINIO_HOST='minio' # minio | ${SERVER_IP_INTERNAL} | ${SERVER_IP_PUBLIC}
105-
MINIO_PORT=9000
105+
MINIO_PORT=8000
106+
MINIO_PORT_HTTP=8001
106107
MINIO_USER=minioadmin
107108
MINIO_PASSWORD='' # xxxxxxxxxxxxxxxx
108109
# MINIO_ACCESSKEY/SECRETKEY需要从minio的管理后台创建

minio/compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ services:
44
container_name: minio
55
restart: always
66
ports:
7-
- ${MINIO_PORT:-9000}:9000
8-
# 不需要对外
9-
- 8001:9001
7+
# 原生端口是9000和9001, 规避RTP服务端口冲突, 所以-1000
8+
- ${MINIO_PORT:-8000}:${MINIO_PORT:-8000}
9+
- ${MINIO_PORT_HTTP:-8001}:${MINIO_PORT_HTTP:-8001}
1010
environment:
1111
- MINIO_ROOT_USER=minioadmin
1212
- MINIO_ROOT_PASSWORD=${MINIO_PASSWORD:?required}
1313
- MINIO_BROWSER_REDIRECT_URL=https://${VIDEO_HOSTNAME:?required}
1414
volumes:
1515
- "/data/minio-data:/data"
16-
command: server /data --console-address ":9001"
16+
command: server /data --console-address ":${MINIO_PORT_HTTP:-8001}" --address ":${MINIO_PORT:-8000}"
1717
logging:
1818
driver: "json-file"
1919
options:

0 commit comments

Comments
 (0)