Skip to content

Commit

Permalink
MongoDB support added
Browse files Browse the repository at this point in the history
  • Loading branch information
Timot Tarjani committed May 28, 2024
1 parent 247f9c3 commit 3415562
Show file tree
Hide file tree
Showing 4 changed files with 437 additions and 224 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
FROM php:8.1-apache
FROM php:8.3-apache
COPY ./ /var/www/html/

RUN rm /var/www/html/.env && \
rm -rf /var/www/html/plugins/*
RUN rm -rf /var/www/html/plugins/*

RUN apt-get update && \
apt-get install -y git zip cron npm nodejs
apt-get install -y git zip cron npm nodejs libzip-dev

ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/

# Apache configuration
RUN chmod +x /usr/local/bin/install-php-extensions && \
install-php-extensions zip pdo_mysql && \
install-php-extensions zip pdo_mysql pdo_pgsql pdo_sqlite pdo_sqlsrv mongodb && \
# pecl install mongodb && \
a2enmod rewrite && \
echo "ServerName localhost" >> /etc/apache2/apache2.conf && \
sed -i '/<Directory \/var\/www\/>/,/<\/Directory>/ s/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"mews/purifier": "^3.3",
"laravel/ui": "^4.0",
"codedge/laravel-selfupdater": "^3.4",
"nunomaduro/collision": "^6.1"
"nunomaduro/collision": "^6.1",
"mongodb/laravel-mongodb": "^3.5"
},
"require-dev": {
"phpunit/phpunit" : "^9.0",
Expand Down
Loading

0 comments on commit 3415562

Please sign in to comment.