Allow specifying the version of MySQL to install in .env file.
This commit is contained in:
parent
422d6d8dd0
commit
7ec8b8846e
|
@ -192,6 +192,8 @@ services:
|
||||||
mysql:
|
mysql:
|
||||||
build:
|
build:
|
||||||
context: ./mysql
|
context: ./mysql
|
||||||
|
args:
|
||||||
|
- MYSQL_VERSION=${MYSQL_VERSION}
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
||||||
- MYSQL_USER=${MYSQL_USER}
|
- MYSQL_USER=${MYSQL_USER}
|
||||||
|
|
|
@ -90,6 +90,7 @@ PHP_SOCKET=php-fpm:9000
|
||||||
|
|
||||||
### MYSQL ##############################################################################################################
|
### MYSQL ##############################################################################################################
|
||||||
|
|
||||||
|
MYSQL_VERSION=8.0
|
||||||
MYSQL_DATABASE=default
|
MYSQL_DATABASE=default
|
||||||
MYSQL_USER=default
|
MYSQL_USER=default
|
||||||
MYSQL_PASSWORD=secret
|
MYSQL_PASSWORD=secret
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
FROM mysql:8.0
|
ARG MYSQL_VERSION=8.0
|
||||||
|
FROM mysql:${MYSQL_VERSION}
|
||||||
|
|
||||||
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue