mirror of
https://github.com/Yaslonane/docker_php-apache-postgre.git
synced 2026-05-19 09:47:58 +03:00
add composer php in container
This commit is contained in:
+5
-1
@@ -2,6 +2,10 @@ FROM php:8.1.22-apache
|
|||||||
|
|
||||||
COPY 000-default.conf /etc/apache2/sites-enabled/
|
COPY 000-default.conf /etc/apache2/sites-enabled/
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y libpq-dev git && docker-php-ext-install pdo pdo_pgsql
|
RUN apt-get update && apt-get install -y libpq-dev git && docker-php-ext-install pdo pdo_pgsql
|
||||||
|
|
||||||
|
RUN pecl install xdebug && docker-php-ext-enable xdebug
|
||||||
|
|
||||||
|
COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
|
||||||
|
|
||||||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
|
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
[xdebug]
|
||||||
|
xdebug.mode=develop,debug
|
||||||
|
#xdebug.client_host=127.0.0.1
|
||||||
|
xdebug.client_host=1
|
||||||
|
#xdebug.client_port=9003
|
||||||
|
xdebug.start_with_request=trigger
|
||||||
|
xdebug.idekey = VSCode
|
||||||
|
#xdebug.discover_client_host=false
|
||||||
Binary file not shown.
Binary file not shown.
@@ -1,6 +1,6 @@
|
|||||||
1
|
1
|
||||||
/var/lib/postgresql/data
|
/var/lib/postgresql/data
|
||||||
1691675843
|
1692023204
|
||||||
5432
|
5432
|
||||||
/var/run/postgresql
|
/var/run/postgresql
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user