Skip to content

Instantly share code, notes, and snippets.

View rickxz's full-sized avatar

Herick Victor rickxz

View GitHub Profile
@rickxz
rickxz / Dockerfile
Last active September 6, 2024 20:03 — forked from cilf/Dockerfile
Adminer MongoDB docker image
FROM adminer:4.8.0
# WATCH OUT WHEN UPGRADING, THE SED BELOW MIGHT STOP WORKING
USER root
RUN apk add autoconf gcc g++ make libffi-dev openssl-dev
RUN pecl install mongodb
RUN echo "extension=mongodb.so" > /usr/local/etc/php/conf.d/docker-php-ext-mongodb.ini
# MongoDB allows connections without password.
# But that doesn't fly with Adminer which prints 'Database does not support password.' for such case.