kopia lustrzana https://github.com/linuxserver/docker-documentation
Bot Updating Templated Files
rodzic
334ee87f61
commit
a589d1a8a0
|
@ -38,6 +38,9 @@ docker create \
|
||||||
-e PGID=1000 \
|
-e PGID=1000 \
|
||||||
-e MYSQL_ROOT_PASSWORD=<DATABASE PASSWORD> \
|
-e MYSQL_ROOT_PASSWORD=<DATABASE PASSWORD> \
|
||||||
-e TZ=Europe/London \
|
-e TZ=Europe/London \
|
||||||
|
-e MYSQL_DATABASE=<USER DB NAME> `#optional` \
|
||||||
|
-e MYSQL_USER=<MYSQL USER> `#optional` \
|
||||||
|
-e MYSQL_PASSWORD=<DATABASE PASSWORD> `#optional` \
|
||||||
-p 3306:3306 \
|
-p 3306:3306 \
|
||||||
-v <path to data>:/config \
|
-v <path to data>:/config \
|
||||||
--restart unless-stopped \
|
--restart unless-stopped \
|
||||||
|
@ -61,6 +64,9 @@ services:
|
||||||
- PGID=1000
|
- PGID=1000
|
||||||
- MYSQL_ROOT_PASSWORD=<DATABASE PASSWORD>
|
- MYSQL_ROOT_PASSWORD=<DATABASE PASSWORD>
|
||||||
- TZ=Europe/London
|
- TZ=Europe/London
|
||||||
|
- MYSQL_DATABASE=<USER DB NAME> #optional
|
||||||
|
- MYSQL_USER=<MYSQL USER> #optional
|
||||||
|
- MYSQL_PASSWORD=<DATABASE PASSWORD> #optional
|
||||||
volumes:
|
volumes:
|
||||||
- <path to data>:/config
|
- <path to data>:/config
|
||||||
ports:
|
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 |
|
| `PGID=1000` | for GroupID - see below for explanation |
|
||||||
| `MYSQL_ROOT_PASSWORD=<DATABASE PASSWORD>` | Set this to root password for installation (minimum 4 characters). |
|
| `MYSQL_ROOT_PASSWORD=<DATABASE PASSWORD>` | Set this to root password for installation (minimum 4 characters). |
|
||||||
| `TZ=Europe/London` | Specify a timezone to use EG Europe/London. |
|
| `TZ=Europe/London` | Specify a timezone to use EG Europe/London. |
|
||||||
|
| `MYSQL_DATABASE=<USER DB NAME>` | Specify the name of a database to be created on image startup. |
|
||||||
|
| `MYSQL_USER=<MYSQL USER>` | This user will have superuser access to the database specified by MYSQL_DATABASE. |
|
||||||
|
| `MYSQL_PASSWORD=<DATABASE PASSWORD>` | Set this to the password you want to use for you MYSQL_USER (minimum 4 characters). |
|
||||||
|
|
||||||
### Volume Mappings (`-v`)
|
### 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 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.
|
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)
|
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
|
## 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.
|
* **26.01.19:** - Add pipeline logic and multi arch.
|
||||||
* **10.09.18:** - Rebase to ubuntu bionic and use 10.3 mariadb repository.
|
* **10.09.18:** - Rebase to ubuntu bionic and use 10.3 mariadb repository.
|
||||||
* **09.12.17:** - Fix continuation lines.
|
* **09.12.17:** - Fix continuation lines.
|
||||||
|
|
Ładowanie…
Reference in New Issue