-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (32 loc) · 881 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (32 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
version: '3.8'
services:
redis:
image: redis:latest
container_name: redis
ports:
- "6379:6379"
command: redis-server --requirepass Hero2025!
volumes:
- ./data/redis:/data # 指定 Redis 数据卷目录
minio:
image: minio/minio:latest
container_name: minio
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: "admin"
MINIO_ROOT_PASSWORD: "Hero2025!"
command: server /data --console-address ":9001"
volumes:
- ./data/minio:/data # 指定 MinIO 数据卷目录
mysql:
image: mysql:latest
container_name: mysql
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: "Hero2025!" # MySQL root 用户密码
volumes:
- ./data/mysql:/var/lib/mysql # 指定 MySQL 数据卷目录
- ./config/my.cnf:/etc/mysql/my.cnf # 自定义配置文件