https://github.com/ezitisitis/docker-compose-mysql5.7
Docker-compose for mysql5.7 which is used for local development
https://github.com/ezitisitis/docker-compose-mysql5.7
Last synced: about 1 year ago
JSON representation
Docker-compose for mysql5.7 which is used for local development
- Host: GitHub
- URL: https://github.com/ezitisitis/docker-compose-mysql5.7
- Owner: ezitisitis
- License: bsl-1.0
- Created: 2020-11-29T14:56:52.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-28T07:36:17.000Z (almost 5 years ago)
- Last Synced: 2025-03-24T15:21:59.297Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker-compose mysql5.7
Most of the time I use docker to have my environment as close to production as
possible. For that reason I want to access MySQL which is living container via
SequelPro. This repository is created to share with my colleagues and others
who is interested.
## Install
### With default credentials
Run `install.sh` file and it will create container with default root password
### With custom credentials
Copy `.env` file and fill with password for `root` user
```bash
cp .env.example .env
vim .env
```
Execute `docker-compose up -d` to start container
## Connection
To connect to container (local environment) and login to mysql use next
credentials:
| Key | Value (default) | Where can be changed |
| :------- | :-------------- | :------------------- |
| Host | 127.0.0.1 | |
| Port | 3306 | .env |
| Username | root | |
| Password | password | .env |
In case if you want to connect to container on remote server you should first
connect to machine via ssh and then use credentials from above.