25 lines
882 B
Markdown
25 lines
882 B
Markdown
# Custom MySQL Docker
|
|
|
|
This is a custom docker container that is used in my home lab and in my production servers. Feel free to use it.
|
|
|
|
## Prerequisites
|
|
1. docker
|
|
2. docker compose
|
|
3. zip unzip
|
|
4. (OPTIONAL) rsync and remote server for storing backups offsite
|
|
|
|
### 1. Rename ENV
|
|
Rename `.env-example` to `.env`
|
|
### 2. EDIT ENV
|
|
Edit and change all the `CHANGEME` to values you are using
|
|
### 3. Create Docker Network
|
|
Run `docker network create your_network_name` to create network and be sure to change `your_network_name` to someting you will use
|
|
### 4. Modify `backup.sh` if needed
|
|
`backup.sh` can be modified to store locally, mounted directories, s3, etc. Its currently configured to use SSH
|
|
### 5. Install
|
|
Run `docker compose up -d --build`
|
|
|
|
> A separate admin user is created with full permissions and grant options.
|
|
> run docker logs mysql to see password
|
|
|
|
[LICENSE](/LICENSE) |