Skip to content

Commit f73daed

Browse files
committed
Add MySQL version to the environment variables
The default version of MySQL is 5.7.22. This change follows the change of MySQL for version 8 and the possible incompatibility with php and phpMyAdmin. see the links: - https://bugs.php.net/bug.php?id=76243 - https://stackoverflow.com/questions/49948350/phpmyadmin-on-mysql-8-0
1 parent b396e3b commit f73daed

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: .env

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ NGINX_HOST=localhost
1111
PHP_VERSION=latest
1212

1313
# MySQL
14+
MYSQL_VERSION=5.7.22
1415
MYSQL_HOST=mysql
1516
MYSQL_DATABASE=test
1617
MYSQL_ROOT_USER=root

Diff for: docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ services:
4040
depends_on:
4141
- mysqldb
4242
mysqldb:
43-
image: mysql
43+
image: mysql:${MYSQL_VERSION}
4444
container_name: ${MYSQL_HOST}
4545
restart: always
4646
env_file:

0 commit comments

Comments
 (0)