diff --git a/maintain/compose.yml b/maintain/compose.yml index 0028020..021bf00 100644 --- a/maintain/compose.yml +++ b/maintain/compose.yml @@ -35,7 +35,7 @@ services: - spring.rabbitmq.virtual-host=/track # MINIO数据端口 - - spring_my_minio_url=http://${MINIO_HOST:-minio}:${MINIO_PORT:-9000} + - spring_my_minio_url=http://${MINIO_HOST:-minio}:${MINIO_PORT:-8000} - spring_my_minio_bucket=maintain - spring_my_minio_accessKey=${MINIO_ACCESSKEY:?required} - spring_my_minio_secretKey=${MINIO_SECRETKEY:?required} diff --git a/video-nginx/compose.yml b/video-nginx/compose.yml index b35e4a9..e32c7af 100644 --- a/video-nginx/compose.yml +++ b/video-nginx/compose.yml @@ -32,6 +32,8 @@ services: - source: mdvr-live-https.conf.template target: /etc/nginx/templates/mdvr-live.conf.template environment: + - MINIO_HOST=${MINIO_HOST} + - MINIO_PORT=${MINIO_PORT} - VIDEO_PORT_HTTPS_0=${VIDEO_PORT_HTTPS_0} - VIDEO_PORT_HTTPS_1=${VIDEO_PORT_HTTPS_1} - VIDEO_PORT_HTTPS_2=${VIDEO_PORT_HTTPS_2} diff --git a/video-nginx/conf/conf.d/443.conf.template b/video-nginx/conf/conf.d/443.conf.template index afe74c0..e5d5da8 100644 --- a/video-nginx/conf/conf.d/443.conf.template +++ b/video-nginx/conf/conf.d/443.conf.template @@ -15,7 +15,7 @@ server { # minio录像云存储 location /minio/ { - proxy_pass http://minio:9000/; + proxy_pass http://${MINIO_HOST}:${MINIO_PORT}/; } #access_log /var/log/nginx/host.access.log main; diff --git a/video/compose.storage.yaml b/video/compose.storage.yaml index 300d6e6..3ce1d8a 100644 --- a/video/compose.storage.yaml +++ b/video/compose.storage.yaml @@ -15,7 +15,7 @@ services: # 启用mini 录像将存放minio中do - spring_minio_enabled=true - spring_minio_domain=https://${VIDEO_HOSTNAME:?required}:${VIDEO_PORT_HTTPS_0}/minio - - spring_minio_endpoint=http://minio:9000 + - spring_minio_endpoint=http://${MINIO_HOST:-minio}:${MINIO_PORT:-8000} - spring_minio_accessKey=${MINIO_ACCESSKEY:?required} - spring_minio_secretKey=${MINIO_SECRETKEY:?required} - spring_minio_bucketName=storage