Comments (3)
I like the idea, does anybody feel like filing a PR? 👍 :)
Also, I suppose this is a duplicate of #1?
from docker-adminer.
It would be useful and yes I guess having #1 would solves this
however I have a few remarks: It's a bit of a PITA to parse those env variable if you don't know the name or type of service that are linked. It can be done ( eg: https://github.com/texthtml/docker-links ) but even then you'll still have to write heuristics to guess which database type it is ( so it might not work with non official database that could use different variable or defaults)
anyway I guess it would mean making a plugin for adminer (I've made a similar plugin at work to automatically connect to our databases but reading a configuration file instead of env vars)
do you think we could find some easier way to configure theses connections?
eg, using DSN like :
docker run \
-e ADMINER_SOURCES=FIRST_DB,SECOND_DB \
-e ADMINER_SOURCE_FIRST_DB=mysql:host=mysql;port=3307;dbname=testdb;username=root \
-e ADMINER_SOURCE_SECOND_DB=pgsql:host=10.2.0.71;port=5432;dbname=testdb;user=bruce
clue/adminer
note, here is the env vars availlable when linking a mysql container to adminer:
docker exec adminer env
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HOSTNAME=8d7fa8843d12
MYSQL_PORT=tcp://172.17.0.2:3306
MYSQL_PORT_3306_TCP=tcp://172.17.0.2:3306
MYSQL_PORT_3306_TCP_ADDR=172.17.0.2
MYSQL_PORT_3306_TCP_PORT=3306
MYSQL_PORT_3306_TCP_PROTO=tcp
MYSQL_NAME=/adminer/mysql
MYSQL_ENV_MYSQL_ALLOW_EMPTY_PASSWORD=true
MYSQL_ENV_GOSU_VERSION=1.7
MYSQL_ENV_MYSQL_MAJOR=5.7
MYSQL_ENV_MYSQL_VERSION=5.7.12-1debian8
HOME=/root
depending on the situation even harder than the database it could be difficult to guess the username, password and database to use
from docker-adminer.
I'm maybe wrong, but predefined connections are stored in session/cookie. Aren't they?
from docker-adminer.
Related Issues (17)
- Support linking database and provide default login form HOT 1
- Support SSH-tunneled databases
- Upload file size not increased to in Adminer HOT 1
- Unable to connect to PostgreSQL server: fe_sendauth: no password supplied HOT 3
- Migrate to official php image HOT 5
- Support Oracle DB (OCI8, PDO_OCI) HOT 5
- switch to an Alpine based image HOT 7
- Pass signals to supervisord to support stopping cleanly HOT 5
- cannot access adminer HOT 5
- No license provided - can we use it? HOT 2
- Version of the docker image HOT 2
- Mongo Is Broken HOT 1
- Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' HOT 2
- None of the supported PHP extensions (mongo) are available.
- extensive number of session files
- Tagged releases + update HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-adminer.