diff --git a/docker-compose.yml b/docker-compose.yml index 5bf9025..531ac99 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,6 +11,15 @@ services: ports: - 29852:15672 - 48888:5672 + php: + build: + dockerfile: ./docker/php/Dockerfile + context: ./ + environment: + IS_DOCKER: 1 + volumes: + - ./:/var/www/html/ + - ~/.composer/cache:/root/.composer/cache:cached wait: image: waisbrot/wait links: diff --git a/docker/php/Dockerfile b/docker/php/Dockerfile new file mode 100644 index 0000000..2217427 --- /dev/null +++ b/docker/php/Dockerfile @@ -0,0 +1,9 @@ +FROM php:7.3-fpm + +RUN apt-get update && \ + apt-get install -y \ + libzip-dev + +RUN docker-php-ext-install sockets zip + +COPY --from=composer:1 /usr/bin/composer /usr/bin/composer