diff --git a/docker-compose.yml b/docker-compose.yml index 09d7ffb..7edfa77 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -401,6 +401,7 @@ services: - http_proxy - https_proxy - no_proxy + - MARIADB_VERSION=${MARIADB_VERSION} volumes: - ${DATA_PATH_HOST}/mariadb:/var/lib/mysql - ${MARIADB_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d diff --git a/env-example b/env-example index 8a75452..a7bf59b 100644 --- a/env-example +++ b/env-example @@ -269,6 +269,7 @@ MSSQL_PORT=1433 ### MARIADB ############################################### +MARIADB_VERSION=latest MARIADB_DATABASE=default MARIADB_USER=default MARIADB_PASSWORD=secret diff --git a/mariadb/Dockerfile b/mariadb/Dockerfile index 7538b4e..1d04826 100644 --- a/mariadb/Dockerfile +++ b/mariadb/Dockerfile @@ -1,4 +1,5 @@ -FROM mariadb:latest +ARG MARIADB_VERSION=latest +FROM mariadb:${MARIADB_VERSION} LABEL maintainer="Mahmoud Zalt "