Skip to content

Commit

Permalink
Merge pull request #22 from beattie282/add-composer
Browse files Browse the repository at this point in the history
Add PHP and Composer into containers
  • Loading branch information
beattie282 authored Oct 31, 2022
2 parents 7105304 + 0c3fb46 commit 9f621f8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
9 changes: 9 additions & 0 deletions docker/php/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9f621f8

Please sign in to comment.