26 lines
800 B
Markdown
26 lines
800 B
Markdown
# MySQL Docker Container
|
|
|
|
This directory contains the configuration for running MySQL in a Docker container.
|
|
|
|
## Configuration
|
|
|
|
The configuration is managed through the `.env` file. You can change the following variables:
|
|
|
|
- `MYSQL_DATA_PATH`: The local directory where the database data will be stored. By default, it's set to `./data` within this directory.
|
|
- `MYSQL_ROOT_PASSWORD`: The root password for the MySQL instance.
|
|
- `MYSQL_DATABASE`: The name of the database to be created on startup.
|
|
- `MYSQL_USER`: The username for a non-root user.
|
|
- `MYSQL_PASSWORD`: The password for the non-root user.
|
|
|
|
## Usage
|
|
|
|
To start the container, navigate to this directory (`Dev/mysql`) and run the following command:
|
|
```bash
|
|
docker-compose up -d
|
|
```
|
|
|
|
To stop the container:
|
|
```bash
|
|
docker-compose down
|
|
```
|