Mongo DB Support #281

Closed
opened 2023-03-18 16:33:19 +00:00 by vicdvp · 3 comments
vicdvp commented 2023-03-18 16:33:19 +00:00 (Migrated from github.com)

How would I add MongoDB plugins for PHP? I've got the docker image running and tried installing 2 different ways via the command line of the nginx-php-fpm container itself.

  1. I've tried adding as per the documentation on PHP Modules using docker-php-ext-configure but that doesn't work (error - Possible values for ext-name and mongodb's not in the list)

  2. I also tried the pecl install mongodb method but that also didn't work (Cannot find autoconf and phpize failed)

Would I have to add the pecl method to the Dockerfile the same way you add redis and xdebug and build a new image?

How would I add MongoDB plugins for PHP? I've got the docker image running and tried installing 2 different ways via the command line of the nginx-php-fpm container itself. 1. I've tried adding as per the documentation on PHP Modules using `docker-php-ext-configure` but that doesn't work (error - Possible values for ext-name and mongodb's not in the list) 2. I also tried the `pecl install mongodb` method but that also didn't work (Cannot find autoconf and phpize failed) Would I have to add the pecl method to the Dockerfile the same way you add redis and xdebug and build a new image?
richarvey commented 2023-03-19 00:07:31 +00:00 (Migrated from github.com)

I'll have a go at this and let you know asap.

I'll have a go at this and let you know asap.
richarvey commented 2023-03-20 11:36:50 +00:00 (Migrated from github.com)

I'm adding support for this in version 3.1.3

I'm adding support for this in version 3.1.3
vicdvp commented 2023-03-21 12:39:06 +00:00 (Migrated from github.com)

Thank you so much. I've downloaded and tested connecting and reading from both remote (MongoDB Atlas) and local (Docker instance) and it works perfectly.

Thank you so much. I've downloaded and tested connecting and reading from both remote (MongoDB Atlas) and local (Docker instance) and it works perfectly.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ric/nginx-php-fpm#281
No description provided.