File tree Expand file tree Collapse file tree 5 files changed +69
-0
lines changed
Expand file tree Collapse file tree 5 files changed +69
-0
lines changed Original file line number Diff line number Diff line change 1+ DB_ROOT_PASSWORD = #123Mudar#
2+ DB_USER = docker
3+ DB_PASSWORD = docker
Original file line number Diff line number Diff line change 1+ .env
2+ . /mysqlData /*
Original file line number Diff line number Diff line change 1+ # docker-compose MySQL + phpmyadmin
2+
3+
4+
5+ ![ banner] ( ./media/banner.png )
6+
7+
8+ Its a docker-compose dev environment that create a MySql 5.7 server
9+
10+ ## Steps
11+ 1 . Rename the file .env.sample to .env
12+ 2 . Change the variables values from the file .env
13+ 3 . deploy
14+
15+ ## Deploy
16+ ``` shell
17+ docker-compose up -d
18+ ```
19+
20+ ## Exposed ports
21+ ``` shell
22+ PORT SERVICE
23+ 3306/tcp - mySql
24+ 80/tpc - phpMyAdmin
25+ ```
26+
27+ ## Default
28+ ``` shell
29+ username: root
30+ password: # 123Mudar#
31+ ```
Original file line number Diff line number Diff line change 1+ version : ' 2'
2+
3+ services :
4+ mysql :
5+ container_name : mysqlserver-dev
6+ restart : always
7+ image : mysql:5.7
8+ environment :
9+ MYSQL_ROOT_PASSWORD : ${DB_ROOT_PASSWORD}
10+ MYSQL_USER : ${DB_USER}
11+ MYSQL_PASS : ${DB_PASSWORD}
12+ ports :
13+ - ' 3306:3306'
14+ volumes :
15+ - ./mysqlData:/var/lib/mysql
16+ networks :
17+ - vlan_database
18+
19+ pma :
20+ image : phpmyadmin/phpmyadmin
21+ container_name : phpMyAdmin-dev
22+ environment :
23+ PMA_HOST : ' mysql'
24+ PMA_PORT : 3306
25+ MYSQL_ROOT_PASSWORD : ${DB_ROOT_PASSWORD}
26+ ports :
27+ - 80:80
28+ networks :
29+ - vlan_database
30+
31+ networks :
32+ vlan_database :
33+
You can’t perform that action at this time.
0 commit comments