small updated around docker/compose/readme
This commit is contained in:
@@ -18,4 +18,6 @@ To access the test you will need to write the server name in your `/etc/hosts` f
|
|||||||
|
|
||||||
Run `docker compose up -d`
|
Run `docker compose up -d`
|
||||||
|
|
||||||
|
Run `docker compose exec --workdir=/var/www/trial php /usr/local/bin/composer install`
|
||||||
|
|
||||||
To access the test then just simply visit `https://trial:8443` (you need to agree with self-signed cert).
|
To access the test then just simply visit `https://trial:8443` (you need to agree with self-signed cert).
|
||||||
|
|||||||
+3
-1
@@ -47,7 +47,9 @@ services:
|
|||||||
- dev-network
|
- dev-network
|
||||||
|
|
||||||
php:
|
php:
|
||||||
build: ./docker/fpm
|
build:
|
||||||
|
dockerfile: ./docker/fpm/Dockerfile
|
||||||
|
context: .
|
||||||
hostname: php
|
hostname: php
|
||||||
links:
|
links:
|
||||||
- db
|
- db
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
FROM php:8.2-fpm
|
FROM php:8.2-fpm
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
libpq-dev \
|
libpq-dev \
|
||||||
&& docker-php-ext-install -j$(nproc) pdo pdo_pgsql \
|
libzip-dev \
|
||||||
|
unzip \
|
||||||
|
libonig-dev \
|
||||||
|
libxml2-dev && \
|
||||||
|
docker-php-ext-install -j$(nproc) pdo pdo_pgsql zip mbstring pcntl
|
||||||
|
|
||||||
|
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
|
||||||
|
&& php composer-setup.php --install-dir=/usr/local/bin --filename=composer \
|
||||||
|
&& php -r "unlink('composer-setup.php');"
|
||||||
Reference in New Issue
Block a user