feat: add README

This commit is contained in:
Sun-ZhenXing
2025-09-24 14:16:10 +08:00
parent 232517b58f
commit 70f39867cf
65 changed files with 1695 additions and 103 deletions

0
src/mysql/.env.example Normal file
View File

View File

@@ -0,0 +1,21 @@
# MySQL
[English](./README.md) | [中文](./README.zh.md)
This service deploys a MySQL database.
## Services
- `mysql`: The MySQL database service.
## Configuration
- `MYSQL_VERSION`: The version of the MySQL image, default is `9.4.0`.
- `MYSQL_PORT_OVERRIDE`: The host port for MySQL, default is `3306`.
- `MYSQL_ROOT_PASSWORD`: The root password, default is `password`.
- `MYSQL_ROOT_HOST`: The root host, default is `%`.
## Volumes
- `mysql_data`: A volume for storing MySQL data.
- `init.sql`: Optional initialization script (mount to `/docker-entrypoint-initdb.d/init.sql`).

21
src/mysql/README.zh.md Normal file
View File

@@ -0,0 +1,21 @@
# MySQL
[English](./README.md) | [中文](./README.zh.md)
此服务用于部署一个 MySQL 数据库。
## 服务
- `mysql`: MySQL 数据库服务。
## 配置
- `MYSQL_VERSION`: MySQL 镜像的版本,默认为 `9.4.0`
- `MYSQL_PORT_OVERRIDE`: MySQL 的主机端口,默认为 `3306`
- `MYSQL_ROOT_PASSWORD`: root 密码,默认为 `password`
- `MYSQL_ROOT_HOST`: root 主机,默认为 `%`
## 卷
- `mysql_data`: 用于存储 MySQL 数据的卷。
- `init.sql`: 可选的初始化脚本(挂载到 `/docker-entrypoint-initdb.d/init.sql`)。