From a589d1a8a0c119dfcb73ea801ed1b91de0efe836 Mon Sep 17 00:00:00 2001 From: LinuxServer-CI Date: Mon, 11 Mar 2019 03:38:20 +0000 Subject: [PATCH] Bot Updating Templated Files --- images/docker-mariadb.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/images/docker-mariadb.md b/images/docker-mariadb.md index 09dee866e..3f003a00c 100755 --- a/images/docker-mariadb.md +++ b/images/docker-mariadb.md @@ -38,6 +38,9 @@ docker create \ -e PGID=1000 \ -e MYSQL_ROOT_PASSWORD= \ -e TZ=Europe/London \ + -e MYSQL_DATABASE= `#optional` \ + -e MYSQL_USER= `#optional` \ + -e MYSQL_PASSWORD= `#optional` \ -p 3306:3306 \ -v :/config \ --restart unless-stopped \ @@ -61,6 +64,9 @@ services: - PGID=1000 - MYSQL_ROOT_PASSWORD= - TZ=Europe/London + - MYSQL_DATABASE= #optional + - MYSQL_USER= #optional + - MYSQL_PASSWORD= #optional volumes: - :/config ports: @@ -87,6 +93,9 @@ Docker images are configured using parameters passed at runtime (such as those a | `PGID=1000` | for GroupID - see below for explanation | | `MYSQL_ROOT_PASSWORD=` | Set this to root password for installation (minimum 4 characters). | | `TZ=Europe/London` | Specify a timezone to use EG Europe/London. | +| `MYSQL_DATABASE=` | Specify the name of a database to be created on image startup. | +| `MYSQL_USER=` | This user will have superuser access to the database specified by MYSQL_DATABASE. | +| `MYSQL_PASSWORD=` | Set this to the password you want to use for you MYSQL_USER (minimum 4 characters). | ### Volume Mappings (`-v`) @@ -117,6 +126,8 @@ to set one at the docker prompt... NOTE changing the MYSQL_ROOT_PASSWORD variable after the container has set up the initial databases has no effect, use the mysqladmin tool to change your mariadb password. +NOTE if you want to use (MYSQL_DATABASE MYSQL_USER MYSQL_PASSWORD) **all three** of these variables need to be set you cannot pick and choose. + Unraid users, it is advisable to edit the template/webui after setup and remove reference to this variable. Find custom.cnf in /config for config changes (restart container for them to take effect) @@ -137,6 +148,7 @@ Find custom.cnf in /config for config changes (restart container for them to tak ## Versions +* **07.03.19:** - Add ability to setup a database and default user on first spinup. * **26.01.19:** - Add pipeline logic and multi arch. * **10.09.18:** - Rebase to ubuntu bionic and use 10.3 mariadb repository. * **09.12.17:** - Fix continuation lines.