Sign inSign up

maienm/adminer-gen

By maienm

•Updated about 9 years ago

Automated adminer login links for Docker containers

Image
0

257

maienm/adminer-gen repository overview

⁠docker-adminer-gen

An adminer plugin that adds a list of persistent logins to tagged database containers.

This image provides two files in /data: the plugin file, and the json data for the containers. This json file is every 30 seconds. Make sure this file is not in a location that is web-reachable, as it contains passwords.

In addition, if the environment variable MOUNT_AT is set, the plugin file and the container data will be copied to the given path. This can be used to make them available on shared volumes from your adminer container.

⁠Usage

It is advised to use this image in conjunction with maienm/adminer⁠. This image makes it easy to add plugins (such as this one), and it contains everything necessary for the database types supported by this image.

⁠Example with maienm/adminer
docker run \
--name adminer \
--restart unless-stopped \
-d \
-e "ENABLED_PLUGINS=AdminerDockerLinks" \
maienm/adminer

docker run \
--name adminer-gen \
--restart unless-stopped \
-d \
--volumes-from adminer \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-e "ADMINER_CONTAINER=adminer" \
-e "MOUNT_AT=/plugins/docker-gen" \
maienm/adminer-gen

⁠Detection

The following environment variables, set on the database container, are used to detect database containers:

namedescription
ADMINER_NAMERequired. The name displayed in the adminer interface.
ADMINER_TYPEAutodetect. The database type. Valid options: firebird, mongodb, mssql, mysql, oracle, postgres.
ADMINER_HOSTAutodetect. Hostname/ip that the adminer container can use to access the database.
ADMINER_PORTAutodetect. Port that the adminer container can use to access the database.
ADMINER_USERAutodetect. Username for the database.
ADMINER_PASSAutodetect. Password for the database.
ADMINER_DATABASEAutodetect. For database types that support having multiple databases in one instance, the database to default to.

The autodetected fields are based on environment variables use by some of the more popular/the official images for the databases. If autodetection does not seem to work for you, just set the ADMINER_* environment variable.

Tag summary

Content type

Image

Digest

Size

282.9 MB

Last updated

about 9 years ago

docker pull maienm/adminer-gen