RuoYi-Vue-Plus/script/ruoyi_docker/docker-compose.yml
2025-12-23 18:01:26 +08:00

59 lines
1.7 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

version: '3'
services:
mongo:
image: mongo:latest
container_name: mongo
volumes:
- /d/Program Files/docker/path/mall-swarm/mongo/db:/data/db #数据文件挂载
ports:
- 27017:27017
rustfs:
image: registry.cn-shanghai.aliyuncs.com/study-03/rustfs:latest
container_name: rustfs
ports:
- "19000:9000" # API服务端口
- "19001:9001" # 管理控制台
volumes:
- rustfs_data_volume:/data
environment:
- RUSTFS_ACCESS_KEY=admin
- RUSTFS_SECRET_KEY=admin123
restart: unless-stopped
minio:
image: minio/minio:RELEASE.2023-04-13T03-08-07Z
container_name: minio
ports:
# api 端口
- "9000:9000"
# 控制台端口
- "9001:9001"
environment:
# 时区上海
TZ: Asia/Shanghai
# 管理后台用户名
MINIO_ROOT_USER: admin
# 管理后台密码最小8个字符
MINIO_ROOT_PASSWORD: admin123
# https需要指定域名
#MINIO_SERVER_URL: "https://xxx.com:9000"
#MINIO_BROWSER_REDIRECT_URL: "https://xxx.com:9001"
# 开启压缩 on 开启 off 关闭
MINIO_COMPRESS: "off"
# 扩展名 .pdf,.doc 为空 所有类型均压缩
MINIO_COMPRESS_EXTENSIONS: ""
# mime 类型 application/pdf 为空 所有类型均压缩
MINIO_COMPRESS_MIME_TYPES: ""
volumes:
# 映射当前目录下的data目录至容器内/data目录
- minio_data_volume:/data
# 映射配置目录
- minio_config_volume:/root/.minio/
command: server --address ':9000' --console-address ':9001' /data # 指定容器中的目录 /data
privileged: true
volumes:
rustfs_data_volume:
minio_data_volume:
minio_config_volume: