Skip to content

Instantly share code, notes, and snippets.

View kpatdev's full-sized avatar

Kishan Patel kpatdev

View GitHub Profile
@kpatdev
kpatdev / Dockerfile
Created February 28, 2025 21:50 — forked from rickxz/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.