Merge pull request #2724 from goodjack/patch-3

feat: Add support for custom Adminer plugins, designs and default servers
This commit is contained in:
Shao Yu-Lung (Allen) 2020-09-30 11:00:55 +08:00 committed by GitHub
commit daa8883bd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 10 deletions

View File

@ -874,14 +874,14 @@ run from any cli: <br>`curl -X PURGE https://yourwebsite.com/`.
2. How to reload varnish?<br> 2. How to reload varnish?<br>
`docker container exec proxy varnishreload` `docker container exec proxy varnishreload`
3. Which varnish commands are allowed? 3. Which varnish commands are allowed?
- varnishadm - varnishadm
- varnishd - varnishd
- varnishhist - varnishhist
- varnishlog - varnishlog
- varnishncsa - varnishncsa
- varnishreload - varnishreload
- varnishstat - varnishstat
- varnishtest - varnishtest
- varnishtop - varnishtop
4. How to reload Nginx?<br> 4. How to reload Nginx?<br>
`docker exec Nginx nginx -t`<br> `docker exec Nginx nginx -t`<br>
@ -1077,7 +1077,14 @@ docker-compose up -d adminer
2 - Open your browser and visit the localhost on port **8081**: `http://localhost:8081` 2 - Open your browser and visit the localhost on port **8081**: `http://localhost:8081`
**Note:** We've locked Adminer to version 4.3.0 as at the time of writing [it contained a major bug](https://sourceforge.net/p/adminer/bugs-and-features/548/) preventing PostgreSQL users from logging in. If that bug is fixed (or if you're not using PostgreSQL) feel free to set Adminer to the latest version within [the Dockerfile](https://github.com/laradock/laradock/blob/master/adminer/Dockerfile#L1): `FROM adminer:latest` #### Additional Notes
- You can load plugins in the `ADM_PLUGINS` variable in the `.env` file. If a plugin requires parameters to work correctly you will need to add a custom file to the container. [Find more info in section 'Loading plugins'](https://hub.docker.com/_/adminer).
- You can choose a design in the `ADM_DESIGN` variable in the `.env` file. [Find more info in section 'Choosing a design'](https://hub.docker.com/_/adminer).
- You can specify the default host with the `ADM_DEFAULT_SERVER` variable in the `.env` file. This is useful if you are connecting to an external server or a docker container named something other than the default `mysql`.
@ -1212,7 +1219,7 @@ docker-compose up -d elasticsearch
```bash ```bash
docker-compose exec elasticsearch /usr/share/elasticsearch/bin/plugin install {plugin-name} docker-compose exec elasticsearch /usr/share/elasticsearch/bin/plugin install {plugin-name}
``` ```
For ElasticSearch 5.0 and above, the previous "plugin" command has been renamed to "elasticsearch-plguin". For ElasticSearch 5.0 and above, the previous "plugin" command has been renamed to "elasticsearch-plguin".
Use the following instead: Use the following instead:
```bash ```bash

View File

@ -813,6 +813,10 @@ services:
context: ./adminer context: ./adminer
args: args:
- INSTALL_MSSQL=${ADM_INSTALL_MSSQL} - INSTALL_MSSQL=${ADM_INSTALL_MSSQL}
environment:
- ADMINER_PLUGINS=${ADM_PLUGINS}
- ADMINER_DESIGN=${ADM_DESIGN}
- ADMINER_DEFAULT_SERVER=${ADM_DEFAULT_SERVER}
ports: ports:
- "${ADM_PORT}:8080" - "${ADM_PORT}:8080"
depends_on: depends_on:

View File

@ -428,6 +428,9 @@ MINIO_PORT=9000
ADM_PORT=8081 ADM_PORT=8081
ADM_INSTALL_MSSQL=false ADM_INSTALL_MSSQL=false
ADM_PLUGINS=
ADM_DESIGN=pepa-linha
ADM_DEFAULT_SERVER=mysql
### PHP MY ADMIN ########################################## ### PHP MY ADMIN ##########################################