Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f73daed

Browse files
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

‎.env‎

Lines changed: 1 addition & 0 deletions
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

‎docker-compose.yml‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /