TimWolla / docker-adminer

Database management in a single PHP file
https://hub.docker.com/_/adminer/
157 stars 69 forks source link

None of the supported PHP extensions (mongo, mongodb) are available (I have read the previous issue) #104

Closed IQ1998 closed 3 years ago

IQ1998 commented 3 years ago

I tried to set up a simple mongodb and use adminer as a GUI tool but I still get this error after hours of googling so any help is much appreciated.

What I have tried is getting into the container using docker exec -it <my_container> -u root sh and executing: pecl install mongodb -> Cannot find autoconf so I tried the old solution which is:

apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS
pecl install mongodb
docker-php-ext-enable mongodb
apk del --no-network .phpize-deps-configure

still got the error message (things seemed to run fine) so I tried this comment but it's no used.

I am inexperienced when it comes to docker or php. Thank you in advance for any tips or solutions

IQ1998 commented 3 years ago

Closing the issue as the 1st solution works. My mistake was in the traefik configuration