feat: add mongodb-replicaset/ & mysql/ & minio/
This commit is contained in:
1
src/minio/.env.example
Normal file
1
src/minio/.env.example
Normal file
@@ -0,0 +1 @@
|
||||
MINIO_ROOT_PASSWORD=
|
||||
1
src/minio/.gitignore
vendored
Normal file
1
src/minio/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/config
|
||||
5
src/minio/README.zh.md
Normal file
5
src/minio/README.zh.md
Normal file
@@ -0,0 +1,5 @@
|
||||
# MinIO
|
||||
|
||||
MinIO 是一个高性能的分布式对象存储系统,兼容 Amazon S3 API。它可以用于存储和管理大量非结构化数据,如照片、视频、日志文件等。
|
||||
|
||||
打开 Web UI 界面:<http://localhost:9001>。
|
||||
38
src/minio/docker-compose.yaml
Normal file
38
src/minio/docker-compose.yaml
Normal file
@@ -0,0 +1,38 @@
|
||||
x-default: &default
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- &localtime /etc/localtime:/etc/localtime:ro
|
||||
- &timezone /etc/timezone:/etc/timezone:ro
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 100m
|
||||
|
||||
services:
|
||||
minio:
|
||||
<<: *default
|
||||
image: minio/minio:${MINIO_VERSION:-RELEASE.2025-09-07T16-13-09Z}
|
||||
ports:
|
||||
- "${MINIO_PORT_OVERRIDE_API:-9000}:9000"
|
||||
- "${MINIO_PORT_OVERRIDE_WEBUI:-9001}:9001"
|
||||
environment:
|
||||
MINIO_ROOT_USER: ${MINIO_ROOT_USER:-root}
|
||||
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-password}
|
||||
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
|
||||
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
|
||||
volumes:
|
||||
- *localtime
|
||||
- *timezone
|
||||
- minio_data:/data
|
||||
- ./config:/root/.minio/
|
||||
command: server --console-address ':9001' /data
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
|
||||
interval: 30s
|
||||
timeout: 20s
|
||||
retries: 5
|
||||
start_period: 30s
|
||||
|
||||
|
||||
volumes:
|
||||
minio_data:
|
||||
Reference in New Issue
Block a user