Adminer (formerly phpMinAdmin) is a full-featured database management tool written in PHP. Conversely to phpMyAdmin, it consist of a single file ready to deploy to the target server. Adminer is available for MySQL, PostgreSQL, SQLite, MS SQL, Oracle, Firebird, SimpleDB, Elasticsearch and MongoDB.
Then you can hit http://localhost:8080 or http://host-ip:8080 in your browser.
If you are already running a FastCGI capable web server you might prefer running Adminer via FastCGI:
Then point your web server to port 9000 of the container.
Note: This exposes the FastCGI socket to the Internet. Make sure to add proper firewall rules or use a private Docker network instead to prevent a direct access.
Example stack.yml for adminer :
[图片上传失败...(image-841cb6-1549974016453)]
Run docker stack deploy -c stack.yml adminer (or docker-compose -f stack.yml up ), wait for it to initialize completely, and visit http://swarm-ip:8080 , http://localhost:8080 , or http://host-ip:8080 (as appropriate).
This image bundles all official Adminer plugins. You can find the list of plugins on GitHub: https://github.com/vrana/adminer/tree/master/plugins .
To load plugins you can pass a list of filenames in ADMINER_PLUGINS :
If a plugin requires parameters to work correctly you will need to add a custom file to the container:
To load a custom plugin you can add PHP scripts that return the instance of the plugin object to /var/www/html/plugins-enabled/ .
The image bundles all the designs that are available in the source package of adminer. You can find the list of designs on GitHub: https://github.com/vrana/adminer/tree/master/designs .
To use a bundled design you can pass its name in ADMINER_DESIGN :
To use a custom design you can add a file called /var/www/html/adminer.css .
You can specify the default host with the ADMINER_DEFAULT_SERVER environment variable. This is useful if you are connecting to an external server or a docker container named something other than the default db .
While Adminer supports a wide range of database drivers this image only supports the following out of the box:
To add support for the other drivers you will need to install the following PHP extensions on top of this image:
View license information for the software contained in this image.
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
Some additional license information which was able to be auto-detected might be found in the repo-info repository's adminer/ directory .
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
本文如未解决您的问题请添加抖音号:51dongshi(抖音搜索懂视),直接咨询即可。