You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -96,6 +102,9 @@ Container images are configured using parameters passed at runtime (such as thos
96
102
|`-e PGID=1000`| for GroupID - see below for explanation |
97
103
|`-e MYSQL_ROOT_PASSWORD=<DATABASE PASSWORD>`| Set this to root password for installation (minimum 4 characters). |
98
104
|`-e TZ=Europe/London`| Specify a timezone to use EG Europe/London. |
105
+
|`-e MYSQL_DATABASE=<USER DB NAME>`| Specify the name of a database to be created on image startup. |
106
+
|`-e MYSQL_USER=<MYSQL USER>`| This user will have superuser access to the database specified by MYSQL_DATABASE. |
107
+
|`-e MYSQL_PASSWORD=<DATABASE PASSWORD>`| Set this to the password you want to use for you MYSQL_USER (minimum 4 characters). |
99
108
|`-v /config`| Contains the db itself and all assorted settings. |
100
109
101
110
## User / Group Identifiers
@@ -121,6 +130,8 @@ to set one at the docker prompt...
121
130
122
131
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.
123
132
133
+
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.
134
+
124
135
Unraid users, it is advisable to edit the template/webui after setup and remove reference to this variable.
125
136
126
137
Find custom.cnf in /config for config changes (restart container for them to take effect)
@@ -169,6 +180,7 @@ Below are the instructions for updating containers:
169
180
170
181
## Versions
171
182
183
+
***07.03.19:** - Add ability to setup a database and default user on first spinup.
172
184
***26.01.19:** - Add pipeline logic and multi arch.
173
185
***10.09.18:** - Rebase to ubuntu bionic and use 10.3 mariadb repository.
Copy file name to clipboardExpand all lines: readme-vars.yml
+8-1
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,11 @@ param_device_map: false
35
35
cap_add_param: false
36
36
37
37
# optional container parameters
38
-
opt_param_usage_include_env: false
38
+
opt_param_usage_include_env: true
39
+
opt_param_env_vars:
40
+
- { env_var: "MYSQL_DATABASE", env_value: "<USER DB NAME>", desc: "Specify the name of a database to be created on image startup." }
41
+
- { env_var: "MYSQL_USER", env_value: "<MYSQL USER>", desc: "This user will have superuser access to the database specified by MYSQL_DATABASE." }
42
+
- { env_var: "MYSQL_PASSWORD", env_value: "<DATABASE PASSWORD>", desc: "Set this to the password you want to use for you MYSQL_USER (minimum 4 characters)." }
39
43
opt_param_usage_include_vols: false
40
44
opt_param_usage_include_ports: false
41
45
opt_param_device_map: false
@@ -51,13 +55,16 @@ app_setup_block: |
51
55
52
56
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.
53
57
58
+
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.
59
+
54
60
Unraid users, it is advisable to edit the template/webui after setup and remove reference to this variable.
55
61
56
62
Find custom.cnf in /config for config changes (restart container for them to take effect)
57
63
, the databases in /config/databases and the log in /config/log/myqsl
58
64
59
65
# changelog
60
66
changelogs:
67
+
- { date: "07.03.19:", desc: "Add ability to setup a database and default user on first spinup." }
61
68
- { date: "26.01.19:", desc: "Add pipeline logic and multi arch." }
62
69
- { date: "10.09.18:", desc: "Rebase to ubuntu bionic and use 10.3 mariadb repository." }
0 commit comments