From f73daed67b159c014191cfa30e9f16413819a7d9 Mon Sep 17 00:00:00 2001 From: Vincent Letourneau Date: Sun, 29 Apr 2018 10:58:11 +0200 Subject: [PATCH] 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 --- .env | 1 + docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.env b/.env index 835ae86..760f38c 100644 --- a/.env +++ b/.env @@ -11,6 +11,7 @@ NGINX_HOST=localhost PHP_VERSION=latest # MySQL +MYSQL_VERSION=5.7.22 MYSQL_HOST=mysql MYSQL_DATABASE=test MYSQL_ROOT_USER=root diff --git a/docker-compose.yml b/docker-compose.yml index 88ff7f6..b30cd57 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -40,7 +40,7 @@ services: depends_on: - mysqldb mysqldb: - image: mysql + image: mysql:${MYSQL_VERSION} container_name: ${MYSQL_HOST} restart: always env_file: